joyce8/EMBER2024-capa huggingface dataset:
Function at 0x479130
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4bcbe6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x5b5bd8]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.004a824d
mov edx, dword [0x5b5bd8]
mov dword [esp + 0x3c], edx
cmp esi, ebx
mov byte [esp + 0xac], 1
jne 0x47918a
mov dword [esp + 0x1c], ebx
jmp 0x479191
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
push edi
mov ecx, esi
call fcn.004aa473
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
call fcn.004a5ebf
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], ecx
jne 0x4791e2
mov dword [esp + 0x14], ebx
jmp 0x4791e9
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x44], 0xd
jne 0x479204
mov eax, dword [eax + 0x3c8]
cmp eax, edi
je 0x4791fe
cmp eax, 2
jne 0x479204
mov dword [esp + 0x18], edi
jmp 0x479208
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x479216
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004a7883
mov edi, eax
cmp edi, ebx
jne 0x479226
xor eax, eax
jmp 0x479229
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x479251
mov ecx, esi
call fcn.004aa473
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebx
test eax, eax
pop edi
je 0x47926d
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x47928c
mov esi, dword [esp + 0x10]
push esi
call ebx
test eax, eax
je 0x47928c
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 0
call fcn.004a5d86
lea ecx, [esp + 0xc]
mov dword [esp + 0xac], 0xffffffff
call fcn.004a5d86
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x47dcd0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x47dd19
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x47e190
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bd2e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0047dd40
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0047ddc0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0047ddc0
lea ecx, [esi + 0xc]
call fcn.004a5d11
lea ecx, [esi + 0x10]
call fcn.004a5d11
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0047f350
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0047f350
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0047f350
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004a5d86
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004a5d86
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x47f540
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x47f5a6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x47f5a6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x47f587
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4a6bf3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004b17c0
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4a6c24
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.004a6c37
pop edi
pop esi
pop ebx
ret 8

Function at 0x4a824d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a8285
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a622d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a6205
jmp 0x4a8291
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a9b3c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a9b7e
call fcn.004b17c0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a9b7e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a9b75
xor eax, eax
jmp 0x4a9b86
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a9b8c
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b1cf0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b1d1e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b1d3c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b1c56
jmp 0x4b1d3c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b1d3c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b1c56
test edi, edi
mov eax, edi
jne 0x4b1d26
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4b4afc
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x4b4b24
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x4b4b35
push 2
call edi
test ax, ax
jge 0x4b4b35
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004a7883
cmp dword [esi + 0x30], ebx
jne 0x4b4c0f
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004a7883
cmp eax, dword [esp + 0x34]
jne 0x4b4c0f
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4b4bab
push 1
push pe_nt_image_headers32
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x4b4bf0
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x4b4c0f
cmp eax, 0x205
je 0x4b4c0f
cmp eax, 0x201
je 0x4b4c0f
cmp eax, 0x204
je 0x4b4c0f
cmp eax, ebx
jne 0x4b4bd6
cmp dword [esp + 0x1c], 0x1b
je 0x4b4c0f
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x5e128c]
jbe 0x4b4c05
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4b4b68
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x402100
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x25c
mov eax, dword [0x435170]
mov dword [esp + 0x258], eax
lea eax, [esp]
push eax
call fcn.004020b0
mov al, byte [esp + 4]
add esp, 4
test al, al
jne 0x40213b
mov al, 1
mov ecx, dword [esp + 0x258]
call fcn.0040e8ce
add esp, 0x25c
ret
mov edx, dword [esp + 0x260]
push 0x12b
lea ecx, [esp + 0x130]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jg 0x40216f
xor al, al
mov ecx, dword [esp + 0x258]
call fcn.0040e8ce
add esp, 0x25c
ret
lea eax, [esp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402175
sub eax, edx
mov dl, byte [esp]
push ebx
dec eax
cmp dl, 0x2a
push esi
jne 0x4021de
mov bl, byte [esp + eax + 8]
cmp bl, dl
lea ecx, [esp + eax + 8]
jne 0x4021de
mov byte [ecx], 0
lea eax, [esp + 9]
lea esp, [esp]
mov cl, byte [eax]
mov byte [eax - 1], cl
inc eax
test cl, cl
jne 0x4021a0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x138]
push ecx
call fcn.0040ea50
add esp, 8
test eax, eax
je 0x4022b8
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x258]
call fcn.0040e8ce
add esp, 0x25c
ret
cmp byte [esp + eax + 8], 0x2a
jne 0x40221f
push eax
lea edx, [esp + 0xc]
mov byte [esp + eax + 0xc], 0
push edx
lea eax, [esp + 0x13c]
push eax
call fcn.0040ea10
add esp, 0xc
test eax, eax
jne 0x4022b8
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x258]
call fcn.0040e8ce
add esp, 0x25c
ret
cmp dl, 0x2a
jne 0x402278
lea eax, [esp + 9]
mov cl, byte [eax]
mov byte [eax - 1], cl
inc eax
test cl, cl
jne 0x402228
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x138]
push edx
call fcn.0040ea50
add esp, 8
test eax, eax
je 0x4022b8
lea esi, [esp + 8]
nop
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4022ab
test cl, cl
je 0x402274
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4022ab
add eax, 2
add esi, 2
test cl, cl
jne 0x402250
xor eax, eax
jmp 0x4022b0
lea esi, [esp + 8]
lea eax, [esp + 0x134]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4022ab
test cl, cl
je 0x4022a7
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4022ab
add eax, 2
add esi, 2
test cl, cl
jne 0x402283
xor eax, eax
jmp 0x4022b0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4021c7
mov ecx, dword [esp + 0x260]
pop esi
xor al, al
pop ebx
call fcn.0040e8ce
add esp, 0x25c
ret
Function at 0x4042f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1534
call fcn.0040eb30
mov eax, dword [0x435170]
push edi
mov dword [esp + 0x1534], eax
xor eax, eax
mov byte [esp + 0xa68], 0
mov ecx, 0x2b0
lea edi, [esp + 0xa69]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x2d8], 0
mov ecx, 0x3a
lea edi, [esp + 0x2d9]
rep stosd dword es:[edi], eax
mov ecx, 0x1a8
lea edi, [esp + 0x3c1]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov dword [0x4360e0], eax
call fcn.00403180
call fcn.004027d0
call fcn.00403a20
lea ecx, [esp + 0x70]
push ecx
call fcn.00401a10
mov eax, dword [0x4360dc]
add esp, 4
test eax, eax
je 0x4043a5
lea edx, [esp + 0xa68]
push edx
call dword [eax + 0x2fc0]
mov ecx, dword [0x4360dc]
lea eax, [esp + 0x2dc]
push 1
push eax
call dword [ecx + 0x27c0]
add esp, 0xc
mov eax, dword [0x4360e0]
push 0x64
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jg 0x4043d1
mov edx, dword [0x4360e0]
lea ecx, [esp + 0xfbd]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextA]
cmp dword [esp + 0x780], 1
je 0x4043f7
mov ecx, dword [0x4360e0]
push 0x1000
push 0
lea eax, [esp + 0xd42]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x4360dc]
test eax, eax
je 0x404441
push 0
push 0
push 0x4298d8
push 2
call dword [eax + 0x2494]
mov edx, dword [0x4360dc]
push 0
push 1
push 0
push 0x4298d8
call dword [edx + 0x2e70]
add esp, 0x20
cmp al, 1
jne 0x404441
push 0x64
push 0x4b0
mov byte [0x4360e4], al
call dword [sym.imp.KERNEL32.dll_Beep]
mov eax, dword [0x4360e0]
push 0x403d30
push 0x32
push 0x271a
push eax
call dword [esp + 0x268]
mov ecx, dword [esp + 0x1534]
mov dword [0x438bc8], eax
call fcn.0040e8ce
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x404672
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404687
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x404699
xor eax, eax
jmp 0x4046cb
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4046bd
cmp esi, eax
jae 0x404695
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4046af
cmp esi, eax
jae 0x404695
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x404d05
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 0x404d58
call fcn.00424b5e
mov edi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x404d58
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x404d4e
xor eax, eax
jmp 0x404e71
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 0x404d88
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 0x404d88
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x404e6e
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x404db5
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0040623b
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x404e6e
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x404dfe
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x404dfe
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x404df8
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0040623b
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x404e5e
and dword [ebp + 0xc], 0
jmp 0x404e5e
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x404e5e
push 0xc
call fcn.0041c011
mov esi, eax
test esi, esi
pop ecx
je 0x404e40
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 0x404e42
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x404e59
push dword [ebp - 8]
call fcn.0041a45b
jmp 0x404e5e
call fcn.0041a432
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x404dc3
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40ee3e
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.0040eb30
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40eed9
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 [0x43b508]
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 0x40eed9
cmp eax, 1
je 0x40eefa
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 0x40eed9
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40eea6
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40eed5
xor eax, eax
inc eax
jmp 0x40ef19
cmp edi, eax
jae 0x40eedd
xor eax, eax
jmp 0x40ef19
cmp eax, esi
jae 0x40eee4
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 [0x43b508]
jmp 0x40eefd
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 0x40f092
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42c5a8
call fcn.004107dc
mov edi, 0x94
mov eax, edi
call fcn.0040eb30
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 [0x43b508], ecx
mov eax, dword [esi + 4]
mov dword [0x43b514], eax
mov edx, dword [esi + 8]
mov dword [0x43b518], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x43b50c], esi
cmp ecx, 2
je 0x40f0f2
or esi, 0x8000
mov dword [0x43b50c], esi
shl eax, 8
add eax, edx
mov dword [0x43b510], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40f12d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f12d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40f145
cmp eax, 0x20b
je 0x40f132
mov dword [ebp - 0x1c], esi
jmp 0x40f159
cmp dword [ecx + 0x84], 0xe
jbe 0x40f12d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40f153
cmp dword [ecx + 0x74], 0xe
jbe 0x40f12d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00412cc4
pop ecx
test eax, eax
jne 0x40f16d
push 0x1c
call fcn.0040f06e
pop ecx
call fcn.0041198d
test eax, eax
jne 0x40f17e
push 0x10
call fcn.0040f06e
pop ecx
call fcn.004143e2
mov dword [ebp - 4], esi
call fcn.004141e4
test eax, eax
jge 0x40f197
push 0x1b
call fcn.0040f049
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x43cdd0], eax
call fcn.004140c2
mov dword [0x43b4f8], eax
call fcn.00414020
test eax, eax
jge 0x40f1bd
push 8
call fcn.0040f049
pop ecx
call fcn.00413ded
test eax, eax
jge 0x40f1ce
push 9
call fcn.0040f049
pop ecx
push 1
call fcn.0040f36d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40f1e4
push eax
call fcn.0040f049
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00413d90
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40f205
movzx eax, word [ebp - 0x40]
jmp 0x40f208
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00419fe8
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40f226
push edi
call fcn.0040f49a
call fcn.0040f4bc
jmp 0x40f258
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00410817
ret
Function at 0x40f3d7
Capabilities:
Terminate process

Disassembly:
push 8
push 0x42c5d0
call fcn.004107dc
push 8
call fcn.00412c79
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x43b548], esi
jne 0x40f40b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x43b544], esi
mov al, byte [ebp + 0x10]
mov byte [0x43b540], al
cmp dword [ebp + 0xc], edi
jne 0x40f455
cmp dword [0x43cdc8], edi
je 0x40f445
mov eax, dword [0x43cdc4]
sub eax, 4
mov dword [0x43cdc4], eax
cmp eax, dword [0x43cdc8]
jb 0x40f445
mov eax, dword [eax]
cmp eax, edi
je 0x40f426
call eax
jmp 0x40f426
push 0x4340a4
mov eax, 0x43409c
call fcn.0040f355
pop ecx
push 0x4340b0
mov eax, 0x4340a8
call fcn.0040f355
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40f486
cmp dword [ebp + 0x10], edi
jne 0x40f494
mov dword [0x43b548], esi
push dword [ebp + 8]
call fcn.0040f313
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40f493
push 8
call fcn.00412bc4
pop ecx
ret
call fcn.00410817
ret