joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4519c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x491fc3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00484f62
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0048a5fb
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0048bb17
test eax, eax
je 0x451adc
mov ecx, dword [esp + 0x3c]
call fcn.0048a628
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x451aa0
push edi
mov ecx, esi
call fcn.00487c8c
mov ecx, esi
call fcn.00451c40
cmp dword [esp + 0x38], 1
jne 0x451ad5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00487dc7
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x454500
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x454533
push esi
call fcn.004575f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45452c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4545b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4545a2
mov eax, dword [esi + 8]
test eax, eax
je 0x454557
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45459e
cmp eax, 2
je 0x4545a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45454a
cmp eax, 3
je 0x45457d
cmp eax, 1
jne 0x45454a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45454a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45454a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004545e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4545c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004545e0
add esp, 4
pop esi
ret

Function at 0x461800
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4618a3
test eax, eax
jbe 0x4618a3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4618a3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x46184e
xor esi, esi
jmp 0x461854
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46187f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00465e90
add esi, eax
push esi
mov ebx, esi
call fcn.00465e90
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x461860
pop ebp
test edi, edi
pop edi
jne 0x4618a3
test ebx, ebx
je 0x4618a3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004744e0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4619e5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x461afd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x461afd
mov eax, dword [esi + 0x3c]
push eax
call fcn.004853b4
mov esi, eax
test esi, esi
je 0x461afd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x461afd
mov ecx, esi
call fcn.00461950
cmp edi, eax
jge 0x461afd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x461a83
mov dword [esp + 0x34], 1
jmp 0x461ade
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x461afd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00460160
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x485d58
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x485d90
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.00483e0f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00483de7
jmp 0x485d9c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x487449
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 0x48748b
call fcn.0048cf07
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48748b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x487482
xor eax, eax
jmp 0x487493
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00487499
pop edi
pop esi
pop ebx
ret 4
Function at 0x48d437
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 0x48d465
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48d483
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048d39d
jmp 0x48d483
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48d483
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048d39d
test edi, edi
mov eax, edi
jne 0x48d46d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401023
Capabilities:
Hide graphical window

Disassembly:
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x4031da], eax
push 0xa
push 0
push 0
push dword [0x4031da]
call 0x401023
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xffffffb0
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x40115c
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push dword [0x4031da]
pop dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], str.TrainerEngine
push 1
push dword [0x4031da]
call sub.USER32.dll_LoadIconA
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
push 0x7f00
push 0
call sub.USER32.dll_LoadCursorA
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
call sub.USER32.dll_RegisterClassExA
xor ecx, ecx
mov cl, byte [section..data]
mov ebx, 0x8d
mov eax, 0x1e
mul ecx
add ebx, eax
mov dword [0x4031c4], ebx
jmp 0x4010ea
push 0
push dword [ebp + 8]
push 0
push 0
push dword [0x4031c4]
push dword [0x4031c8]
push eax
push ebx
push 0xca0000
push str.HOMM_3___Shadow_of_Death:_Trainer._RIP_Version.
push str.TrainerEngine
push 1
call sub.USER32.dll_CreateWindowExA
mov dword [ebp - 0x50], eax
push dword [ebp + 0x14]
push dword [ebp - 0x50]
call sub.USER32.dll_ShowWindow
push dword [ebp - 0x50]
call sub.USER32.dll_UpdateWindow
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.USER32.dll_GetMessageA
cmp eax, 0
je 0x401155
lea eax, [ebp - 0x4c]
push eax
call sub.USER32.dll_TranslateMessage
lea eax, [ebp - 0x4c]
push eax
call sub.USER32.dll_DispatchMessageA
jmp 0x40112d
mov eax, dword [ebp - 0x44]
leave
ret 0x10
Function at 0x426f00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x418015
lea edi, [esi - 0x17015]
push edi
or ebp, 0xffffffff
jmp 0x426f22
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x426f29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x426f18
mov eax, 1
add ebx, ebx
jne 0x426f3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x426f30
jne 0x426f4c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x426f30
xor ecx, ecx
sub eax, 3
jb 0x426f60
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x426fd2
mov ebp, eax
add ebx, ebx
jne 0x426f6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x426f78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x426f9c
inc ecx
add ebx, ebx
jne 0x426f88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x426f7d
jne 0x426f99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x426f7d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x426fbc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x426fad
jmp 0x426f1e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x426fbc
add edi, ecx
jmp 0x426f1e
pop esi
mov edi, esi
mov ecx, 0xaca
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x426fda
cmp byte [edi], 7
jne 0x426fda
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 0x426fdf
lea edi, [esi + 0x24000]
mov eax, dword [edi]
or eax, eax
je 0x427057
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2877c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2881c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42700c
mov ecx, edi
jns 0x42703b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x28820]
or eax, eax
je 0x427051
mov dword [ebx], eax
add ebx, 4
jmp 0x427029
call dword [esi + 0x28830]
mov ebp, dword [esi + 0x28824]
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
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42708b
sub esp, 0xffffff80
jmp 0x412a92
Function at 0x4e762d
Capabilities:
Encode data using xor

Disassembly:
jmp 0x4d0861
xor ecx, ecx
cmp dword [esp + 8], ecx
jbe 0x4d087d
mov edx, dword [esp + 4]
movzx edx, byte [ecx + edx]
rol eax, 7
xor eax, edx
inc ecx
cmp ecx, dword [esp + 8]
jb 0x4d0869
jmp 0x4d0888
ret
lea esp, [esp + 4]
jmp 0x4d0856
Function at 0x828a4d
Capabilities:
Parse pe header

Disassembly:
mov byte [esp], ch
mov word [esp], dx
pushfd
lea esp, [esp]
push word [esp + 3]
call fcn.00828a65
sti
imul ecx, dword [esi], reloc.MSVFW32.dll_DrawDibDraw
sbb dword [edx], ebp
scasb al, byte es:[edi]
cmp eax, 0x66dfeb6a
jmp 0x828a2e
push dx
jmp 0x828a2e
mov dword [esp + 0x20], edx
pushfd
mov byte [esp + 2], dh
mov dword [esp], ebp
jmp 0x828ab8
pop word [esp]
push word [esp]
push word [esp + 3]
pop word [esp]
mov dword [esp], ecx
pop word [esp]
jmp 0x828c3e
mov word [esp], di
lea esp, [esp]
lea esp, [esp + 2]
mov dword [esp + 0x1c], ebx
call fcn.00828ba9

Function at 0x828c0b
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
push ax
jmp 0x828d75
pop word [esp]
mov dword [esp], ebp
mov dword [esp], esi
pushal
pop dword [esp + 0x17]
pop word [esp + 0x13]
jmp 0x828cc5

Function at 0x40152a
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
lea eax, [ebp - 0x124]
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x120]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10c]
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [ebp - 0x124], 0x14
mov byte [ebp - 0x10c], 0
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
movzx eax, word [ebp - 0x120]
sub esp, 0x14
leave
sub eax, 0x41
ret

Function at 0x401586
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 0
call fcn.0040152a
test eax, eax
jne 0x401620
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x4020b6
sub eax, 0x401654
mov dword [esp], 0x401654
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x401620
lea ebx, [ebp - 0x88]
mov dword [esp], 0
call fcn.00401420
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.004014a3
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1b600
mov dword [esp], 0x40300c
call fcn.00401db9
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x4010f0
Capabilities:
Create service

Disassembly:
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
mov ecx, dword [esp + 0x10]
push 0
push 0x432108
push eax
mov eax, dword [esp + 0x20]
push 1
push 3
push 1
push 0xf01ff
push eax
push eax
push ecx
call dword [sym.imp.advapi32.dll_CreateServiceA]
test eax, eax
jne 0x401123
ret
push eax
call dword [sym.imp.advapi32.dll_CloseServiceHandle]
mov eax, 1
ret

Function at 0x4011a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x40
call dword [sym.imp.kernel32.dll_GetVersion]
and eax, 0xff
cmp eax, 5
jb 0x4011c4
mov eax, dword [esp + 0x44]
lea ecx, [esp]
push eax
push 0x432124
push ecx
jmp 0x4011d3
mov edx, dword [esp + 0x44]
lea eax, [esp]
push edx
push 0x43211c
push eax
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x401204
xor eax, eax
add esp, 0x40
ret
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x401217
mov dword [ecx], eax
mov eax, 1
add esp, 0x40
ret
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 1
add esp, 0x40
ret
Function at 0x401280
Capabilities:
Copy file
Query environment variable
Set file attributes

Disassembly:
sub esp, 0x750
push ebx
push esi
push edi
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x21c]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x764]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x21c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x21c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0xc], 0xffffffff
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4321e0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x61c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x401335
lea edx, [esp + 0x21c]
push edx
push 0x4321c8
push 0x434604
call fcn.0040d02f
add esp, 0xc
jmp 0x401438
push eax
call dword [sym.imp.kernel32.dll_FindClose]
lea eax, [esp + 0x118]
push 0x104
push eax
push 0x4321bc
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x401377
push eax
push 0x4320d8
push 0x4321a0
push eax
call dword [sym.imp.user32.dll_MessageBoxA]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x750
ret
lea ecx, [esp + 0x118]
push 0x4321e0
push ecx
lea edx, [esp + 0x1c]
push 0x432188
push edx
call fcn.0040d02f
mov esi, dword [sym.imp.kernel32.dll_CopyFileA]
add esp, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0x21c]
push 0
push eax
push ecx
call esi
test eax, eax
je 0x401417
lea eax, [esp + 0xc]
push eax
push 0x43217c
call fcn.004011a0
add esp, 8
test eax, eax
je 0x4013e3
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x4013d7
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x750
ret
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push 0x432104
push edx
push 0x43217c
call fcn.00401230
add esp, 0x10
test eax, eax
jne 0x4013d7
push eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x220]
push eax
push ecx
call esi
test eax, eax
jne 0x401459
lea edx, [esp + 0x14]
push 0x4321e0
push edx
push 0x43217c
push 0x432134
push 0x434604
call fcn.0040d02f
add esp, 0x14
push 0
push 0x4320d8
push 0x434604
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x750
ret
lea eax, [esp + 0x14]
push 0x80
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push 0x432104
push edx
push 0x43217c
call fcn.00401230
add esp, 0x10
test eax, eax
jne 0x4013d7
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push 0x432104
push ecx
push 0x43217c
call fcn.00401230
add esp, 0x10
test eax, eax
jne 0x4013d7
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x750
ret
Function at 0x40244b
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x426ebb
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push esi
mov esi, ecx
cmp dword [esi + 0x178], 0xfa2
je 0x402537
push 0xfa5
lea ecx, [esi + 0x218]
mov dword [esi + 0x178], 0xfa5
call fcn.0041fa88
push 0
mov ecx, esi
call fcn.0041edd0
mov eax, dword [esi + 0x220]
lea ecx, [esp + 8]
push eax
push 0x432334
push 0x43232c
push ecx
call fcn.0040d02f
add esp, 0x10
lea edx, [esp + 8]
push 0
push 0
push edx
push 0x43231c
push 0
push 0
call dword [sym.imp.shell32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x4024cc
push 0
push 0
push 0x432300
mov ecx, esi
call fcn.0041e674
push 0x61a8
call dword [sym.imp.kernel32.dll_Sleep]
mov ecx, esi
call fcn.00402660
cmp dword [esi + 0x178], 0xfa1
jne 0x402530
mov eax, dword [0x432858]
mov dword [esp + 4], eax
push 0xfa9
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0
call fcn.0041fa88
mov ecx, dword [esp + 4]
push 0
push 0
push ecx
mov ecx, esi
call fcn.0041e674
lea ecx, [esp + 4]
mov dword [esp + 0x218], 0xffffffff
call fcn.0041c8a7
mov ecx, esi
call fcn.00404ae0
mov ecx, dword [esp + 0x210]
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret

Function at 0x402590
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x54
test eax, eax
push esi
je 0x40263a
mov esi, dword [esp + 0x60]
test esi, esi
je 0x40263a
mov edx, dword [ecx + 0x16c]
cmp edx, 0xffffffff
je 0x402648
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], 0x44
mov dword [esp + 8], eax
rep stosd dword es:[edi], eax
mov word [esp + 0x48], ax
mov dword [esp + 0x54], edx
mov dword [esp + 0xc], eax
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
mov dword [esp + 0x10], eax
push ecx
push edx
push eax
push eax
push eax
push 1
push eax
push eax
push esi
push eax
mov dword [esp + 0x6c], 0x101
mov dword [esp + 0x3c], eax
call dword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x40261d
mov eax, dword [esp + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov ecx, dword [esp + 4]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
xor eax, eax
pop esi
add esp, 0x54
ret 8
push 0
push 0
push 0x432344
call fcn.0041e674
or eax, 0xffffffff
pop esi
add esp, 0x54
ret 8
Function at 0x402660
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x426ef1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x18]
call fcn.0041fc1b
xor ebx, ebx
push 0x434ac8
lea ecx, [esp + 0x14]
mov dword [esp + 0x240], ebx
call fcn.0041c915
lea ebp, [esi + 0x220]
push 0x434ac8
mov ecx, ebp
mov byte [esp + 0x240], 1
call fcn.0041ca30
push 0x432388
lea eax, [esp + 0x30]
push 0x432384
push eax
call fcn.0040d02f
add esp, 0xc
lea ecx, [esp + 0x2c]
lea edi, [esi + 0x64]
push ecx
push edi
mov ecx, esi
call fcn.00402590
push 0x434ac8
lea ecx, [esp + 0x18]
call fcn.0041c915
push ebx
push 0x4040
push edi
lea ecx, [esp + 0x24]
mov byte [esp + 0x248], 2
call fcn.0041fc90
test eax, eax
push ebx
push ebx
jne 0x402757
push 0x43226c
mov ecx, esi
call fcn.0041e674
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], 1
call fcn.0041c8a7
lea ecx, [esp + 0x10]
mov byte [esp + 0x23c], bl
call fcn.0041c8a7
lea ecx, [esp + 0x18]
mov dword [esp + 0x23c], 0xffffffff
call fcn.0041fc4d
or eax, 0xffffffff
jmp 0x402905
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x20]
call dword [edx + 0x28]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
call fcn.0041fe73
test eax, eax
je 0x402845
lea ecx, [esp + 0x10]
call fcn.0041a8b4
lea ecx, [esp + 0x10]
call fcn.0041a868
push 0x432378
lea ecx, [esp + 0x14]
call fcn.0041a514
cmp eax, 0xffffffff
je 0x4027e0
push eax
push 0
lea ecx, [esp + 0x18]
call fcn.0041a422
push 0x432374
lea ecx, [esp + 0x14]
call fcn.0041a514
cmp eax, 0xffffffff
je 0x40282f
inc eax
lea ecx, [esp + 0x10]
push eax
push 0
call fcn.0041a422
lea ecx, [esp + 0x10]
call fcn.0041a8b4
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.0041c9e0
jmp 0x40282f
push 0x432360
lea ecx, [esp + 0x14]
call fcn.0041a514
cmp eax, 0xffffffff
je 0x40282f
push 0x432374
lea ecx, [esp + 0x14]
call fcn.0041a514
cmp eax, 0xffffffff
je 0x40282f
inc eax
lea ecx, [esp + 0x10]
push eax
push 0
call fcn.0041a422
lea ecx, [esp + 0x10]
call fcn.0041a8b4
mov edx, dword [esp + 0x10]
push edx
call fcn.0040d5a1
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402845
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
call fcn.0041fe73
test eax, eax
jne 0x402778
lea ecx, [esp + 0x18]
call fcn.0041ffc0
mov ecx, dword [esi + 0x16c]
push 0
push 0
push 0
push ecx
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov edx, dword [esi + 0x16c]
push edx
call dword [sym.imp.kernel32.dll_SetEndOfFile]
mov eax, dword [ebp]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x402895
push 0xfa6
mov ecx, ebp
call fcn.0041fa88
mov dword [esi + 0x178], 0xfa2
push 0xfa2
jmp 0x4028b9
test ebx, ebx
jle 0x4028aa
mov dword [esi + 0x178], 0xfa1
push 0xfa1
jmp 0x4028b9
mov dword [esi + 0x178], 0xfa4
push 0xfa4
lea ecx, [esi + 0x218]
call fcn.0041fa88
push 0
mov ecx, esi
call fcn.0041edd0
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], 1
call fcn.0041c8a7
lea ecx, [esp + 0x10]
mov byte [esp + 0x23c], 0
call fcn.0041c8a7
lea ecx, [esp + 0x18]
mov dword [esp + 0x23c], 0xffffffff
call fcn.0041fc4d
xor eax, eax
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret