joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430de0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4673c8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x430e19
inc eax
mov dword [esi + 0x10], eax
jmp 0x430f2c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x430e2d
mov eax, 0xffffffc7
jmp 0x430f2e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x430e3e
cmp dword [esi + 8], eax
jne 0x430e2d
cmp dword [esi + 8], eax
jne 0x430e57
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x430e57
mov eax, 0xffffffc7
jmp 0x430f2e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x430e6b
push eax
mov ecx, ebx
call fcn.00430610
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00402000
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x430e9c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00402020
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042fd80
test eax, eax
mov dword [esp + 0x38], eax
je 0x430ecf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x5326e8
call fcn.00402200
mov eax, dword [esp + 0x38]
jmp 0x430f2e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00430c40
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x430f13
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00430c60
mov esi, eax
test esi, esi
jne 0x430f43
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00430c40
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x430ee5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x5326e8
call fcn.00402200
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x5326e8
call fcn.00402200
mov eax, esi
jmp 0x430f2e

Function at 0x434060
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4340c0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4340c0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4340c0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4340c0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x434100
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43a230
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4679f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00460933
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00439bd0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00460861
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0045d125
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0045d125
push 1
push 0
push 0
mov ecx, esi
call fcn.0045d0cd
push 1
push 0
push 1
mov ecx, esi
call fcn.0045d0cd
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004609a5
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43a3b0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x467a18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00460933
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00439bd0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00460861
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43a474
cmp dword [esp + 0x40], 1
jne 0x43a472
cmp ecx, eax
jge 0x43a474
mov eax, ecx
cmp eax, 0xc8
jge 0x43a480
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043a230
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004609a5
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43abf0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x467a83
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.0045b543
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.00460bdb
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004620f7
test eax, eax
je 0x43ad0c
mov ecx, dword [esp + 0x3c]
call fcn.00460c08
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 0x43acd0
push edi
mov ecx, esi
call fcn.0045e26c
mov ecx, esi
call fcn.0043ae70
cmp dword [esp + 0x38], 1
jne 0x43ad05
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.0045e3a7
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 0x43d730
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43d763
push esi
call fcn.00440830
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43d75c
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 0x43d7e9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43d7d2
mov eax, dword [esi + 8]
test eax, eax
je 0x43d787
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 0x43d7ce
cmp eax, 2
je 0x43d7d2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43d77a
cmp eax, 3
je 0x43d7ad
cmp eax, 1
jne 0x43d77a
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 0x43d77a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43d77a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043d810
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43d7f8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043d810
add esp, 4
pop esi
ret

Function at 0x45c338
Capabilities:
Get graphical window text

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

Function at 0x45da29
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 0x45da6b
call fcn.004634e7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45da6b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45da62
xor eax, eax
jmp 0x45da73
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045da79
pop edi
pop esi
pop ebx
ret 4

Function at 0x463a17
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 0x463a45
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x463a63
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046397d
jmp 0x463a63
mov eax, dword [esi + 0x14]
test eax, eax
je 0x463a63
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046397d
test edi, edi
mov eax, edi
jne 0x463a4d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x5f2a71
Capabilities:
Parse pe header

Disassembly:
jne 0x5f279b
jmp 0x5f2ba4
sub esp, 0xc
jmp 0x5f2baf
mov dword [0x5f224c], 1
jmp 0x5f2565
push esi
jmp 0x5f2ae5
shl eax, 0x10
jmp 0x5f2969
jmp 0x5f261a
add eax, dword [eax + 0x3c]
jmp 0x5f2b97
jne 0x5f2b1c
jmp 0x5f2459
sub eax, 0x10000
jmp 0x5f2ca7
push ebx
jmp 0x5f28dc
shr eax, 0x10
jmp 0x5f2913
push ebp
jmp 0x5f2479
shl eax, 0x10
jmp 0x5f260f
xchg dword [esp], esi
lea esi, [esi - 0x4e1]
xchg dword [esp], esi
jmp 0x5f2448
ret
call dword [0x5f2250]
jmp 0x5f261a
add eax, 0x10000
jmp 0x5f279b
push eax
jmp 0x5f2987
call 0x5f2a71
std
mov dl, 0x87
or al, 0x24
lea ecx, [ecx + 0x1e3]
xchg dword [esp], ecx
jmp 0x5f2c8d
push edi
jmp 0x5f2a6a
mov eax, dword [esp + 0x10]
jmp 0x5f2a46
cmp dword [eax], 0x4550
jmp 0x5f242a
shr eax, 0x10
jmp 0x5f24c6
cmp dword [0x5f224c], 0
jmp 0x5f25f8
jne 0x5f279b
jmp 0x5f25ba
pop eax
jmp 0x5f2a22
call 0x5f2c94
pop edx
xacquire xchg dword [esp], edx
lea edx, [edx - 0x27]
xchg dword [esp], edx
jmp 0x5f2c6b
cmp word [eax], 0x5a4d
jmp 0x5f2bef

Function at 0x5f2c94
Capabilities:
Parse pe header

Disassembly:
jne 0x5f279b
jmp 0x5f2ba4
sub esp, 0xc
jmp 0x5f2baf
mov dword [0x5f224c], 1
jmp 0x5f2565
push esi
jmp 0x5f2ae5
shl eax, 0x10
jmp 0x5f2969
jmp 0x5f261a
add eax, dword [eax + 0x3c]
jmp 0x5f2b97
jne 0x5f2b1c
jmp 0x5f2459
sub eax, 0x10000
jmp 0x5f2ca7
push ebx
jmp 0x5f28dc
shr eax, 0x10
jmp 0x5f2913
push ebp
jmp 0x5f2479
shl eax, 0x10
jmp 0x5f260f
xchg dword [esp], esi
lea esi, [esi - 0x4e1]
xchg dword [esp], esi
jmp 0x5f2448
ret
call dword [0x5f2250]
jmp 0x5f261a
add eax, 0x10000
jmp 0x5f279b
push eax
jmp 0x5f2987
call 0x5f2a71
std
mov dl, 0x87
or al, 0x24
lea ecx, [ecx + 0x1e3]
xchg dword [esp], ecx
jmp 0x5f2c8d
push edi
jmp 0x5f2a6a
mov eax, dword [esp + 0x10]
jmp 0x5f2a46
cmp dword [eax], 0x4550
jmp 0x5f242a
shr eax, 0x10
jmp 0x5f24c6
cmp dword [0x5f224c], 0
jmp 0x5f25f8
jne 0x5f279b
jmp 0x5f25ba
pop eax
jmp 0x5f2a22
call 0x5f2c94
pop edx
xacquire xchg dword [esp], edx
lea edx, [edx - 0x27]
xchg dword [esp], edx
jmp 0x5f2c6b
cmp word [eax], 0x5a4d
jmp 0x5f2bef
Function at 0x401000
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
push esi
call fcn.00401140
pop ecx
test eax, eax
je 0x40101b
call fcn.0040124a
jmp 0x401043
push esi
call fcn.004013cf
pop ecx
test eax, eax
je 0x401043
call fcn.004011be
mov esi, eax
test esi, esi
je 0x401043
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.004012e9
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401140
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0x404084
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
je 0x4011ba
push esi
push edi
add eax, 3
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
push eax
lea eax, [ebp - 0x20]
push 0x404088
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, 0x8e8
push edi
call fcn.00401e01
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4011b8
push edi
push esi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test edi, edi
je 0x4011af
push section.bss
push 0x454
push esi
call fcn.0040104c
add esp, 0xc
mov edi, eax
push esi
call fcn.00401e3d
pop ecx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40120d
Capabilities:
Encode data using xor

Disassembly:
push esi
mov eax, 0x38347327
xor esi, esi
push eax
call fcn.00401ff3
xor byte [esi + section..data], al
inc esi
pop ecx
cmp esi, 0x5163
jb 0x401215
pop esi
ret

Function at 0x40124a
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
lea eax, [ebp - 0x30]
push eax
call fcn.0040122d
mov dword [esp], 0x4010b7
push dword [0x403040]
call fcn.00401d08
pop ecx
pop ecx
test eax, eax
je 0x4012e5
push ebx
push edi
push 0x104
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x44
xor ebx, ebx
lea eax, [ebp - 0x74]
push ebx
push eax
call sub.MSVCRT.dll_memset
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x74], 0x44
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x178]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4012e9
Capabilities:
Accept command line arguments
Create process on windows
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push ebx
push esi
push edi
rdtsc
push eax
lea eax, [ebp - 0x10]
push 0x404088
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x168]
push str.__q
push eax
call esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x168]
push eax
call esi
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x64]
push ebx
push eax
call sub.MSVCRT.dll_memset
xor eax, eax
mov dword [ebp - 0x64], esi
lea edi, [ebp - 0x20]
add esp, 0xc
stosd dword es:[edi], eax
push dword [ebp + 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x168]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401706
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push 0x24
push eax
call fcn.00401e58
pop ecx
pop ecx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
xor eax, eax
cmp word [ebp - 0x24], 9
sete al
mov esp, ebp
pop ebp
ret
Function at 0x401a0f
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
cmp dword [esp + 0x28], 0
push ebx
push ebp
push edi
jne 0x401a23
xor eax, eax
jmp 0x401b4a
push esi
mov esi, dword [esp + 0x34]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x401b47
mov ecx, dword [esi + 0x3c]
mov dword [esp + 0x20], esi
add ecx, esi
je 0x401b47
cmp ecx, esi
jb 0x401b47
lea eax, [esi + 0x1000]
cmp ecx, eax
jae 0x401b47
cmp dword [ecx], 0x4550
jne 0x401b47
movzx eax, word [ecx + 0x18]
mov edi, 0x10b
mov edx, dword [ecx + 0x50]
cmp ax, di
jne 0x401a7d
mov ebx, dword [ecx + 0x78]
jmp 0x401a83
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x401b47
cmp ax, di
jne 0x401a95
mov eax, dword [ecx + 0x7c]
jmp 0x401a9b
mov eax, dword [ecx + 0x8c]
lea edi, [ebx + esi]
mov dword [esp + 0x10], eax
cmp edi, esi
jb 0x401b47
lea eax, [edx + esi]
cmp edi, eax
jae 0x401b47
mov ebp, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
add ebp, esi
mov edx, dword [edi + 0x24]
add ecx, esi
add edx, esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
cmp ebp, esi
jb 0x401b47
cmp ebp, eax
jae 0x401b47
cmp ecx, esi
jb 0x401b47
cmp ecx, eax
jae 0x401b47
cmp edx, esi
jb 0x401b47
cmp edx, eax
jae 0x401b47
xor ebp, ebp
cmp dword [edi + 0x18], ebp
jbe 0x401b42
mov eax, dword [ecx + ebp*4]
mov ecx, dword [esp + 0x14]
add eax, esi
mov dword [esp + 0x28], eax
movzx eax, word [edx + ebp*2]
mov ecx, dword [ecx + eax*4]
mov dword [esp + 0x24], ecx
cmp ecx, ebx
jb 0x401b1e
mov eax, dword [esp + 0x10]
add eax, ebx
cmp ecx, eax
jae 0x401b1e
lea eax, [ecx + esi]
mov dword [esp + 0x2c], eax
jmp 0x401b23
and dword [esp + 0x2c], 0
push dword [esp + 0x3c]
lea eax, [esp + 0x24]
push eax
call dword [esp + 0x40]
test eax, eax
je 0x401b42
mov ecx, dword [esp + 0x18]
inc ebp
mov edx, dword [esp + 0x1c]
cmp ebp, dword [edi + 0x18]
jb 0x401aef
xor eax, eax
inc eax
jmp 0x401b49
xor eax, eax
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x20
ret

Function at 0x401e90
Capabilities:
64-bit execution via heavens gate

Disassembly:
push 0x33
call 0x401e97
add dword [esp], 5
retf

Function at 0x401ee1
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov esi, 0x1000
push esi
call fcn.00401e01
mov dword [ebp - 8], eax
pop ecx
test eax, eax
jne 0x401f04
xor eax, eax
jmp 0x401fec
mov ecx, dword [ebp + 8]
and dword [ebp - 0xc], 0
cdq
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esp
and esp, 0xfffffff8
nop
nop
push 0x33
call 0x401f2d
add dword [esp], 5
retf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402aa8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404180
test esi, esi
jne 0x402ade
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404270
jmp 0x402afc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029bc
mov edi, eax
test esi, esi
je 0x402afc
cmp dword [ebx], 0
je 0x402afc
dec esi
jmp 0x402ae5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4031d8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4b0020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403270
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403250
xor eax, eax
push ebp
push 0x403249
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40328c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403250
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4b0020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4b0020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403f60
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b504c], 0
je 0x403fc1
cmp word [0x4b5220], 0xd7b2
jne 0x403f89
cmp dword [0x4b5228], 0
jbe 0x403f89
mov eax, 0x4b521c
call dword [0x4b5238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4b006c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403fe8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b0030], 0
jne 0x403fdd
push 0
push 0x4b0064
push 0x4b006c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404134
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402774
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4b504d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4040fc
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc