joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bcc1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4299a0
cmp edx, dword [eax]
je 0x40bce3
add eax, 8
inc ecx
cmp eax, 0x429a30
jl 0x40bcd4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4299a0]
jne 0x40be11
mov eax, dword [0x42ee58]
cmp eax, 1
je 0x40bdeb
test eax, eax
jne 0x40bd14
cmp dword [0x4294c4], 1
je 0x40bdeb
cmp edx, 0xfc
je 0x40be11
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40bd4b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407960
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040e9c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40bd8e
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040e9c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4223d0
push edi
call fcn.0040f800
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407960
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407970
lea eax, [ebp - 0xa0]
push 0x4223b0
push eax
call fcn.00407970
push dword [esi + 0x4299a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407970
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040f777
add esp, 0x2c
pop edi
jmp 0x40be11
lea eax, [ebp + 8]
lea esi, [esi + 0x4299a4]
push 0
push eax
push dword [esi]
call fcn.0040e9c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x413d80
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00409420
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x413e4b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x413e4b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x413dfe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x413e09
or bh, 8
and edi, 0x8000000
je 0x413e24
mov eax, dword [0x4305fc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x413e4b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41424b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41426f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41428a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x418393
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4183d5
call fcn.0041d6ce
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4183d5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4183cc
xor eax, eax
jmp 0x4183dd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004183e3
pop edi
pop esi
pop ebx
ret 4

Function at 0x41df26
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41df54
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41df72
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041de8c
jmp 0x41df72
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41df72
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041de8c
test edi, edi
mov eax, edi
jne 0x41df5c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x409dfe
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov eax, dword [esp + 0x18]
xor dword [esp + 0xc], 0x270a
add eax, 0x1ef
push ebx
mov ebx, dword [esp + 0x20]
xor eax, 0x521
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x20]
lea ebp, [ebx + 0xb43]
add edi, 0xfffffaee
lea edx, [ebx + 0x148]
cmp ebp, eax
jl 0x409e7d
cmp dword [esi + 0x54], 0x52b8
jbe 0x409e5b
mov eax, dword [0x7242f8]
sub eax, dword [0x724260]
add eax, 0xd46eb
xor dword [0x72425c], eax
mov ecx, dword [0x6abc5c]
mov eax, dword [ecx + 0x1c]
cmp eax, dword [esi + 0x30]
je 0x409f0e
mov eax, dword [esi + 0x6c]
sub eax, 0xa77b9
xor dword [ecx + 0x2c], eax
jmp 0x409f0e
mov ecx, dword [0x7242d0]
mov eax, ebp
sub eax, dword [esi + 0x78]
add eax, 0x2701
cmp ecx, eax
jne 0x409f0e
lea eax, [ebx - 0x519d]
mov ebx, ecx
imul eax, edi
mov dword [esp + 0x28], eax
lea eax, [edx - 0x2ede]
xor edx, 0x270a
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x18]
xor eax, ebp
push eax
call dword [sym.imp.KERNEL32.dll_CreateActCtxA]
push dword [esp + 0x28]
mov eax, dword [0x72429c]
xor eax, dword [esp + 0x20]
push dword [esp + 0x14]
and eax, edi
push eax
mov eax, dword [0x6abc5c]
push esi
mov ecx, dword [eax + 0x78]
sub ecx, dword [eax + 0x30]
imul eax, ecx, 0x2cef
push eax
push dword [esp + 0x28]
call fcn.00409dfe
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, ebp
add ebx, 2
sub eax, dword [esi + 0x78]
add eax, 0x2701
cmp ebx, eax
je 0x409eb4
mov ebx, dword [esp + 0x2c]
lea eax, [ebx + 0x393]
cmp edi, eax
jge 0x409f53
mov eax, dword [esi + 0x48]
mov edx, 0x6abc60
sub eax, 0x9509a
xor dword [esi + 0x2c], eax
mov eax, dword [0x7242a0]
mov ecx, dword [0x724284]
add eax, 0x332af856
xor dword [0x72425c], eax
mov eax, dword [0x6abc5c]
cmp ecx, dword [eax + 0x4c]
cmovbe edx, dword [0x724270]
mov dword [0x724270], edx
lea eax, [edi + 0x330]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x40a89c
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x10]
add ebx, 0xfffffb5a
push esi
mov esi, dword [esp + 0x20]
push edi
lea ecx, [ebp - 0x2a94]
mov edi, edx
xor ecx, 0x2bff
lea eax, [ebp + 8]
xor edi, 0x19bb
cmp eax, ecx
jge 0x40a93c
mov eax, dword [esp + 0x14]
lea ecx, [edx - 0x9bb]
add eax, 0xfffffa94
cmp eax, ecx
jge 0x40a915
mov eax, 0xf8438
sub eax, dword [esi + 0xdc]
add dword [esi + 0x2c], eax
mov eax, dword [esi + 0xa0]
cmp eax, dword [0x724274]
ja 0x40a93c
mov ecx, dword [0x6abc5c]
mov eax, dword [0x724280]
add eax, 0xeee8e181
xor dword [ecx + 0x2c], eax
jmp 0x40a93c
lea eax, [edi + 0x27ec]
or eax, 0x27ff
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x90]
and ebx, edi
or eax, 0x3221
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_DeactivateActCtx]
cmp dword [0x72427c], 0x12321
jbe 0x40a94f
mov dword [esi + 0x40], section..data
xor edi, edi
mov ebx, 0xad04a
mov eax, dword [esi + 0x54]
mov ecx, dword [0x6abc5c]
sub eax, 0x1c811b
imul eax, dword [0x72427c]
push 0x64
mov dword [0x72427c], eax
mov eax, dword [ecx + 0x40]
mov ecx, dword [ecx + 0xa4]
mov edx, dword [eax + edi]
add edi, 4
mov eax, dword [0x7242e0]
add eax, 0xfff030da
imul edx, dword [esi + 0x2c]
add eax, ecx
add dword [esi + 0x54], eax
mov eax, dword [esi + 8]
sub eax, ebx
add dword [esi + 0x70], eax
mov eax, 0xfcf26
mov ecx, dword [0x6abc5c]
sub eax, dword [ecx + 0xb0]
add dword [ecx + 0x44], eax
mov eax, dword [0x7242ac]
mov ecx, dword [esi + 0x34]
mov byte [eax + ecx], dl
inc dword [esi + 0x34]
mov eax, dword [0x7242a0]
sub eax, dword [esi + 0x50]
mov ecx, dword [0x6abc5c]
add eax, 0x7c511645
imul eax, dword [0x724238]
mov dword [0x724238], eax
mov eax, dword [ecx + 0x70]
xor eax, 0x83aee9bd
imul eax, dword [ecx + 0xa8]
mov dword [ecx + 0xa8], eax
mov eax, dword [0x724280]
sub eax, dword [esi + 0x8c]
mov ecx, dword [0x6abc5c]
not eax
or dword [ecx + 0x4c], eax
mov eax, dword [0x724278]
add eax, 0xfff677cc
xor dword [0x72424c], eax
mov eax, dword [esi + 0x60]
xor eax, dword [esi + 0x30]
xor eax, 0xe2f5ffec
imul eax, dword [esi + 0x48]
pop ecx
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x80]
sub eax, 0x1c6a88
add dword [esi + 0x1c], eax
mov eax, dword [0x6abc5c]
mov eax, dword [eax + 8]
xor eax, ebx
or dword [esi + 0x54], eax
mov eax, dword [0x6abc5c]
sub ecx, dword [eax + 0xc8]
add dword [esi + 0xa0], ecx
cmp edi, 0x197b20
jl 0x40a956
mov eax, dword [0x6abc5c]
mov ecx, dword [0x7242f8]
add ecx, 0xaa3ae
mov dword [eax + 0x2c], ecx
mov eax, dword [esi + 0x54]
cmp eax, dword [0x7242a0]
jbe 0x40aa9e
mov eax, dword [0x6abc5c]
mov ecx, dword [eax + 0xc8]
xor ecx, dword [eax + 0x60]
add ecx, 0x2de60
mov dword [esi + 0xa0], ecx
jmp 0x40aab3
mov ecx, dword [0x72427c]
sub ecx, dword [esi + 0xa4]
sub ecx, 0x1eabf
add dword [esi + 0x2c], ecx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x40b34b
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ecx
push ecx
mov cl, byte [esp + 0xc]
xor edx, edx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
movzx eax, cl
movzx ebp, word [esp + 0x24]
movzx eax, byte [eax + edi + 8]
xor eax, 0x184d
dec cl
inc dword [0x724568]
mov dword [esp + 0x10], eax
movzx eax, byte [0x724512]
mov byte [esp + 0x1c], cl
imul ecx, eax, 0xc
mov eax, dword [0x72456c]
movzx ebx, byte [edi + 0x1e2]
mov eax, dword [ecx + eax + 4]
mov ecx, 0x1ab
div ecx
movzx ecx, byte [esp + 0x20]
mov esi, eax
mov eax, dword [0x724554]
mov dword [esp + 0x14], eax
mov eax, ebp
cdq
idiv dword [esi + 0x23ec]
mov edi, eax
imul eax, ecx, 0xc
mov ecx, 0x1a7b
mov eax, dword [eax + esi]
cdq
idiv ecx
inc byte [esp + 0x20]
mov byte [esp + 0x24], al
movzx eax, byte [esp + 0x1c]
push eax
push dword [esp + 0x28]
push edi
push 0x8b3
call fcn.0040bdb0
mov ecx, dword [ebx - 0x1b38]
add esp, 0x10
mov ebx, dword [esp + 0x28]
xor edx, edx
mov dword [ecx*4 + 0x10f9], eax
mov eax, dword [0x724568]
mov ecx, dword [0x72454c]
add eax, 0x1c53
mov esi, dword [0x724574]
inc ecx
mov word [0x724518], ax
and ebp, ecx
mov dword [0x72454c], ecx
xor ebp, 0x114d
mov eax, ebp
movzx ecx, byte [ebx + esi*2]
div ecx
mov byte [ebx + esi*2], dl
mov eax, dword [0x724540]
mov edi, dword [0x724538]
mov esi, dword [0x724534]
mov edi, dword [edi + eax*8]
cmp edi, esi
jl 0x40b48f
mov bx, word [0x724570]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc esi
mov dword [0x724534], esi
movzx ecx, word [eax + 0x1020]
mov eax, dword [0x724504]
sub eax, ecx
movzx ecx, byte [edi + ebp]
cdq
idiv ecx
mov ecx, dword [0x724538]
xor ax, word [ecx + 0x1230]
add bx, ax
inc edi
mov word [0x724570], bx
cmp edi, esi
jge 0x40b453
mov al, byte [esp + 0x1c]
inc esi
movzx edx, byte [esp + 0x20]
dec al
movzx ecx, al
mov eax, dword [0x72452c]
pop edi
mov dword [0x724534], esi
pop esi
mov eax, dword [eax + ecx*4]
pop ebp
sub eax, edx
pop ebx
pop ecx
pop ecx
ret
Function at 0x40be47
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 4]
mov ecx, eax
push ebx
mov ebx, dword [esp + 0x14]
xor ecx, 0xb77
push ebp
mov dword [esp + 0xc], ecx
lea edx, [eax - 0x2701]
mov ecx, dword [esp + 0x14]
lea eax, [edx + 0x3244]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, ecx
lea ebp, [ecx + 0x366]
add ecx, 0xfffff9ab
xor edi, 0x521
add esi, 0xffffd311
mov dword [esp + 0x1c], ecx
cmp ebp, eax
jne 0x40bf52
mov eax, dword [esp + 0x14]
xor eax, 0xb89
cmp edi, eax
jle 0x40bf20
lea eax, [esi + 0x3365]
cmp ebp, eax
je 0x40bf52
mov eax, dword [0x7242bc]
cmp eax, dword [ebx + 0x50]
jbe 0x40bec9
mov eax, dword [0x724230]
sub dword [0x724268], eax
cmp dword [ebx + 0x50], 0x10cc1
ja 0x40bee7
mov eax, dword [0x6abc5c]
mov ecx, dword [ebx + 0x98]
mov dword [eax + 0x94], ecx
mov ecx, dword [esp + 0x1c]
lea eax, [ecx - 0x3cf]
mov ecx, dword [esp + 0x24]
push eax
lea eax, [esi + 0x270a]
push eax
lea eax, [ecx - 0x503]
push eax
lea eax, [esi + 0x2bff]
push eax
lea eax, [ecx - 0x835]
push eax
push dword [0x6abc5c]
call fcn.00409b87
add esp, 0x18
mov esi, eax
jmp 0x40bf52
sub ecx, dword [0x7242d4]
mov eax, edx
sub edx, dword [0x72429c]
xor eax, ebp
push eax
push edx
add ecx, 0x2889
push ecx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov eax, dword [0x6abc5c]
and edi, dword [esp + 0x14]
sub edi, dword [esp + 0x1c]
or dword [eax + 0xa0], edi
mov eax, dword [esp + 0x24]
add eax, 0xfffff7cb
cmp ebp, eax
je 0x40bf87
cmp dword [ebx + 0x44], 0x5f4d
ja 0x40bf87
push 0x40
push 0x3000
push dword [0x724250]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
add eax, 0x6000
mov dword [0x7242b8], eax
pop edi
lea eax, [esi - 0x188]
pop esi
pop ebp
pop ebx
ret
Function at 0x7c34100e
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x7c38b2ac]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
xor ebx, ebx
xor esi, esi
cmp eax, ebx
push 2
pop ebp
jne 0x7c3410c5
call edi
mov esi, eax
cmp esi, ebx
je 0x7c34800f
mov dword [0x7c38b2ac], 1
cmp esi, ebx
je 0x7c348030
cmp word [esi], bx
mov eax, esi
je 0x7c34106e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add eax, ebp
cmp word [eax], bx
jne 0x7c341060
add eax, ebp
cmp word [eax], bx
jne 0x7c341060
mov edi, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, esi
push ebx
sar eax, 1
inc eax
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
mov ebp, eax
cmp ebp, ebx
je 0x7c3410b5
push ebp
call sym.MSVCR71.dll_malloc
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x7c3410b5
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
je 0x7c34803d
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
cmp eax, 1
jne 0x7c348050
jmp 0x7c341044
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x7c348026
mov eax, ebp
mov dword [0x7c38b2ac], eax
jmp 0x7c3410c5
mov eax, dword [0x7c38b2ac]
jmp 0x7c3410c5
call edi
mov esi, eax
cmp esi, ebx
je 0x7c348058
jmp 0x7c34104c
push dword [esp + 0x10]
call sym.MSVCR71.dll_free
pop ecx
mov dword [esp + 0x10], ebx
jmp 0x7c3410b1
cmp eax, ebp
je 0x7c34805f
cmp eax, ebx
je 0x7c34805f
xor eax, eax
jmp 0x7c3410be
call dword [sym.imp.kernel32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
je 0x7c348058
cmp byte [esi], bl
je 0x7c348079
inc eax
cmp byte [eax], bl
jne 0x7c34806f
inc eax
cmp byte [eax], bl
jne 0x7c34806f
sub eax, esi
inc eax
mov ebp, eax
push ebp
call sym.MSVCR71.dll_malloc
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x7c34808f
xor edi, edi
jmp 0x7c34809a
push ebp
push esi
push edi
call fcn.7c373ba2
add esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
mov eax, edi
jmp 0x7c3410be
Function at 0x7c347632
Capabilities:
Terminate process

Disassembly:
push 8
call fcn.7c373ba2
jmp 0x7c347643
pop ecx
pop ecx
push 0x7c38cc90
push 0x7c38cc88
call sym.MSVCR71.dll__initterm
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x7c3476ce
jmp 0x7c3476b6
pop ecx
ret
ret
push 8
push 0x7c37f0d0
call fcn.7c34230b
jmp 0x7c3423d9
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x7c390f88], esi
jne 0x7c347664
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov dword [0x7c390f84], esi
mov al, byte [ebp + 0x10]
mov byte [0x7c390f80], al
cmp dword [ebp + 0xc], edi
jne 0x7c3423e7
cmp dword [0x7c38b2cc], edi
je 0x7c3476a2
mov eax, dword [0x7c38b2c8]
sub eax, 4
mov dword [0x7c38b2c8], eax
cmp eax, dword [0x7c38b2cc]
jb 0x7c3476a2
mov eax, dword [eax]
cmp eax, edi
je 0x7c347683
call eax
jmp 0x7c347683
push 0x7c38cca4
push 0x7c38cc94
call sym.MSVCR71.dll__initterm
jmp 0x7c3423e5
cmp dword [ebp + 0x10], edi
jne 0x7c3476e3
mov dword [0x7c390f88], esi
push dword [ebp + 8]
call fcn.7c348cd5
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x7c342407
push 8
call fcn.7c373ba2
jmp 0x7c342406
call fcn.7c342346
jmp 0x7c342408

Function at 0x7c348cd5
Capabilities:
Terminate process

Disassembly:
push str.mscoree.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
je 0x7c348cfa
push str.CorExitProcess
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x7c348cfa
push dword [esp + 4]
call eax
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x7c348d3e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x7c38b118]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x7c38ccb0]
je 0x7c348d73
inc eax
cmp eax, 0x13
jb 0x7c348d64
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x7c38ccb0]
jne 0x7c348e99
mov eax, dword [0x7c390f94]
cmp eax, 1
je 0x7c348e71
cmp eax, edx
jne 0x7c348da3
cmp dword [0x7c390f98], 1
je 0x7c348e71
cmp ecx, 0xfc
je 0x7c348e99
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x7c348dd9
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call sym.MSVCR71.dll__mbscpy
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call sym.MSVCR71.dll_strlen
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x7c348e0d
mov eax, edi
push eax
call sym.MSVCR71.dll_strlen
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x7c37f4c8
push edi
call sym.MSVCR71.dll_strncpy
add esp, 0x10
push edi
call sym.MSVCR71.dll_strlen
push dword [esi + 0x7c38ccb4]
mov ebx, eax
call sym.MSVCR71.dll_strlen
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.7c341395
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call sym.MSVCR71.dll__mbscpy
push edi
push ebx
call sym.MSVCR71.dll__mbscat
push 0x7c37f4a8
push ebx
call sym.MSVCR71.dll__mbscat
push dword [esi + 0x7c38ccb4]
push ebx
call sym.MSVCR71.dll__mbscat
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.7c373ba2
add esp, 0x2c
jmp 0x7c348e99
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x7c38ccb4]
push dword [esi]
call sym.MSVCR71.dll_strlen
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.7c341aed
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret

Function at 0x7c349434
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x7c349450
call sym.MSVCR71.dll__errno
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x7c3494c2
push esi
push 0x8c
push 1
call sym.MSVCR71.dll_calloc
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x7c3494a8
push esi
call fcn.7c3423c6
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x7c3493a3
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x7c3494a0
push edi
call dword [sym.imp.kernel32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x7c3494bf
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
push esi
call sym.MSVCR71.dll_free
test ebx, ebx
pop ecx
je 0x7c3494ba
push ebx
call fcn.7c349ee2
pop ecx
or eax, 0xffffffff
jmp 0x7c3494c1
mov eax, edi
pop esi
pop edi
pop ebx
ret