joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42aec0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x824
test eax, eax
je 0x42aee5
mov eax, dword [esp + 0x828]
push eax
call fcn.0042afe0
add esp, 4
add esp, 0x824
ret
lea ecx, [esp + 4]
push edi
push ecx
push str..htm
push 0x80000000
call fcn.0042ac50
add esp, 0xc
test eax, eax
jne 0x42afaa
mov edi, dword [0x471378]
lea edx, [esp + 8]
push str._shellopencommand
push edx
call edi
lea eax, [esp + 8]
lea ecx, [esp + 8]
push eax
push ecx
push 0x80000000
call fcn.0042ac50
add esp, 0xc
test eax, eax
jne 0x42afd3
push esi
lea edx, [esp + 0xc]
push str.__1_
push edx
call fcn.00447091
mov esi, eax
add esp, 8
test esi, esi
jne 0x42af78
lea eax, [esp + 0xc]
push 0x49acf4
push eax
call fcn.004455b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x42af78
lea ecx, [esp + 0xc]
push ecx
call dword [0x47137c]
lea esi, [esp + eax + 0xb]
jmp 0x42af7b
mov byte [esi], 0
push 0x49acf0
push esi
call edi
mov edx, dword [esp + 0x830]
push edx
push esi
call edi
mov eax, dword [esp + 0x834]
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [0x471380]
pop esi
pop edi
add esp, 0x824
ret
mov edx, dword [esp + 0x830]
mov eax, dword [esp + 0x82c]
push edx
push 0
push 0
push eax
push str.open
push 0
call dword [0x4713f4]
pop edi
add esp, 0x824
ret
mov eax, dword [esp + 4]
pop edi
add esp, 0x824
ret

Function at 0x42afe0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46e718
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x18]
push esi
push edi
push eax
lea ecx, [esp + 0x24]
call fcn.00461b03
push str.mailto:
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call fcn.00461b03
mov byte [esp + 0x18], 1
call dword [0x4715d0]
mov ecx, dword [esp + 8]
push 0x40
mov edi, eax
mov esi, dword [ecx - 8]
lea ecx, [esp + 0x24]
call fcn.00461f5c
cmp eax, 0xffffffff
je 0x42b0a6
push ebx
lea edx, [esp + 0x10]
push esi
push edx
lea ecx, [esp + 0x2c]
call fcn.0045b89b
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
push ecx
push eax
call fcn.00445a32
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00461a95
test bl, bl
pop ebx
je 0x42b0a6
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00461cc4
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 2
call fcn.00461bce
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
call fcn.00461a95
mov edx, dword [esp + 0x20]
push 5
push 0x4a53ec
push 0
push edx
push str.open
push edi
call dword [0x4713f4]
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x18], 0
call fcn.00461a95
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.00461a95
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x430eb6
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x430f2a
lea eax, [ebp - 0x108]
push 0x104
push eax
push ebx
call dword [0x471310]
test eax, eax
je 0x430f4e
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x208]
push eax
push ebx
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00446074
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00447570
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call fcn.0044e360
add esp, 0x24
test eax, eax
jne 0x430f4e
cmp dword [ebp + 0xc], ebx
jne 0x430f2e
mov al, 1
jmp 0x430f92
lea eax, [ebp - 0x108]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
je 0x430f4e
push edi
call fcn.0044522e
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x430f52
xor al, al
jmp 0x430f92
push esi
push edi
lea eax, [ebp - 0x108]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x430f89
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x48b568
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x430f89
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
cmp dword [eax + 0x10], ecx
sbb bl, bl
inc bl
push esi
call fcn.004451e6
pop ecx
mov al, bl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4355cf
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x43562b
cmp edi, 2
jae 0x4355e1
xor al, al
pop edi
ret
cmp byte [esp + 0x10], 0
push esi
je 0x4355f2
mov esi, dword [esp + 0xc]
mov ax, word [esi]
jmp 0x43560d
push 0
call fcn.00447267
push eax
call fcn.00447650
pop ecx
pop ecx
call fcn.0044765d
mov esi, dword [esp + 0xc]
mov word [esi], ax
inc esi
movzx eax, ax
inc esi
dec edi
push eax
dec edi
call fcn.00447650
test edi, edi
pop ecx
je 0x43562a
call fcn.0044765d
xor byte [esi], al
inc esi
dec edi
jne 0x43561f
pop esi
mov al, 1
pop edi
ret
Function at 0x45a3d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [0x471074]
mov edi, dword [ebp + 8]
push edi
call dword [0x47148c]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004453d0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x45a49b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [0x471490]
test eax, eax
je 0x45a49b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x45a44e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x45a459
or bh, 8
and edi, 0x8000000
je 0x45a474
mov eax, dword [0x4a9abc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [0x471060]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [0x471614]
test edi, edi
je 0x45a49b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [0x471060]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45f252
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45f28a
push dword [esi + 0x1c]
call dword [0x47148c]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00461f3c
push eax
push dword [esi + 0x1c]
call dword [0x471490]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00461f14
jmp 0x45f296
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x401120
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 0x401139
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40114d
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 0x40116e
cmp esi, eax
jae 0x401147
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401160
cmp esi, eax
jae 0x401147
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402fe0
Capabilities:
Get common file path

Disassembly:
push 0x42ea48
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, 0x42ea48
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402ff8
sub eax, edx
push edi
lea edi, [eax + 0x42ea48]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403010
mov ax, word [0x423358]
push 0x42ec50
push 0x104
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x423350
push 0x42ec50
call fcn.0040a33b
lea ecx, [eax*2 + 0x42ec50]
add esp, 4
push ecx
call fcn.0040a27d
add esp, 8
pop edi
ret

Function at 0x403440
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x60]
xor ebx, ebx
push ebx
push eax
mov dword [esi], 0x423398
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp dword [esi + 0x5c], 0x10
jb 0x403469
mov ecx, dword [esi + 0x48]
push ecx
call fcn.0041747c
add esp, 4
mov dword [esi + 0x5c], 0xf
mov dword [esi + 0x58], ebx
mov byte [esi + 0x48], bl
cmp dword [esi + 0x40], 0x10
jb 0x403488
mov edx, dword [esi + 0x2c]
push edx
call fcn.0041747c
add esp, 4
mov dword [esi + 0x40], 0xf
mov dword [esi + 0x3c], ebx
mov byte [esi + 0x2c], bl
cmp dword [esi + 0x24], 8
jb 0x4034a7
mov eax, dword [esi + 0x10]
push eax
call fcn.0041747c
add esp, 4
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], 7
mov word [esi + 0x10], bx
pop esi
pop ebx
ret
Function at 0x4034c0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x420
mov eax, dword [0x428990]
push ebx
push edi
mov ebx, ecx
push 0x4233b8
push ebx
mov dword [esp + 0x42c], eax
call fcn.0040a600
add esp, 8
test eax, eax
je 0x403505
mov edi, edi
push 0x4233b8
push ebx
mov byte [eax], 0x2f
call fcn.0040a600
add esp, 8
test eax, eax
jne 0x4034f0
xor eax, eax
mov word [esp + 0x10], 0
mov ecx, 0x103
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
push 0x207
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [esp + 0x10]
push ecx
call fcn.0040a33b
add esp, 4
push eax
lea ecx, [esi + 0xc]
lea eax, [esp + 0x14]
call fcn.00403180
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403551
sub eax, edx
push eax
push ebx
lea ecx, [esi + 0x28]
call fcn.004017f0
mov ecx, dword [ebp + 8]
mov eax, ecx
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403570
sub eax, edi
push eax
push ecx
lea ecx, [esi + 0x44]
call fcn.004017f0
mov ebx, dword [sym.imp.WINMM.dll_timeGetTime]
xor edi, edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
call ebx
mov dword [esi + 0x74], eax
call ebx
mov edx, dword [esi + 0x60]
mov dword [esi + 0x78], eax
mov eax, 1
push edi
push edx
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [esp + 0xc]
push eax
push edi
push esi
push 0x403630
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x42df90
mov dword [esi + 0x60], eax
call ebx
mov edi, dword [esi + 0x64]
push 0x42df90
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x403611
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x42df90
call ebx
mov edi, dword [esi + 0x64]
push 0x42df90
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x4035f0
mov eax, dword [esi + 0x68]
mov ecx, dword [esp + 0x424]
test eax, eax
setne al
call fcn.0040b285
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403f30
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x458]
xor ebx, ebx
push ebx
push eax
mov dword [edi], 0x4233d8
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [edi + 0x3f4], 0x4233d4
mov eax, dword [edi + 0x450]
mov ebp, 0x10
cmp eax, ebp
jb 0x403f74
mov ecx, dword [edi + 0x43c]
push ecx
call fcn.0041747c
add esp, 4
mov esi, 0xf
mov dword [edi + 0x450], esi
mov dword [edi + 0x44c], ebx
mov byte [edi + 0x43c], bl
mov dword [edi + 0x390], 0x4233d4
cmp dword [edi + 0x3ec], ebp
jb 0x403fac
mov edx, dword [edi + 0x3d8]
push edx
call fcn.0041747c
add esp, 4
mov dword [edi + 0x3ec], esi
mov dword [edi + 0x3e8], ebx
mov byte [edi + 0x3d8], bl
cmp dword [edi + 0x124], ebp
jb 0x403fd5
mov eax, dword [edi + 0x110]
push eax
call fcn.0041747c
add esp, 4
mov dword [edi + 0x124], esi
mov dword [edi + 0x120], ebx
lea esi, [edi + 0x100]
mov byte [edi + 0x110], bl
call fcn.00406550
lea esi, [edi + 0xf4]
call fcn.00406550
cmp dword [edi + 0xec], ebp
jb 0x404014
mov ecx, dword [edi + 0xd8]
push ecx
call fcn.0041747c
add esp, 4
mov esi, 0xf
mov dword [edi + 0xec], esi
mov dword [edi + 0xe8], ebx
mov byte [edi + 0xd8], bl
cmp dword [edi + 0xd0], ebp
jb 0x404042
mov edx, dword [edi + 0xbc]
push edx
call fcn.0041747c
add esp, 4
mov dword [edi + 0xd0], esi
mov dword [edi + 0xcc], ebx
mov byte [edi + 0xbc], bl
cmp dword [edi + 0xb4], ebp
jb 0x40406b
mov eax, dword [edi + 0xa0]
push eax
call fcn.0041747c
add esp, 4
mov dword [edi + 0xb4], esi
mov dword [edi + 0xb0], ebx
mov byte [edi + 0xa0], bl
mov ecx, edi
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.00403440

Function at 0x404e00
Capabilities:
Create thread
Terminate thread

Disassembly:
push ecx
mov eax, edx
push edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404e07
sub eax, edi
push eax
push edx
lea ecx, [esi + 0xd4]
call fcn.004017f0
mov ecx, dword [esi + 0x458]
mov ax, word [esp + 0xc]
push 0
push ecx
mov word [esi + 0xf0], ax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea edx, [esp + 4]
push edx
push 0
push esi
push 0x404e60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x458], eax
mov al, 1
pop edi
pop ecx
ret 4
Function at 0x406320
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41f558
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 dword [esp + 0x14], edi
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
call fcn.00406480
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401790
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 0x4063b2
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 0x406b90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41f648
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x30]
push ebx
xor ebx, ebx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.00401570
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x2c], ebx
push ebx
or eax, 0xffffffff
lea ebx, [esp + 0xc]
call fcn.00402650
xor ecx, ecx
push 0xffffffffffffffff
mov dword [esi + 0x14], ecx
push ecx
mov dword [esi + 0x18], 0xf
mov byte [esi + 4], cl
push eax
mov ecx, esi
call fcn.00401570
cmp dword [esp + 0x20], 0x10
pop ebx
jb 0x406c14
mov ecx, dword [esp + 8]
push ecx
call fcn.0041747c
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x407550
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x10
push edi
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40758d
push edi
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_GetParent]
push esi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
push str.CWINBUTTON
push eax
call dword [sym.imp.USER32.dll_SetPropA]
test eax, eax
jne 0x407594
push str.SetProp_ERROR
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop edi
add esp, 0x10
ret
mov eax, dword [esi + 0xc]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_GetWindowLongA]
push ebx
je 0x4075f0
push 0xfffffffffffffff0
push eax
call edi
test eax, 0xc00000
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
je 0x4075be
push 4
call ebx
mov dword [esi + 0x2e0], eax
mov ecx, dword [esi + 0xc]
push 0xfffffffffffffff0
push ecx
call edi
test eax, 0x800000
je 0x4075d7
push 5
call ebx
mov dword [esi + 0x2e4], eax
mov edx, dword [esi + 0xc]
push 0xfffffffffffffff0
push edx
call edi
test eax, 0x40000
je 0x4075f0
push 0x2d
call ebx
mov dword [esi + 0x2e8], eax
mov eax, dword [esi + 8]
push 0xfffffffffffffff0
push eax
call edi
mov ecx, dword [esi + 8]
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongA]
or eax, 0xb
push eax
push 0xfffffffffffffff0
push ecx
call ebx
mov eax, dword [esi + 8]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push 5
push 5
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_CreateRoundRectRgn]
mov edx, dword [esi + 8]
push 1
mov edi, eax
push edi
push edx
call dword [sym.imp.USER32.dll_SetWindowRgn]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 8]
push 0x407cd0
push 0xfffffffffffffffc
push eax
call ebx
pop ebx
mov dword [esi + 0x10], eax
mov eax, 1
pop edi
add esp, 0x10
ret
Function at 0x409ea7
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.0040c0a0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409f42
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 [0x42d944]
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 0x409f42
cmp eax, 1
je 0x409f63
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 0x409f42
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x409f0f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x409f3e
xor eax, eax
inc eax
jmp 0x409f82
cmp edi, eax
jae 0x409f46
xor eax, eax
jmp 0x409f82
cmp eax, esi
jae 0x409f4d
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 [0x42d944]
jmp 0x409f66
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 0x40b028
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x421cb8
call fcn.0040c788
mov edi, 0x94
mov eax, edi
call fcn.0040c0a0
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 [0x42d944], ecx
mov eax, dword [esi + 4]
mov dword [0x42d950], eax
mov edx, dword [esi + 8]
mov dword [0x42d954], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x42d948], esi
cmp ecx, 2
je 0x40b088
or esi, 0x8000
mov dword [0x42d948], esi
shl eax, 8
add eax, edx
mov dword [0x42d94c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40b0c3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b0c3
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40b0db
cmp eax, 0x20b
je 0x40b0c8
mov dword [ebp - 0x1c], esi
jmp 0x40b0ef
cmp dword [ecx + 0x84], 0xe
jbe 0x40b0c3
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40b0e9
cmp dword [ecx + 0x74], 0xe
jbe 0x40b0c3
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040e327
pop ecx
test eax, eax
jne 0x40b103
push 0x1c
call fcn.0040b004
pop ecx
call fcn.0040f218
test eax, eax
jne 0x40b114
push 0x10
call fcn.0040b004
pop ecx
call fcn.00410eed
mov dword [ebp - 4], esi
call fcn.004102c8
test eax, eax
jge 0x40b12d
push 0x1b
call fcn.0040afdf
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x43a5b0], eax
call fcn.00410dcb
mov dword [0x42d934], eax
call fcn.00410d29
test eax, eax
jge 0x40b153
push 8
call fcn.0040afdf
pop ecx
call fcn.00410af6
test eax, eax
jge 0x40b164
push 9
call fcn.0040afdf
pop ecx
push 1
call fcn.0040b7d9
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40b17a
push eax
call fcn.0040afdf
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00410a99
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40b19b
movzx eax, word [ebp - 0x40]
jmp 0x40b19e
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004155d8
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40b1bc
push edi
call fcn.0040b906
call fcn.0040b928
jmp 0x40b1ee
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040c7c3
ret
Function at 0x40b843
Capabilities:
Terminate process

Disassembly:
push 8
push 0x421cf0
call fcn.0040c788
push 8
call fcn.0040e4cb
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x42d984], esi
jne 0x40b877
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x42d980], esi
mov al, byte [ebp + 0x10]
mov byte [0x42d97c], al
cmp dword [ebp + 0xc], edi
jne 0x40b8c1
cmp dword [0x43a5a8], edi
je 0x40b8b1
mov eax, dword [0x43a5a4]
sub eax, 4
mov dword [0x43a5a4], eax
cmp eax, dword [0x43a5a8]
jb 0x40b8b1
mov eax, dword [eax]
cmp eax, edi
je 0x40b892
call eax
jmp 0x40b892
push 0x4280b4
mov eax, 0x4280ac
call fcn.0040b7c1
pop ecx
push 0x4280c0
mov eax, 0x4280b8
call fcn.0040b7c1
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40b8f2
cmp dword [ebp + 0x10], edi
jne 0x40b900
mov dword [0x42d984], esi
push dword [ebp + 8]
call fcn.0040b77f
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40b8ff
push 8
call fcn.0040e416
pop ecx
ret
call fcn.0040c7c3
ret