joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e640
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
mov edx, dword [esp + 4]
push 0xffffffffffffffff
push 0x4386c0
push eax
mov dword fs:[0], esp
sub esp, 0x44
test edx, edx
jne 0x40e676
call fcn.00401240
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 4
mov ax, word [0x44b330]
test ax, ax
jne 0x40e809
push esi
push edi
push str.ERROR
lea ecx, [esp + 0xc]
call fcn.004010e0
push str.Application_language_is_set_to_zero.
mov dword [esp + 0x58], 0
call fcn.0041c01e
add esp, 4
push eax
push str.Application_language_is_set_to_zero.
lea ecx, [esp + 0x10]
call fcn.00403be0
mov word [esp + 0xc], 0
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0xe]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.0042a8c9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x5c], eax
push 0x29
lea eax, [esp + 0x10]
push 0x43b494
push eax
mov byte [esp + 0x60], 1
call fcn.0041d090
add esp, 0xc
push str.._srcUTMLString.cpp
lea ecx, [esp + 0x60]
call fcn.00403b20
push 0x43b47c
call fcn.0041c01e
add esp, 4
push eax
push 0x43b47c
lea ecx, [esp + 0x64]
call fcn.00403be0
lea ecx, [esp + 0xc]
push ecx
call fcn.0041c01e
add esp, 4
push eax
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x64]
call fcn.00403be0
push 0x43b470
call fcn.0041c01e
add esp, 4
push eax
push 0x43b470
lea ecx, [esp + 0x64]
call fcn.00403be0
mov eax, dword [esp + 8]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x64]
call fcn.00403be0
push 0x43b46c
call fcn.0041c01e
add esp, 4
push eax
push 0x43b46c
lea ecx, [esp + 0x64]
call fcn.00403be0
push 0x43b464
call fcn.0041c01e
add esp, 4
push eax
push 0x43b464
lea ecx, [esp + 0x64]
call fcn.00403be0
mov esi, dword [esp + 0x5c]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov byte [esp + 0x54], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
jg 0x40e7d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp]
add eax, 0xfffffff0
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e810
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 4
push eax
push edx
call fcn.0040e560
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 4
Function at 0x40e8c0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4386e0
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x44
cmp eax, 6
ja case.default.0x40e8e5
jmp dword [eax*4 + 0x40eaf4]
mov ax, 0x10
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 4
mov ax, 0x18
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 4
mov ax, 0x20
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 4
mov ax, 0x30
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 4
mov ax, 0x40
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 4
mov ax, 0x60
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 4
push esi
push edi
push str.ERROR
lea ecx, [esp + 0xc]
call fcn.004010e0
push str.Unknown_icon_size
mov dword [esp + 0x58], 0
call fcn.0041c01e
add esp, 4
push eax
push str.Unknown_icon_size
lea ecx, [esp + 0x10]
call fcn.00403be0
mov word [esp + 0xc], 0
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0xe]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.0042a8c9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x5c], eax
push 0x3f
lea eax, [esp + 0x10]
push 0x43b494
push eax
mov byte [esp + 0x60], 1
call fcn.0041d090
add esp, 0xc
push str.._srcGUIIcon.cpp
lea ecx, [esp + 0x60]
call fcn.00403b20
push 0x43b47c
call fcn.0041c01e
add esp, 4
push eax
push 0x43b47c
lea ecx, [esp + 0x64]
call fcn.00403be0
lea ecx, [esp + 0xc]
push ecx
call fcn.0041c01e
add esp, 4
push eax
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x64]
call fcn.00403be0
push 0x43b470
call fcn.0041c01e
add esp, 4
push eax
push 0x43b470
lea ecx, [esp + 0x64]
call fcn.00403be0
mov eax, dword [esp + 8]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x64]
call fcn.00403be0
push 0x43b46c
call fcn.0041c01e
add esp, 4
push eax
push 0x43b46c
lea ecx, [esp + 0x64]
call fcn.00403be0
push 0x43b464
call fcn.0041c01e
add esp, 4
push eax
push 0x43b464
lea ecx, [esp + 0x64]
call fcn.00403be0
mov esi, dword [esp + 0x5c]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov byte [esp + 0x54], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
jg 0x40eab8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp]
add eax, 0xfffffff0
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg case.0x40e8e5.0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x44]
xor ax, ax
mov dword fs:[0], ecx
add esp, 0x50
ret 4
Function at 0x40eba0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x438700
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x40
test eax, eax
je 0x40ec05
mov eax, dword [eax + 4]
test eax, eax
je 0x40ec05
mov edx, dword [esp + 0x64]
mov ecx, dword [ecx + 4]
or edx, 3
push edx
mov edx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x64]
push edx
push 0
push ecx
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_DrawStateW]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret 0x18
push esi
push edi
push str.ERROR
lea ecx, [esp + 0x70]
call fcn.004010e0
push str.DrawState_NULL_DC
mov dword [esp + 0x54], 0
call fcn.0041c01e
add esp, 4
push eax
push str.DrawState_NULL_DC
lea ecx, [esp + 0x74]
call fcn.00403be0
mov word [esp + 8], 0
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.0042a8c9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x58], eax
push 0xbc
lea eax, [esp + 0xc]
push 0x43b494
push eax
mov byte [esp + 0x5c], 1
call fcn.0041d090
add esp, 0xc
push str.._srcGUIIcon.cpp
lea ecx, [esp + 0x5c]
call fcn.00403b20
push 0x43b47c
call fcn.0041c01e
add esp, 4
push eax
push 0x43b47c
lea ecx, [esp + 0x60]
call fcn.00403be0
lea ecx, [esp + 8]
push ecx
call fcn.0041c01e
add esp, 4
push eax
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x60]
call fcn.00403be0
push 0x43b470
call fcn.0041c01e
add esp, 4
push eax
push 0x43b470
lea ecx, [esp + 0x60]
call fcn.00403be0
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x60]
call fcn.00403be0
push 0x43b46c
call fcn.0041c01e
add esp, 4
push eax
push 0x43b46c
lea ecx, [esp + 0x60]
call fcn.00403be0
push 0x43b464
call fcn.0041c01e
add esp, 4
push eax
push 0x43b464
lea ecx, [esp + 0x60]
call fcn.00403be0
mov esi, dword [esp + 0x58]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov byte [esp + 0x50], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
jg 0x40ed56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
mov dword [esp + 0x48], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ed7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x40]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x4c
ret 0x18
Function at 0x413055
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x4130a8
call fcn.00433c7e
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x4130a8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x41309e
xor eax, eax
jmp 0x4131c1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x4130d8
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x4130d8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4131be
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x413105
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004145f2
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x4131be
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41314e
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x41314e
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x413148
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004145f2
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4131ae
and dword [ebp + 0xc], 0
jmp 0x4131ae
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x4131ae
push 0xc
call fcn.0042a894
mov esi, eax
test esi, esi
pop ecx
je 0x413190
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x413192
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x4131a9
push dword [ebp - 8]
call fcn.0042a3ae
jmp 0x4131ae
call fcn.0042a385
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x413113
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41be36
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x43fa70
call fcn.0041de30
mov edi, 0x94
mov eax, edi
call fcn.0041df60
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x44d574], ecx
mov eax, dword [esi + 4]
mov dword [0x44d580], eax
mov edx, dword [esi + 8]
mov dword [0x44d584], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x44d578], esi
cmp ecx, 2
je 0x41be96
or esi, 0x8000
mov dword [0x44d578], esi
shl eax, 8
add eax, edx
mov dword [0x44d57c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41bed1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41bed1
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41bee9
cmp eax, 0x20b
je 0x41bed6
mov dword [ebp - 0x1c], esi
jmp 0x41befd
cmp dword [ecx + 0x84], 0xe
jbe 0x41bed1
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41bef7
cmp dword [ecx + 0x74], 0xe
jbe 0x41bed1
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041f675
pop ecx
test eax, eax
jne 0x41bf11
push 0x1c
call fcn.0041be12
pop ecx
call fcn.0041f56c
test eax, eax
jne 0x41bf22
push 0x10
call fcn.0041be12
pop ecx
call fcn.0041f306
mov dword [ebp - 4], esi
call fcn.0041f108
test eax, eax
jge 0x41bf3b
push 0x1b
call fcn.0041bded
pop ecx
call fcn.0041f069
mov dword [0x44ef70], eax
call fcn.0041eeff
mov dword [0x44d564], eax
call fcn.0041ee69
test eax, eax
jge 0x41bf60
push 8
call fcn.0041bded
pop ecx
call fcn.0041ec36
test eax, eax
jge 0x41bf71
push 9
call fcn.0041bded
pop ecx
push 1
call fcn.0041cbb8
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41bf87
push eax
call fcn.0041bded
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.0041ebf0
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x41bfa8
movzx eax, word [ebp - 0x40]
jmp 0x41bfab
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00429cf1
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41bfc9
push edi
call fcn.0041cce5
call fcn.0041cd07
jmp 0x41bffb
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041de6b
ret
Function at 0x41cc22
Capabilities:
Terminate process

Disassembly:
push 8
push 0x43fb10
call fcn.0041de30
push 8
call fcn.00420e6b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x44d5b4], esi
jne 0x41cc56
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x44d5b0], esi
mov al, byte [ebp + 0x10]
mov byte [0x44d5ac], al
cmp dword [ebp + 0xc], edi
jne 0x41cca0
cmp dword [0x44ef68], edi
je 0x41cc90
mov eax, dword [0x44ef64]
sub eax, 4
mov dword [0x44ef64], eax
cmp eax, dword [0x44ef68]
jb 0x41cc90
mov eax, dword [eax]
cmp eax, edi
je 0x41cc71
call eax
jmp 0x41cc71
push 0x4490a4
mov eax, 0x44909c
call fcn.0041cba0
pop ecx
push 0x4490b0
mov eax, 0x4490a8
call fcn.0041cba0
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41ccd1
cmp dword [ebp + 0x10], edi
jne 0x41ccdf
mov dword [0x44d5b4], esi
push dword [ebp + 8]
call fcn.0041cb5e
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41ccde
push 8
call fcn.00420db6
pop ecx
ret
call fcn.0041de6b
ret

Function at 0x41de7c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0041df60
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41df17
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x44d574]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41df17
cmp eax, 1
je 0x41df38
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41df17
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41dee4
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41df13
xor eax, eax
inc eax
jmp 0x41df57
cmp edi, eax
jae 0x41df1b
xor eax, eax
jmp 0x41df57
cmp eax, esi
jae 0x41df22
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x44d574]
jmp 0x41df3b
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41e8dc
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x44a2b0]
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 + 0x44a458]
je 0x41e911
inc eax
cmp eax, 0x13
jb 0x41e902
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x44a458]
jne 0x41ea37
mov eax, dword [0x44d568]
cmp eax, 1
je 0x41ea0f
cmp eax, edx
jne 0x41e941
cmp dword [0x44a290], 1
je 0x41ea0f
cmp ecx, 0xfc
je 0x41ea37
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 0x41e977
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00420c20
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0041dd20
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41e9ab
mov eax, edi
push eax
call fcn.0041dd20
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x43ff98
push edi
call fcn.004249e0
add esp, 0x10
push edi
call fcn.0041dd20
push dword [esi + 0x44a45c]
mov ebx, eax
call fcn.0041dd20
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0041df60
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00420c20
push edi
push ebx
call fcn.00420c30
push 0x43ff78
push ebx
call fcn.00420c30
push dword [esi + 0x44a45c]
push ebx
call fcn.00420c30
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004248e2
add esp, 0x2c
jmp 0x41ea37
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x44a45c]
push dword [esi]
call fcn.0041dd20
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.0041c960
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x41eeff
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x44d7d4]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x41ef48
call ebp
mov esi, eax
cmp esi, ebx
je 0x41ef2e
mov dword [0x44d7d4], 1
jmp 0x41ef4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41ef43
push 2
pop eax
mov dword [0x44d7d4], eax
jmp 0x41ef48
mov eax, dword [0x44d7d4]
cmp eax, 1
jne 0x41efa5
cmp esi, ebx
jne 0x41ef60
call ebp
mov esi, eax
cmp esi, ebx
jne 0x41ef60
xor eax, eax
jmp 0x41f04c
cmp word [esi], bx
mov eax, esi
je 0x41ef75
inc eax
inc eax
cmp word [eax], bx
jne 0x41ef67
inc eax
inc eax
cmp word [eax], bx
jne 0x41ef67
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0041d1a6
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x41ef98
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x41f04c
push ebp
push esi
push edi
call fcn.0041d9e0
add esp, 0xc
jmp 0x41ef8a
cmp eax, 2
je 0x41efae
cmp eax, ebx
jne 0x41ef59
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x41ef59
cmp byte [ebp], bl
mov esi, ebp
je 0x41efe4
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x41ef59
push esi
add edi, eax
call fcn.0041dd20
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x41efc1
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0041d1a6
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x41f05d
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x41f03e
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x41f053
push edi
call fcn.0041dd20
push esi
lea edi, [edi + eax + 1]
call fcn.0041c01e
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x41f004
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.0041cf61
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x41ef59
Function at 0x41f069
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x44d7d8]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x41f0a9
call esi
test eax, eax
je 0x41f08e
mov dword [0x44d7d8], 1
jmp 0x41f0ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41f0a5
mov dword [0x44d7d8], 2
jmp 0x41f0b7
xor eax, eax
jmp 0x41f105
cmp eax, 1
jne 0x41f0b2
call esi
jmp 0x41f105
cmp eax, 2
jne 0x41f0a5
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x41f0fd
lea eax, [esi + esi]
push eax
call fcn.0041d1a6
mov ebp, eax
test ebp, ebp
pop ecx
je 0x41f0fd
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x41f101
push ebp
call fcn.0041cf61
pop ecx
xor eax, eax
jmp 0x41f103
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x4219cf
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4219fd
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x421a04
cmp ebx, dword [eax + 4]
jae 0x421a04
xor eax, eax
jmp 0x421bf4
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x421a15
xor eax, eax
inc eax
jmp 0x421bf3
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x421a2b
cmp ecx, edx
jae 0x421b70
cmp dword [eax + 4], 0
je 0x421a34
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x421a1c
cmp dword [ebp + 8], 0
je 0x421a56
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x421b70
cmp eax, esi
jae 0x421b70
mov eax, dword [0x44d948]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x421a7b
cmp dword [esi*4 + 0x44d950], edi
je 0x421b74
inc esi
cmp esi, eax
jl 0x421a69
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x421bf0
cmp dword [ebp - 8], 0x1000000
jne 0x421bf0
test byte [ebp - 0xc], 0xcc
je 0x421af9
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x421bf0
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x421bf0
cmp word [eax + 0x18], 0x10b
jne 0x421bf0
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x421bf0
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x421af9
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x421af9
test byte [ecx + 0x27], 0x80
jne 0x421b70
push 1
push 0x44d990
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x421a0d
mov ecx, dword [0x44d948]
test ecx, ecx
mov edx, ecx
jle 0x421b2d
lea eax, [ecx*4 + 0x44d94c]
cmp dword [eax], edi
je 0x421b2d
dec edx
sub eax, 4
test edx, edx
jg 0x421b21
test edx, edx
jne 0x421b5e
push 0xf
pop ebx
cmp ecx, ebx
jg 0x421b3a
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x421b52
lea eax, [edx*4 + 0x44d950]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x421b40
cmp ecx, 0x10
jge 0x421b5e
inc ecx
mov dword [0x44d948], ecx
push 0
push 0x44d990
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x421a0d
xor eax, eax
jmp 0x421bf3
test esi, esi
jle 0x421a0d
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x44d990
call ebx
test eax, eax
jne 0x421a0d
cmp dword [esi*4 + 0x44d950], edi
je 0x421bca
mov eax, dword [0x44d948]
lea esi, [eax - 1]
test esi, esi
jl 0x421bb8
cmp dword [esi*4 + 0x44d950], edi
je 0x421bb4
dec esi
jns 0x421ba8
test esi, esi
jge 0x421bc8
cmp eax, 0x10
jge 0x421bc3
inc eax
mov dword [0x44d948], eax
lea esi, [eax - 1]
jmp 0x421bca
je 0x421be2
xor ecx, ecx
test esi, esi
jl 0x421be2
lea eax, [ecx*4 + 0x44d950]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x421bd0
push 0
push 0x44d990
call ebx
jmp 0x421a0d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret