joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55b2b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59bcc0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x612678]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov eax, edi
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2c], esi
cmp dword [edi + 0x14], 8
jb 0x55b2f1
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
jne 0x55b310
push esi
push edi
push ebx
call fcn.0055af00
add esp, 0xc
jmp 0x55b43e
test eax, 0x400
je 0x55b3f8
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x55b325
mov edx, dword [edi]
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x55b340
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0042f280
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x2000000
push 3
push 0
push 7
push 0
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x34], esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.0042ef70
mov byte [ebp - 4], 2
cmp esi, 0xffffffff
jne 0x55b3ad
push dword [ebp - 0x2c]
push edi
push ebx
call fcn.0055af00
add esp, 0xc
jmp 0x55b43e
push edi
call fcn.0055aba0
add esp, 4
test al, al
jne 0x55b3e0
mov eax, dword [ebp - 0x30]
push eax
push edi
call fcn.0055ae00
add esp, 8
mov dword [ebx], 9
mov dword [ebx + 4], eax
push esi
mov dword [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x55b43e
push esi
mov dword [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x55b40a
mov dword [esi], 0
call fcn.0053de50
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x30]
mov esi, eax
push eax
push edi
call fcn.0055ae00
add esp, 8
mov ecx, eax
and esi, 0x10
je 0x55b425
mov edx, dword [ebp - 0x34]
jmp 0x55b42a
mov edx, ecx
mov ecx, dword [ebp - 0x34]
xor eax, eax
test esi, esi
setne al
add eax, 2
test esi, esi
mov dword [ebx], eax
cmove ecx, edx
mov dword [ebx + 4], ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00556510
mov esp, ebp
pop ebp
ret

Function at 0x55f2c1
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x5dd694
push 0x5dd68c
push str.FlsAlloc
push 0
call fcn.0055f23a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x55f2f3
push dword [ebp + 8]
mov ecx, esi
call fcn.005572b4
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]
Function at 0x55f335
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x5dd6a4
push 0x5dd69c
push str.FlsGetValue
push 2
call fcn.0055f23a
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x55f366
mov ecx, esi
call fcn.005572b4
call esi
jmp 0x55f36c
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x55f36f
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x5dd6ac
push 0x5dd6a4
push str.FlsSetValue
push 3
call fcn.0055f23a
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x55f3a3
mov ecx, esi
call fcn.005572b4
call esi
jmp 0x55f3a9
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x57e2b8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0057e135

Function at 0x582ea0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00582b42

Function at 0x40d870
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
jmp 0x40d88a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40d891
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40d880
mov eax, 1
add ebx, ebx
jne 0x40d8a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40d898
jne 0x40d8b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40d898
xor ecx, ecx
sub eax, 3
jb 0x40d8c8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40d93a
mov ebp, eax
add ebx, ebx
jne 0x40d8d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40d8e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40d904
inc ecx
add ebx, ebx
jne 0x40d8f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40d8e5
jne 0x40d901
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40d8e5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40d924
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40d915
jmp 0x40d886
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40d924
add edi, ecx
jmp 0x40d886
pop esi
mov edi, esi
mov ecx, 0x15d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40d942
cmp byte [edi], 2
jne 0x40d942
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40d947
lea edi, [esi + 0xb000]
mov eax, dword [edi]
or eax, eax
je 0x40d9b6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd094]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40d974
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd09c]
or eax, eax
je 0x40d9b0
mov dword [ebx], eax
add ebx, 4
jmp 0x40d991
call dword [esi + 0xd098]
mov ebp, dword [esi + 0xd0a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0xda11]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40da02
sub esp, 0xffffff80
jmp 0x4012e0
Function at 0x401560
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hide graphical window

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
mov cl, byte [eax]
mov dl, byte [eax + 1]
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ebp, ebp
test esi, esi
jle 0x401612
push ebx
push edi
movzx esi, cl
mov ecx, dword [0x436590]
movzx edi, dl
jmp 0x401590
lea eax, [esi + 1]
cdq
mov esi, 0x254
idiv esi
push 0
push 0
mov bl, dl
movzx esi, bl
movzx eax, byte [esi + ecx]
add eax, edi
cdq
mov edi, 0x254
idiv edi
mov al, byte [esi + ecx]
movzx edi, dl
mov byte [esp + 0x1b], dl
mov dl, byte [edi + ecx]
mov byte [esi + ecx], dl
mov byte [edi + ecx], al
movzx eax, byte [esi + ecx]
movzx ecx, byte [edi + ecx]
add eax, ecx
cdq
mov ecx, 0x254
idiv ecx
mov byte [esp + 0x1a], dl
call dword [sym.imp.USER32.dll_ShowWindow]
movzx edx, byte [esp + 0x12]
mov ecx, dword [0x436590]
mov eax, dword [esp + 0x18]
mov dl, byte [edx + ecx]
xor byte [eax + ebp], dl
mov eax, dword [esp + 0x1c]
inc ebp
cmp ebp, eax
jl 0x401590
mov eax, dword [esp + 0x20]
mov cl, byte [esp + 0x13]
pop edi
mov byte [eax], bl
pop ebx
pop esi
mov byte [eax + 1], cl
pop ebp
pop ecx
ret
pop esi
mov byte [eax], cl
mov byte [eax + 1], dl
pop ebp
pop ecx
ret

Function at 0x402550
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402569
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40257d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40259e
cmp esi, eax
jae 0x402577
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402590
cmp esi, eax
jae 0x402577
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403114
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 0x403167
call fcn.00422fb6
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x403167
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40315d
xor eax, eax
jmp 0x403280
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 0x403197
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 0x403197
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40327d
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x4031c4
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00402d0d
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x40327d
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40320d
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40320d
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x403207
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00402d0d
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x40326d
and dword [ebp + 0xc], 0
jmp 0x40326d
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40326d
push 0xc
call fcn.00418ec2
mov esi, eax
test esi, esi
pop ecx
je 0x40324f
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 0x403251
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x403268
push dword [ebp - 8]
call fcn.00418845
jmp 0x40326d
call fcn.0041881c
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x4031d2
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40c86a
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.0040d6b0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40c905
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 [0x436068]
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 0x40c905
cmp eax, 1
je 0x40c926
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 0x40c905
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40c8d2
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40c901
xor eax, eax
inc eax
jmp 0x40c945
cmp edi, eax
jae 0x40c909
xor eax, eax
jmp 0x40c945
cmp eax, esi
jae 0x40c910
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 [0x436068]
jmp 0x40c929
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 0x40c9b2
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42a280
call fcn.0040dc44
mov edi, 0x94
mov eax, edi
call fcn.0040d6b0
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 [0x436068], ecx
mov eax, dword [esi + 4]
mov dword [0x436074], eax
mov edx, dword [esi + 8]
mov dword [0x436078], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x43606c], esi
cmp ecx, 2
je 0x40ca12
or esi, 0x8000
mov dword [0x43606c], esi
shl eax, 8
add eax, edx
mov dword [0x436070], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40ca4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ca4d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40ca65
cmp eax, 0x20b
je 0x40ca52
mov dword [ebp - 0x1c], esi
jmp 0x40ca79
cmp dword [ecx + 0x84], 0xe
jbe 0x40ca4d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40ca73
cmp dword [ecx + 0x74], 0xe
jbe 0x40ca4d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040f075
pop ecx
test eax, eax
jne 0x40ca8d
push 0x1c
call fcn.0040c98e
pop ecx
call fcn.00410025
test eax, eax
jne 0x40ca9e
push 0x10
call fcn.0040c98e
pop ecx
call fcn.00410a7a
mov dword [ebp - 4], esi
call fcn.0041087c
test eax, eax
jge 0x40cab7
push 0x1b
call fcn.0040c969
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4379d0], eax
call fcn.0041075a
mov dword [0x436058], eax
call fcn.004106b8
test eax, eax
jge 0x40cadd
push 8
call fcn.0040c969
pop ecx
call fcn.00410485
test eax, eax
jge 0x40caee
push 9
call fcn.0040c969
pop ecx
push 1
call fcn.0040d875
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40cb04
push eax
call fcn.0040c969
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00410428
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40cb25
movzx eax, word [ebp - 0x40]
jmp 0x40cb28
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004181f8
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40cb46
push edi
call fcn.0040d9a2
call fcn.0040d9c4
jmp 0x40cb78
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040dc7f
ret
Function at 0x40d8df
Capabilities:
Terminate process

Disassembly:
push 8
push 0x42a300
call fcn.0040dc44
push 8
call fcn.0040f02a
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4360a8], esi
jne 0x40d913
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4360a4], esi
mov al, byte [ebp + 0x10]
mov byte [0x4360a0], al
cmp dword [ebp + 0xc], edi
jne 0x40d95d
cmp dword [0x4379c8], edi
je 0x40d94d
mov eax, dword [0x4379c4]
sub eax, 4
mov dword [0x4379c4], eax
cmp eax, dword [0x4379c8]
jb 0x40d94d
mov eax, dword [eax]
cmp eax, edi
je 0x40d92e
call eax
jmp 0x40d92e
push 0x432090
mov eax, 0x432088
call fcn.0040d85d
pop ecx
push 0x43209c
mov eax, 0x432094
call fcn.0040d85d
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40d98e
cmp dword [ebp + 0x10], edi
jne 0x40d99c
mov dword [0x4360a8], esi
push dword [ebp + 8]
call fcn.0040d81b
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40d99b
push 8
call fcn.0040ef75
pop ecx
ret
call fcn.0040dc7f
ret

Function at 0x410114
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x433140]
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 + 0x4336d0]
je 0x410149
inc eax
cmp eax, 0x13
jb 0x41013a
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4336d0]
jne 0x41026f
mov eax, dword [0x436060]
cmp eax, 1
je 0x410247
cmp eax, edx
jne 0x410179
cmp dword [0x433134], 1
je 0x410247
cmp ecx, 0xfc
je 0x41026f
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 0x4101af
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00412e40
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040d0d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4101e3
mov eax, edi
push eax
call fcn.0040d0d0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x42a930
push edi
call fcn.00414b90
add esp, 0x10
push edi
call fcn.0040d0d0
push dword [esi + 0x4336d4]
mov ebx, eax
call fcn.0040d0d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040d6b0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00412e40
push edi
push ebx
call fcn.00412e50
push 0x42a910
push ebx
call fcn.00412e50
push dword [esi + 0x4336d4]
push ebx
call fcn.00412e50
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00414cb4
add esp, 0x2c
jmp 0x41026f
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4336d4]
push dword [esi]
call fcn.0040d0d0
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.0040d0be
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x413488
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 0x4134b6
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 0x4134bd
cmp ebx, dword [eax + 4]
jae 0x4134bd
xor eax, eax
jmp 0x4136ad
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4134ce
xor eax, eax
inc eax
jmp 0x4136ac
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4134e4
cmp ecx, edx
jae 0x413629
cmp dword [eax + 4], 0
je 0x4134ed
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4134d5
cmp dword [ebp + 8], 0
je 0x41350f
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x413629
cmp eax, esi
jae 0x413629
mov eax, dword [0x436348]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x413534
cmp dword [esi*4 + 0x436350], edi
je 0x41362d
inc esi
cmp esi, eax
jl 0x413522
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4136a9
cmp dword [ebp - 8], 0x1000000
jne 0x4136a9
test byte [ebp - 0xc], 0xcc
je 0x4135b2
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4136a9
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4136a9
cmp word [eax + 0x18], 0x10b
jne 0x4136a9
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4136a9
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4135b2
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4135b2
test byte [ecx + 0x27], 0x80
jne 0x413629
push 1
push 0x436390
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4134c6
mov ecx, dword [0x436348]
test ecx, ecx
mov edx, ecx
jle 0x4135e6
lea eax, [ecx*4 + 0x43634c]
cmp dword [eax], edi
je 0x4135e6
dec edx
sub eax, 4
test edx, edx
jg 0x4135da
test edx, edx
jne 0x413617
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4135f3
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41360b
lea eax, [edx*4 + 0x436350]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4135f9
cmp ecx, 0x10
jge 0x413617
inc ecx
mov dword [0x436348], ecx
push 0
push 0x436390
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4134c6
xor eax, eax
jmp 0x4136ac
test esi, esi
jle 0x4134c6
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x436390
call ebx
test eax, eax
jne 0x4134c6
cmp dword [esi*4 + 0x436350], edi
je 0x413683
mov eax, dword [0x436348]
lea esi, [eax - 1]
test esi, esi
jl 0x413671
cmp dword [esi*4 + 0x436350], edi
je 0x41366d
dec esi
jns 0x413661
test esi, esi
jge 0x413681
cmp eax, 0x10
jge 0x41367c
inc eax
mov dword [0x436348], eax
lea esi, [eax - 1]
jmp 0x413683
je 0x41369b
xor ecx, ecx
test esi, esi
jl 0x41369b
lea eax, [ecx*4 + 0x436350]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x413689
push 0
push 0x436390
call ebx
jmp 0x4134c6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414cb4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4364f0], ebx
push esi
push edi
jne 0x414d34
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x414d6f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42b3c8
push edi
call esi
test eax, eax
mov dword [0x4364f0], eax
je 0x414d6f
push 0x42b3b8
push edi
call esi
push 0x42b3a4
push edi
mov dword [0x4364f4], eax
call esi
cmp dword [0x436068], 2
mov dword [0x4364f8], eax
jne 0x414d34
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x436500], eax
je 0x414d34
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4364fc], eax
mov eax, dword [0x4364fc]
test eax, eax
je 0x414d79
call eax
test eax, eax
je 0x414d60
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x436500]
test eax, eax
je 0x414d60
test byte [ebp - 8], 1
jne 0x414d79
cmp dword [0x436074], 4
jb 0x414d73
or byte [ebp + 0x12], 0x20
jmp 0x414d98
xor eax, eax
jmp 0x414da8
or byte [ebp + 0x12], 4
jmp 0x414d98
mov eax, dword [0x4364f4]
test eax, eax
je 0x414d98
call eax
mov ebx, eax
test ebx, ebx
je 0x414d98
mov eax, dword [0x4364f8]
test eax, eax
je 0x414d98
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4364f0]
pop edi
pop esi
pop ebx
leave
ret