joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450b4c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x485bb4]
cmp dword [eax + 0x30], 0
je 0x450bf6
cmp dword [ebx + 0x94], 0
jne 0x450bf0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x450adc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x450bf0
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x450bb6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x450bf0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414814
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x450bc5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x451758
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45178d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404198
jmp 0x45179a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004040fc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45287c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4528bd
mov eax, esi
call fcn.004390fc
test al, al
je 0x4528bd
mov eax, dword [ebx + 0x84]
call fcn.00438df8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4528bd
push 0
mov eax, dword [ebx + 0x84]
call fcn.00438df8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x453250
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov esi, eax
xor eax, eax
push ebp
push 0x4533a8
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404568
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x45338d
mov eax, dword [ebp - 0x10]
inc eax
call fcn.00408e4c
mov edi, eax
push edi
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, esi
call fcn.00404568
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x45338d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4533b8
push edi
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x45338d
mov esi, dword [ebp - 0x14]
mov eax, dword [esi]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x18]
mov eax, 8
call fcn.004085b8
lea eax, [ebp - 0x1c]
push eax
mov ecx, 4
mov edx, 1
mov eax, dword [ebp - 0x18]
call fcn.004045c8
lea eax, [ebp - 0x18]
push eax
mov ecx, 4
mov edx, 5
mov eax, dword [ebp - 0x18]
call fcn.004045c8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4533dc
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push 0x4533f8
xor eax, eax
mov al, byte [ebp - 1]
push dword [eax*4 + 0x482da4]
lea eax, [ebp - 0x20]
mov edx, 5
call fcn.00404428
mov eax, dword [ebp - 0x20]
call fcn.00404568
push eax
push edi
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x45338d
mov eax, dword [ebp - 0x10]
inc eax
call fcn.00408e4c
mov ebx, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, ebx
call fcn.00408cc4
mov eax, dword [ebp - 8]
mov edx, ebx
call fcn.004042a0
mov eax, ebx
call fcn.00408e98
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4533af
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004040cc
ret
Function at 0x46ba44
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
call sub.wininet.dll_InternetGetConnectedState
test eax, eax
jne 0x46ba59
xor eax, eax
pop edx
ret
test byte [esp], 2
je 0x46ba63
mov al, 1
jmp 0x46ba6f
test byte [esp], 4
je 0x46ba6d
mov al, 1
jmp 0x46ba6f
mov al, 1
pop edx
ret

Function at 0x46ba74
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
mov dword [esp], pe_nt_image_headers32
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x46baa5
mov eax, ebx
lea edx, [esp + 4]
mov ecx, pe_nt_image_headers32
call fcn.00404318
jmp 0x46baac
mov eax, ebx
call fcn.004040a8
add esp, 0x104
pop ebx
ret

Function at 0x46bab4
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46bb2e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xff
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004046f4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404568
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x46bb0c
push ebx
mov ecx, dword [ebp - 8]
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004045c8
jmp 0x46bb18
mov eax, ebx
mov edx, 0x46bb44
call fcn.004040fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46bb35
lea eax, [ebp - 4]
call fcn.004040a8
ret

Function at 0x46fb30
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x46fb5e
mov eax, ebx
call fcn.004705e4
cmp dword [ebx + 0x40], 0
je 0x46fb57
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x46fbcf
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x46fbc1
cmp dword [ebx + 8], 0
je 0x46fb80
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x46fb92
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x46fbc1
cmp dword [ebx + 8], 0
je 0x46fb73
cmp eax, 3
je 0x46fba5
dec eax
jne 0x46fb73
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x46fb73
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x46fb73
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x46fbed
cmp dword [ebx + 0x14], 0xcc
je 0x46fbed
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0046fbf8
pop ebx
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x15e45587
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x6f23676d
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4019f0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x808
push ebx
mov ebx, dword [esp + 0x810]
push ebp
push esi
mov esi, dword [esp + 0x81c]
push edi
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
push 0x104
mov ecx, edx
push ebx
and ecx, 3
push 4
rep stosb byte es:[edi], al
push 0x40925c
lea ecx, [esp + 0x24]
call fcn.00402450
mov ecx, eax
call fcn.004024e0
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push eax
call ebp
test eax, eax
je 0x401a63
mov eax, ebx
lea edx, [eax + 1]
jmp 0x401a50
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401a50
sub eax, edx
mov dword [esp + 0x10], eax
jne 0x401b3c
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
push 0x104
mov ecx, edx
push ebx
and ecx, 3
push 3
rep stosb byte es:[edi], al
push 0x409258
lea ecx, [esp + 0x24]
call fcn.00402450
mov ecx, eax
call fcn.004024e0
push eax
call ebp
test eax, eax
je 0x401ab3
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401aa0
sub eax, edx
mov dword [esp + 0x10], eax
jne 0x401b3c
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
push 0x104
mov ecx, edx
push ebx
and ecx, 3
push 0xb
rep stosb byte es:[edi], al
push 0x40924c
lea ecx, [esp + 0x24]
call fcn.00402450
mov ecx, eax
call fcn.004024e0
push eax
call ebp
test eax, eax
je 0x401b4c
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401af0
sub eax, edx
mov dword [esp + 0x10], eax
je 0x401b4c
push 0x10
push 0x409238
lea ecx, [esp + 0x1c]
call fcn.00402450
mov ecx, eax
call fcn.004024e0
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b18
sub eax, edx
dec ebx
mov edi, ebx
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401b24
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x808
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x808
ret
Function at 0x401b60
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408710
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b0
mov eax, dword [0x40b1d0]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
call fcn.00401910
lea eax, [ebp - 0x1bc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x1ae]
push ecx
call fcn.00402ead
add esp, 4
lea edx, [ebp - 0x1a4]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.00401980
push 0x40b9b0
mov dword [ebp - 4], 0
call fcn.00402550
add esp, 4
test eax, eax
mov dword [0x40c728], eax
je 0x401bfd
push 0x40a154
lea eax, [ebp - 0x1ac]
push eax
mov dword [ebp - 0x1ac], 1
call fcn.00402e2e
push 0x40b9b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [0x40c728], eax
jne 0x401c30
push 0x40a154
lea ecx, [ebp - 0x1a8]
push ecx
mov dword [ebp - 0x1a8], 2
call fcn.00402e2e
push 0x40b8a8
mov byte [ebp - 4], 1
call fcn.004017e0
add esp, 4
mov edx, dword [0x40c728]
push edx
mov dword [ebp - 4], 0xffffffff
call fcn.00402570
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00402875
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4021e0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x818
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push edi
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40222c
push 3
lea ecx, [esp + 0x418]
call section..text
push 0x40a2c4
lea edx, [esp + 0xc]
mov esi, eax
mov ecx, 0x103
lea edi, [esp + 0xc]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00402e2e
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402390
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x818
mov edx, dword [ebp + 0x10]
push esi
mov eax, edx
push edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4023a6
mov ecx, dword [ebp + 8]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4023f2
push eax
push 3
lea ecx, [esp + 0x41c]
call fcn.00401040
push 0x40a2c4
lea edx, [esp + 0xc]
mov esi, eax
mov ecx, 0x103
lea edi, [esp + 0xc]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00402e2e
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4024e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
mov ecx, dword [eax + 0x800]
xor dl, dl
dec ecx
push ebx
js 0x40251f
push esi
push edi
mov edi, dword [0x40b194]
jmp 0x402500
mov bl, byte [ecx + eax]
movsx esi, dl
mov dl, byte [esi + 0x40b180]
xor bl, dl
lea edx, [esi + 1]
cmp edx, edi
mov byte [ecx + eax], bl
jne 0x40251a
xor edx, edx
dec ecx
jns 0x402500
pop edi
pop esi
mov edx, dword [eax + 0x800]
xor ecx, ecx
test edx, edx
jle 0x40253f
jmp 0x402530
xor byte [ecx + eax], 6
mov edx, dword [eax + 0x800]
inc ecx
cmp ecx, edx
jl 0x402530
pop ebx
ret

Function at 0x40261a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40c778], esi
push edi
jne 0x40263a
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 [0x40c774], esi
mov byte [0x40c770], al
jne 0x4026a0
mov ecx, dword [0x40dd0c]
test ecx, ecx
je 0x402681
mov eax, dword [0x40dd08]
sub eax, 4
cmp eax, ecx
jmp 0x40267a
mov eax, dword [eax]
test eax, eax
je 0x40266c
call eax
mov eax, dword [0x40dd08]
sub eax, 4
cmp eax, dword [0x40dd0c]
mov dword [0x40dd08], eax
jae 0x402664
mov eax, 0x40b024
mov esi, 0x40b02c
cmp eax, esi
mov edi, eax
jae 0x4026a0
mov eax, dword [edi]
test eax, eax
je 0x402699
call eax
add edi, 4
cmp edi, esi
jb 0x402691
mov eax, 0x40b030
mov esi, 0x40b038
cmp eax, esi
mov edi, eax
jae 0x4026bf
mov eax, dword [edi]
test eax, eax
je 0x4026b8
call eax
add edi, 4
cmp edi, esi
jb 0x4026b0
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4026d9
push dword [ebp + 8]
mov dword [0x40c778], 1
call fcn.00402580
pop ebp
ret
Function at 0x402ffb
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4093a8
call fcn.004034cc
mov edi, 0x94
mov eax, edi
call fcn.00402e70
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 [0x40c738], ecx
mov eax, dword [esi + 4]
mov dword [0x40c744], eax
mov edx, dword [esi + 8]
mov dword [0x40c748], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40c73c], esi
cmp ecx, 2
je 0x40305b
or esi, 0x8000
mov dword [0x40c73c], esi
shl eax, 8
add eax, edx
mov dword [0x40c740], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x403096
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403096
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4030ae
cmp eax, 0x20b
je 0x40309b
mov dword [ebp - 0x1c], esi
jmp 0x4030c2
cmp dword [ecx + 0x84], 0xe
jbe 0x403096
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4030bc
cmp dword [ecx + 0x74], 0xe
jbe 0x403096
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00405342
pop ecx
test eax, eax
jne 0x4030ee
cmp dword [0x40c788], 1
jne 0x4030db
call fcn.00404b7f
push 0x1c
call fcn.00404a08
push 0xff
call fcn.00402580
pop ecx
pop ecx
call fcn.00403293
mov dword [ebp - 4], esi
call fcn.0040517d
test eax, eax
jge 0x403107
push 0x1b
call fcn.00402fd6
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40dd00], eax
call fcn.0040505b
mov dword [0x40c780], eax
call fcn.00404fb9
test eax, eax
jge 0x40312d
push 8
call fcn.00402fd6
pop ecx
call fcn.00404d86
test eax, eax
jge 0x40313e
push 9
call fcn.00402fd6
pop ecx
push 1
call fcn.004025b0
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x403154
push eax
call fcn.00402fd6
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00404d29
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x403175
movzx eax, word [ebp - 0x40]
jmp 0x403178
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401c90
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x403196
push edi
call fcn.004026db
call fcn.004026fd
jmp 0x4031c8
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00403507
ret
Function at 0x404a08
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40b1d0]
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 + 0x40b248]
je 0x404a3d
inc eax
cmp eax, 0x13
jb 0x404a2e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40b248]
jne 0x404b63
mov eax, dword [0x40c788]
cmp eax, 1
je 0x404b3b
cmp eax, edx
jne 0x404a6d
cmp dword [0x40b224], 1
je 0x404b3b
cmp ecx, 0xfc
je 0x404b63
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 0x404aa3
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004056b0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004057b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x404ad7
mov eax, edi
push eax
call fcn.004057b0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40940c
push edi
call fcn.00402720
add esp, 0x10
push edi
call fcn.004057b0
push dword [esi + 0x40b24c]
mov ebx, eax
call fcn.004057b0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00402e70
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004056b0
push edi
push ebx
call fcn.004056c0
push 0x409408
push ebx
call fcn.004056c0
push dword [esi + 0x40b24c]
push ebx
call fcn.004056c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004055b1
add esp, 0x2c
jmp 0x404b63
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40b24c]
push dword [esi]
call fcn.004057b0
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.00402875
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4055b1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40c8bc], ebx
push esi
push edi
jne 0x405631
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40566c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40c8bc], eax
je 0x40566c
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40c8c0], eax
call esi
cmp dword [0x40c738], 2
mov dword [0x40c8c4], eax
jne 0x405631
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40c8cc], eax
je 0x405631
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40c8c8], eax
mov eax, dword [0x40c8c8]
test eax, eax
je 0x405676
call eax
test eax, eax
je 0x40565d
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40c8cc]
test eax, eax
je 0x40565d
test byte [ebp - 8], 1
jne 0x405676
cmp dword [0x40c744], 4
jb 0x405670
or byte [ebp + 0x12], 0x20
jmp 0x405695
xor eax, eax
jmp 0x4056a5
or byte [ebp + 0x12], 4
jmp 0x405695
mov eax, dword [0x40c8c0]
test eax, eax
je 0x405695
call eax
mov ebx, eax
test ebx, ebx
je 0x405695
mov eax, dword [0x40c8c4]
test eax, eax
je 0x405695
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40c8bc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40583b
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 0x405869
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 0x405870
cmp ebx, dword [eax + 4]
jae 0x405870
xor eax, eax
jmp 0x405a60
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x405881
xor eax, eax
inc eax
jmp 0x405a5f
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x405897
cmp ecx, edx
jae 0x4059dc
cmp dword [eax + 4], 0
je 0x4058a0
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x405888
cmp dword [ebp + 8], 0
je 0x4058c2
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4059dc
cmp eax, esi
jae 0x4059dc
mov eax, dword [0x40c8d0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4058e7
cmp dword [esi*4 + 0x40c8d8], edi
je 0x4059e0
inc esi
cmp esi, eax
jl 0x4058d5
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405a5c
cmp dword [ebp - 8], 0x1000000
jne 0x405a5c
test byte [ebp - 0xc], 0xcc
je 0x405965
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x405a5c
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x405a5c
cmp word [eax + 0x18], 0x10b
jne 0x405a5c
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x405a5c
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x405965
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x405965
test byte [ecx + 0x27], 0x80
jne 0x4059dc
push 1
push 0x40c918
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x405879
mov ecx, dword [0x40c8d0]
test ecx, ecx
mov edx, ecx
jle 0x405999
lea eax, [ecx*4 + 0x40c8d4]
cmp dword [eax], edi
je 0x405999
dec edx
sub eax, 4
test edx, edx
jg 0x40598d
test edx, edx
jne 0x4059ca
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4059a6
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4059be
lea eax, [edx*4 + 0x40c8d8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4059ac
cmp ecx, 0x10
jge 0x4059ca
inc ecx
mov dword [0x40c8d0], ecx
push 0
push 0x40c918
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x405879
xor eax, eax
jmp 0x405a5f
test esi, esi
jle 0x405879
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40c918
call ebx
test eax, eax
jne 0x405879
cmp dword [esi*4 + 0x40c8d8], edi
je 0x405a36
mov eax, dword [0x40c8d0]
lea esi, [eax - 1]
test esi, esi
jl 0x405a24
cmp dword [esi*4 + 0x40c8d8], edi
je 0x405a20
dec esi
jns 0x405a14
test esi, esi
jge 0x405a34
cmp eax, 0x10
jge 0x405a2f
inc eax
mov dword [0x40c8d0], eax
lea esi, [eax - 1]
jmp 0x405a36
je 0x405a4e
xor ecx, ecx
test esi, esi
jl 0x405a4e
lea eax, [ecx*4 + 0x40c8d8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x405a3c
push 0
push 0x40c918
call ebx
jmp 0x405879
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret