joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4020b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x418318
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00401ff0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401ae0
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x402142
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4024d0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4183a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov eax, dword [esp + 0x24]
push ecx
add eax, 0xfffffff0
mov dword [esp + 8], esp
mov esi, esp
push eax
mov dword [esp + 0x18], 0
call fcn.00401ae0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
mov eax, dword [esp + 0x20]
push edx
push eax
call fcn.004022b0
add esp, 0x10
push 1
call fcn.0040d60f
int3

Function at 0x402530
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x418388
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov eax, dword [esp + 0x20]
push ecx
add eax, 0xfffffff0
mov dword [esp + 8], esp
mov esi, esp
push eax
mov dword [esp + 0x18], 0
call fcn.00401ae0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add esp, 4
push 0xffffffffffffffff
push ecx
add eax, 0x10
push edx
mov dword [esi], eax
call fcn.004022b0
add esp, 0x10
push 1
call fcn.0040d60f
int3
Function at 0x4032d0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
push 0xfffffffffffffffa
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edi, eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push 0
mov ebp, dword [sym.imp.USER32.dll_CreateWindowExW]
push edi
push 0x4b1
push esi
push 0xc
push 0x118
sub eax, ebx
lea ebx, [eax - 0x22]
push ebx
push 0xa
push 0x50000000
push 0x419350
push str.STATIC
push 0
call ebp
push 0
push edi
push 0x4b2
push esi
push 0xc
push 0x118
add ebx, 0xc
push ebx
push 0xa
push 0x50000000
push 0x419350
push str.STATIC
push 0
mov dword [0x4222d0], eax
call ebp
mov ecx, dword [0x4222d0]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push ecx
mov dword [0x4221dc], eax
call esi
mov edx, dword [0x4221dc]
push 5
push edx
call esi
mov eax, dword [0x4222d4]
mov ecx, dword [0x4222d0]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push eax
push 0x30
push ecx
call esi
mov edx, dword [0x4221c8]
add edx, 0xbfb
movzx eax, dx
push eax
lea ecx, [esp + 0x14]
call fcn.00402200
mov ecx, dword [eax]
mov edx, dword [0x4222d0]
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push ecx
push edx
call edi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4033dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x4222d4]
mov ecx, dword [0x4221dc]
push 1
push eax
push 0x30
push ecx
call esi
mov edx, dword [0x4221c8]
add edx, 0xbdb
movzx eax, dx
push eax
lea ecx, [esp + 0x14]
call fcn.00402200
mov ecx, dword [eax]
mov edx, dword [0x4221dc]
push ecx
push edx
call edi
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403432
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x4222d0]
mov esi, dword [sym.imp.USER32.dll_UpdateWindow]
push eax
call esi
mov ecx, dword [0x4221dc]
push ecx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x403ba0
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x238
mov eax, dword [0x42139c]
xor eax, esp
push esi
mov esi, dword [esp + 0x240]
push edi
mov edi, dword [esp + 0x24c]
push 0x41939c
push 0
mov dword [esp + 0x244], eax
mov dword [esp + 0x10], 0
call fcn.0040ea46
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
sub ax, 0x411
neg ax
push 0x4222b0
lea ecx, [esp + 0xc]
push ecx
push edi
sbb eax, eax
inc eax
mov dword [0x4221c8], eax
xor eax, eax
mov dword [0x4222b0], eax
mov dword [0x4222b4], eax
mov dword [0x4222b8], eax
mov dword [0x4222bc], eax
mov dword [0x4222c0], eax
mov dword [0x4222c4], eax
mov dword [0x4222c8], eax
mov dword [0x4222cc], eax
call fcn.00402590
mov edx, dword [0x4221c8]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
add esp, 0xc
push 0x64
push 0x422100
add edx, 0xbbb
push edx
push esi
mov dword [0x422308], esi
mov dword [0x42230c], 0
call edi
mov eax, dword [0x4221c8]
push 0x64
push 0x4221e8
add eax, 0x7d1
push eax
push esi
call edi
push esi
call fcn.00403b00
mov ecx, dword [0x4221c8]
add esp, 4
add ecx, 0x7d1
push ecx
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
lea edx, [esp + 0xc]
push edx
mov dword [0x4220e8], eax
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, dword [0x422308]
push 0x104
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [0x422308]
push edx
call fcn.004019b0
lea eax, [esp + 0x34]
push eax
push esi
call fcn.004026d0
mov ecx, dword [esp + 0x14]
push 0x4222b0
mov dword [0x4221d4], eax
push ecx
push esi
call fcn.00405d70
call fcn.004014b0
mov edx, dword [esp + 0x268]
push edx
push esi
call fcn.00401000
add esp, 0x20
test eax, eax
je 0x403d6f
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call esi
test eax, eax
je 0x403d6b
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebp
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageW]
lea ecx, [ecx]
mov edx, dword [0x4220e8]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x403d59
lea ecx, [esp + 0x18]
push ecx
call edi
lea edx, [esp + 0x18]
push edx
call ebp
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call esi
test eax, eax
jne 0x403d30
pop ebp
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
xor ecx, esp
call fcn.0040d4a6
add esp, 0x238
ret 0x10
Function at 0x405d70
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4185f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, dword [0x42139c]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
push ebp
mov dword [esp + 0x14], eax
mov al, 0xcb
push esi
push edi
mov edi, dword [esp + 0x58]
xor ebp, ebp
mov cl, 0xfc
mov byte [esp + 0x22], al
mov byte [esp + 0x2c], al
xor eax, eax
mov byte [esp + 0x20], 0xc6
mov byte [esp + 0x21], cl
mov byte [esp + 0x23], 0xdc
mov byte [esp + 0x24], 0x49
mov byte [esp + 0x25], 0x42
mov byte [esp + 0x26], 0x4d
mov byte [esp + 0x27], 0x20
mov byte [esp + 0x28], 0xb1
mov byte [esp + 0x29], cl
mov byte [esp + 0x2a], 0xc5
mov byte [esp + 0x2b], 0xc4
mov byte [esp + 0x2d], 0xae
mov byte [esp + 0x2e], 0xc9
mov byte [esp + 0x2f], 0xd7
mov dword [0x422320], ebp
mov dword [esp + 0x10], ebp
and edi, 0x10
cmp edi, ebp
je 0x405e11
cmp eax, 1
jne 0x405e39
mov ecx, dword [0x4221c8]
mov edx, dword [esp + 0x1c]
push ebp
push 0x405b10
push ebp
add ecx, 0x3ef
push ecx
push edx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 2
je 0x405f79
mov al, byte [0x422300]
mov cl, byte [ebx + 0x1c]
mov dl, byte [ebx + 0x1d]
or cl, al
mov al, byte [ebx + 0x1e]
mov byte [ebx + 0x1c], cl
mov cl, byte [0x422301]
or dl, cl
mov cl, byte [ebx + 0x1f]
mov byte [ebx + 0x1d], dl
mov dl, byte [0x422302]
or al, dl
mov byte [ebx + 0x1e], al
mov al, byte [0x422303]
or cl, al
push 0x422320
mov byte [ebx + 0x1f], cl
call fcn.0040c590
mov ecx, dword [0x422320]
push 0x10
push 0x20
push ebx
push ebp
push ecx
push 0x422304
call fcn.0040c240
mov eax, dword [0x422304]
push 0x10
lea edx, [esp + 0x50]
push edx
push 0x4222f0
push ebp
push 1
push eax
call fcn.00406ea0
add esp, 0x34
mov ecx, 0x10
lea edi, [esp + 0x20]
lea esi, [esp + 0x30]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x405ec5
sbb eax, eax
sbb eax, 0xffffffff
mov edi, eax
cmp edi, ebp
je 0x405f80
mov ecx, dword [0x4221c8]
add ecx, 0xbe9
movzx edx, cx
push edx
lea ecx, [esp + 0x1c]
call fcn.00402200
mov esi, eax
mov eax, dword [0x4221c8]
add eax, 0xbed
movzx ecx, ax
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x50], ebp
call fcn.00402200
mov esi, dword [esi]
mov eax, dword [eax]
push ebp
push esi
push eax
push ebp
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405f31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
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 0x405f57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
mov edx, dword [0x4222e8]
inc ecx
cmp ecx, edx
mov eax, 1
mov dword [esp + 0x10], ecx
jb 0x405e08
push ebp
call fcn.0040d60f
push 1
call fcn.0040d60f
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x34]
pop ebx
xor ecx, esp
call fcn.0040d4a6
add esp, 0x40
ret
Function at 0x40ab60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [0x42139c]
mov ecx, dword [esp + 0x20]
xor eax, esp
push esi
mov esi, dword [esp + 0x28]
test esi, esi
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
jge 0x40ab96
pop edi
mov eax, 0x80000008
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0040d4a6
add esp, 0x18
ret
mov eax, dword [edi - 0x14]
cmp eax, 2
push ebx
jne 0x40ac08
mov ebx, edi
mov edi, dword [edi]
test ecx, ecx
push ebp
mov dword [edi + 0x54], 1
jne 0x40ac42
push ecx
call fcn.0040f318
mov ecx, dword [edi + 0x48]
add ecx, eax
add esp, 4
dec esi
mov dword [edi + 0x4c], ecx
js 0x40ac81
add ebx, 4
mov edi, edi
call fcn.0040a8c0
mov ecx, eax
test ecx, ecx
jl 0x40ac2d
xor edx, edx
mov eax, esi
mov ebp, 0x14
div ebp
lea eax, [edx + edi + 0x2c]
mov dl, byte [eax]
xor dl, cl
dec esi
mov byte [eax], dl
jns 0x40abd0
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0040d4a6
add esp, 0x18
ret
cmp eax, 0x32
jne 0x40ac16
mov ebx, dword [edi - 0x10]
cmp dword [ebx - 0x14], 2
je 0x40aba3
pop ebx
pop edi
mov eax, 0x80000004
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0040d4a6
add esp, 0x18
ret
pop ebp
pop ebx
pop edi
mov eax, ecx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0040d4a6
add esp, 0x18
ret
cmp esi, 0x28
jbe 0x40ac61
lea edx, [esp + 0x10]
push edx
push esi
push ecx
push 0
call fcn.00409920
add esp, 0x10
lea ecx, [esp + 0x10]
mov esi, 0x14
dec esi
js 0x40ac81
xor edx, edx
mov eax, esi
mov ebx, 0x14
div ebx
mov bl, byte [edx + edi + 0x2c]
lea eax, [edx + edi + 0x2c]
mov dl, byte [ecx + esi]
xor bl, dl
dec esi
mov byte [eax], bl
jns 0x40ac64
mov ecx, dword [esp + 0x24]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040d4a6
add esp, 0x18
ret
Function at 0x40d29a
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41dd30
call fcn.0040f4f0
mov edi, 0x94
mov eax, edi
call fcn.0040f130
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 [0x4223a4], ecx
mov eax, dword [esi + 4]
mov dword [0x4223b0], eax
mov edx, dword [esi + 8]
mov dword [0x4223b4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4223a8], esi
cmp ecx, 2
je 0x40d2fa
or esi, 0x8000
mov dword [0x4223a8], esi
shl eax, 8
add eax, edx
mov dword [0x4223ac], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40d335
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d335
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40d34d
cmp eax, 0x20b
je 0x40d33a
mov dword [ebp - 0x1c], esi
jmp 0x40d361
cmp dword [ecx + 0x84], 0xe
jbe 0x40d335
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40d35b
cmp dword [ecx + 0x74], 0xe
jbe 0x40d335
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040ffc8
pop ecx
test eax, eax
jne 0x40d38d
cmp dword [0x422394], 1
jne 0x40d37a
call fcn.0040f6b9
push 0x1c
call fcn.0040f541
push 0xff
call fcn.0040d4b4
pop ecx
pop ecx
call fcn.0040ff26
mov dword [ebp - 4], esi
call fcn.0040fd7b
test eax, eax
jge 0x40d3a6
push 0x1b
call fcn.0040d275
pop ecx
call fcn.0040fcdc
mov dword [0x423bf0], eax
call fcn.0040fb72
mov dword [0x422390], eax
call fcn.0040fadc
test eax, eax
jge 0x40d3cb
push 8
call fcn.0040d275
pop ecx
call fcn.0040f8a9
test eax, eax
jge 0x40d3dc
push 9
call fcn.0040d275
pop ecx
push 1
call fcn.0040d4e4
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40d3f2
push eax
call fcn.0040d275
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.0040f863
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40d413
movzx eax, word [ebp - 0x40]
jmp 0x40d416
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00403ba0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40d434
push edi
call fcn.0040d60f
call fcn.0040d631
jmp 0x40d466
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040f52b
ret
Function at 0x40d54e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4223e4], esi
push edi
jne 0x40d56e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4223e0], esi
mov byte [0x4223dc], al
jne 0x40d5d4
mov ecx, dword [0x423be8]
test ecx, ecx
je 0x40d5b5
mov eax, dword [0x423be4]
sub eax, 4
cmp eax, ecx
jmp 0x40d5ae
mov eax, dword [eax]
test eax, eax
je 0x40d5a0
call eax
mov eax, dword [0x423be4]
sub eax, 4
cmp eax, dword [0x423be8]
mov dword [0x423be4], eax
jae 0x40d598
mov eax, 0x421030
mov esi, 0x42103c
cmp eax, esi
mov edi, eax
jae 0x40d5d4
mov eax, dword [edi]
test eax, eax
je 0x40d5cd
call eax
add edi, 4
cmp edi, esi
jb 0x40d5c5
mov eax, 0x421040
mov esi, 0x421048
cmp eax, esi
mov edi, eax
jae 0x40d5f3
mov eax, dword [edi]
test eax, eax
je 0x40d5ec
call eax
add edi, 4
cmp edi, esi
jb 0x40d5e4
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40d60d
push dword [ebp + 8]
mov dword [0x4223e4], 1
call fcn.0040d4b4
pop ebp
ret

Function at 0x40f541
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x42139c]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x421570]
je 0x40f578
inc eax
cmp eax, 0x13
jb 0x40f569
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x421570]
jne 0x40f69b
mov eax, dword [0x422394]
cmp eax, 1
je 0x40f676
cmp eax, edx
jne 0x40f5a8
cmp dword [0x421398], 1
je 0x40f676
cmp ecx, 0xfc
je 0x40f69b
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40f5de
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00412e50
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00413bf0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40f612
mov eax, edi
push eax
call fcn.00413bf0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x41e360
push edi
call fcn.0040f360
add esp, 0x10
push edi
call fcn.00413bf0
push dword [esi + 0x421574]
mov ebx, eax
call fcn.00413bf0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040f130
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00412e50
push edi
push ebx
call fcn.00412e60
push 0x41e340
push ebx
call fcn.00412e60
push dword [esi + 0x421574]
push ebx
call fcn.00412e60
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00414557
add esp, 0x2c
jmp 0x40f69b
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x421574]
push dword [esi]
call fcn.00413bf0
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]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0040d4a6
add ebp, 0x90
leave
ret
Function at 0x40fb72
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x42261c]
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 0x40fbbb
call ebp
mov esi, eax
cmp esi, ebx
je 0x40fba1
mov dword [0x42261c], 1
jmp 0x40fbc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40fbb6
push 2
pop eax
mov dword [0x42261c], eax
jmp 0x40fbbb
mov eax, dword [0x42261c]
cmp eax, 1
jne 0x40fc18
cmp esi, ebx
jne 0x40fbd3
call ebp
mov esi, eax
cmp esi, ebx
jne 0x40fbd3
xor eax, eax
jmp 0x40fcbf
cmp word [esi], bx
mov eax, esi
je 0x40fbe8
inc eax
inc eax
cmp word [eax], bx
jne 0x40fbda
inc eax
inc eax
cmp word [eax], bx
jne 0x40fbda
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0040e3d2
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x40fc0b
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x40fcbf
push ebp
push esi
push edi
call fcn.00412fa0
add esp, 0xc
jmp 0x40fbfd
cmp eax, 2
je 0x40fc21
cmp eax, ebx
jne 0x40fbcc
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x40fbcc
cmp byte [ebp], bl
mov esi, ebp
je 0x40fc57
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x40fbcc
push esi
add edi, eax
call fcn.00413bf0
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x40fc34
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0040e3d2
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x40fcd0
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x40fcb1
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 0x40fcc6
push edi
call fcn.00413bf0
push esi
lea edi, [edi + eax + 1]
call fcn.0040d95d
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x40fc77
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.0040d925
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x40fbcc
Function at 0x40fcdc
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x422620]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x40fd1c
call esi
test eax, eax
je 0x40fd01
mov dword [0x422620], 1
jmp 0x40fd21
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x40fd18
mov dword [0x422620], 2
jmp 0x40fd2a
xor eax, eax
jmp 0x40fd78
cmp eax, 1
jne 0x40fd25
call esi
jmp 0x40fd78
cmp eax, 2
jne 0x40fd18
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 0x40fd70
lea eax, [esi + esi]
push eax
call fcn.0040e3d2
mov ebp, eax
test ebp, ebp
pop ecx
je 0x40fd70
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x40fd74
push ebp
call fcn.0040d925
pop ecx
xor eax, eax
jmp 0x40fd76
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x410c56
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 0x410c84
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 0x410c8b
cmp ebx, dword [eax + 4]
jae 0x410c8b
xor eax, eax
jmp 0x410e7b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x410c9c
xor eax, eax
inc eax
jmp 0x410e7a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x410cb2
cmp ecx, edx
jae 0x410df7
cmp dword [eax + 4], 0
je 0x410cbb
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x410ca3
cmp dword [ebp + 8], 0
je 0x410cdd
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x410df7
cmp eax, esi
jae 0x410df7
mov eax, dword [0x422630]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x410d02
cmp dword [esi*4 + 0x422638], edi
je 0x410dfb
inc esi
cmp esi, eax
jl 0x410cf0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x410e77
cmp dword [ebp - 8], 0x1000000
jne 0x410e77
test byte [ebp - 0xc], 0xcc
je 0x410d80
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x410e77
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x410e77
cmp word [eax + 0x18], 0x10b
jne 0x410e77
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x410e77
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x410d80
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x410d80
test byte [ecx + 0x27], 0x80
jne 0x410df7
push 1
push 0x422678
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x410c94
mov ecx, dword [0x422630]
test ecx, ecx
mov edx, ecx
jle 0x410db4
lea eax, [ecx*4 + 0x422634]
cmp dword [eax], edi
je 0x410db4
dec edx
sub eax, 4
test edx, edx
jg 0x410da8
test edx, edx
jne 0x410de5
push 0xf
pop ebx
cmp ecx, ebx
jg 0x410dc1
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x410dd9
lea eax, [edx*4 + 0x422638]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x410dc7
cmp ecx, 0x10
jge 0x410de5
inc ecx
mov dword [0x422630], ecx
push 0
push 0x422678
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x410c94
xor eax, eax
jmp 0x410e7a
test esi, esi
jle 0x410c94
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x422678
call ebx
test eax, eax
jne 0x410c94
cmp dword [esi*4 + 0x422638], edi
je 0x410e51
mov eax, dword [0x422630]
lea esi, [eax - 1]
test esi, esi
jl 0x410e3f
cmp dword [esi*4 + 0x422638], edi
je 0x410e3b
dec esi
jns 0x410e2f
test esi, esi
jge 0x410e4f
cmp eax, 0x10
jge 0x410e4a
inc eax
mov dword [0x422630], eax
lea esi, [eax - 1]
jmp 0x410e51
je 0x410e69
xor ecx, ecx
test esi, esi
jl 0x410e69
lea eax, [ecx*4 + 0x422638]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x410e57
push 0
push 0x422678
call ebx
jmp 0x410c94
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret