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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1007e6b8
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 0x10031f69
inc eax
mov dword [esi + 0x10], eax
jmp 0x1003207c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x10031f7d
mov eax, 0xffffffc7
jmp 0x1003207e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x10031f8e
cmp dword [esi + 8], eax
jne 0x10031f7d
cmp dword [esi + 8], eax
jne 0x10031fa7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x10031fa7
mov eax, 0xffffffc7
jmp 0x1003207e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x10031fbb
push eax
mov ecx, ebx
call fcn.10031760
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.10006d30
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x10031fec
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.10006d50
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.10030ed0
test eax, eax
mov dword [esp + 0x38], eax
je 0x1003201f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x10084510
call fcn.10006f30
mov eax, dword [esp + 0x38]
jmp 0x1003207e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.10031d90
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x10032063
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.10031db0
mov esi, eax
test esi, esi
jne 0x10032093
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.10031d90
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x10032035
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x10084510
call fcn.10006f30
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], 0x10084510
call fcn.10006f30
mov eax, esi
jmp 0x1003207e

Function at 0x10036a30
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x10036a90
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x10036a90
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x10036a90
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x10036a90
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 0x10036ad0
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 0x10042600
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1007efa8
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.1007802c
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.10041f60
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.10077f5a
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.1007483a
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.1007483a
push 1
push 0
push 0
mov ecx, esi
call fcn.100747e2
push 1
push 0
push 1
mov ecx, esi
call fcn.100747e2
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.1007809e
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x10042780
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1007efc8
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.1007802c
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.10041f60
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.10077f5a
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 0x10042844
cmp dword [esp + 0x40], 1
jne 0x10042842
cmp ecx, eax
jge 0x10042844
mov eax, ecx
cmp eax, 0xc8
jge 0x10042850
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.10042600
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.1007809e
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x10043040
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1007f073
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.10072c6d
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_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.100782d4
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.100797f0
test eax, eax
je 0x1004315c
mov ecx, dword [esp + 0x3c]
call fcn.10078301
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 0x10043120
push edi
mov ecx, esi
call fcn.10075957
mov ecx, esi
call fcn.10043300
cmp dword [esp + 0x38], 1
jne 0x10043155
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.10075a92
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 0x10045340
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x10045373
push esi
call fcn.10053700
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x1004536c
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 0x100453f9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x100453e2
mov eax, dword [esi + 8]
test eax, eax
je 0x10045397
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 0x100453de
cmp eax, 2
je 0x100453e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1004538a
cmp eax, 3
je 0x100453bd
cmp eax, 1
jne 0x1004538a
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 0x1004538a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x1004538a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.10045420
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x10045408
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.10045420
add esp, 4
pop esi
ret

Function at 0x10045ca0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x10045cc1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x10045cc1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x10045cc1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10046110
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x1004611b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x1004621e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x100861d0]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x100861d0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x100861d0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x100861d0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x100861d0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x100861d0]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x100861d0]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x100861d0]
xor eax, edx
inc ecx
dec edi
jne 0x10046136
pop edi
test esi, esi
je 0x10046240
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x100861d0]
xor eax, edx
inc ecx
dec esi
jne 0x10046222
pop esi
pop ebx
not eax
ret
Function at 0x10073a48
Capabilities:
Get graphical window text

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

Function at 0x10075142
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 0x10075184
call fcn.1007aad5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x10075184
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x1007517b
xor eax, eax
jmp 0x1007518c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.10075192
pop edi
pop esi
pop ebx
ret 4
Function at 0x401000
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x30
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x401020
xor eax, eax
add esp, 0x30
ret
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x40101a
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push edi
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x2c]
push edx
push 0x10
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
push 0
push ecx
mov dword [esp + 0x30], 1
mov dword [esp + 0x3c], 2
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x40108c
pop edi
xor eax, eax
pop esi
add esp, 0x30
ret
mov al, byte [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x44]
push ebx
test al, al
mov eax, dword [esp + 0x4c]
push eax
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x48]
push ecx
push edx
je 0x4010b4
call dword [sym.imp.KERNEL32.dll_OpenThread]
jmp 0x4010ba
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0x10
mov ebx, eax
lea eax, [esp + 0x28]
push eax
push 0
push ecx
call esi
call edi
neg eax
sbb eax, eax
not eax
and eax, ebx
pop ebx
pop edi
pop esi
add esp, 0x30
ret
Function at 0x401420
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
push 0x100
call fcn.004030c5
mov ebx, dword [ebp + 8]
add esp, 4
mov esi, eax
mov edi, 0x40e05c
mov dword [esp + 0xc], 0xb
lea esp, [esp]
fld dword [edi - 4]
sub esp, 8
fstp qword [esp]
push str._0.3f
push esi
call fcn.0040306d
push edi
call fcn.00401330
add esp, 0x14
push 0x410678
push 0xff
push esi
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
call fcn.00401330
push esi
call fcn.00403160
fstp qword [esp]
push 0x40b2ac
push esi
call fcn.0040306d
push esi
call fcn.00403160
fst dword [edi - 4]
mov ecx, dword [0x40fd38]
add esp, 0x14
test ecx, ecx
je 0x401547
mov eax, dword [edi - 8]
test eax, eax
jne 0x4014e7
fcomp dword [0x40c2b4]
fnstsw ax
test ah, 0x41
jne 0x4014d8
mov eax, dword [edi - 0xc]
push 1
push eax
push ecx
call dword [sym.imp.USER32.dll_CheckDlgButton]
jmp 0x401549
mov edx, dword [edi - 0xc]
push 0
push edx
push ecx
call dword [sym.imp.USER32.dll_CheckDlgButton]
jmp 0x401549
cmp eax, 1
fstp st(0)
jne 0x401517
push esi
call fcn.0040315b
push eax
push 0x40b2b0
push esi
call fcn.0040306d
mov eax, dword [edi - 0xc]
mov ecx, dword [0x40fd38]
add esp, 0x10
push esi
push eax
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
jmp 0x401549
cmp eax, 2
jne 0x401549
push esi
call fcn.00403160
push ecx
fstp qword [esp]
push 0x40b2ac
push esi
call fcn.0040306d
mov edx, dword [edi - 0xc]
mov eax, dword [0x40fd38]
add esp, 0x10
push esi
push edx
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
jmp 0x401549
fstp st(0)
mov eax, dword [esp + 0xc]
add edi, 0x124
dec eax
mov dword [esp + 0xc], eax
jne 0x401450
push esi
call fcn.00403068
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402480
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x12c
mov eax, dword [0x40ecdc]
push esi
mov dword [esp + 0x12c], eax
mov eax, dword [esp + 0x134]
push eax
push 0
push 0x418
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40253f
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
push 0x1c
mov dword [esp + 0x18], ecx
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x20], ecx
push 0x1400000
mov dword [esp + 0x28], ecx
push esi
mov dword [esp + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
lea eax, [esp + 0x24]
push eax
push 4
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40250e
mov eax, dword [esp + 4]
push 0x104
lea edx, [esp + 0x2c]
push edx
push eax
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], 0x1000000
jne 0x40253f
cmp dword [esp + 0xc], 0x1400000
jne 0x40253f
mov al, 1
pop esi
mov ecx, dword [esp + 0x128]
call fcn.00403003
add esp, 0x12c
ret
mov ecx, dword [esp + 0x12c]
xor al, al
pop esi
call fcn.00403003
add esp, 0x12c
ret
Function at 0x402560
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1004
call fcn.00403360
lea eax, [esp]
push eax
push 0x1000
lea ecx, [esp + 0xc]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x402588
add esp, 0x1004
ret
push ebx
push esi
mov esi, dword [esp + 8]
push edi
shr esi, 2
xor ebx, ebx
xor edi, edi
test esi, esi
jbe 0x4025c6
lea ebx, [ebx]
mov edx, dword [esp + edi*4 + 0x10]
push edx
call fcn.00402480
add esp, 4
test al, al
jne 0x4025c2
inc edi
cmp edi, esi
jb 0x4025a0
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x1004
ret
mov ebx, dword [esp + edi*4 + 0x10]
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x1004
ret

Function at 0x4026c0
Capabilities:
Hide graphical window

Disassembly:
call fcn.00402560
push eax
push 1
push 0x1f0fff
push 0
mov dword [0x40fd40], eax
call section..text
add esp, 0x10
test eax, eax
mov dword [0x40fd30], eax
jne 0x4026fe
mov eax, dword [0x40fd34]
push str.Handle_error
push 0x3ed
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
xor al, al
ret
call fcn.00402690
push 5
push eax
mov dword [0x40fd3c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x40fd3c]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [0x40fd3c]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
push 0
push 0
push 0
push 0x401b30
push 0
push 0
call fcn.004032d3
mov dword [0x40fd24], eax
add esp, 0x18
mov al, 1
ret
Function at 0x402be0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x840
mov eax, dword [0x40ecdc]
push esi
push edi
mov dword [esp + 0x844], eax
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x208
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push 0x410678
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, 0x410678
lea edx, [eax + 1]
jmp 0x402c30
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402c30
sub eax, edx
mov edi, 0x410678
mov byte [eax + 0x410675], cl
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402c45
mov ecx, dword [0x40b3fc]
mov dword [edi], ecx
xor eax, eax
jmp 0x402c60
mov cl, byte [eax + 0x410678]
mov byte [eax + 0x40fd48], cl
inc eax
test cl, cl
jne 0x402c60
push 0x40fd48
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0x40fd48
push str._s_readme.txt
push 0x40fe50
call fcn.0040306d
add esp, 0xc
xor eax, eax
mov cl, byte [eax + 0x40fe50]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x402c95
push 0
lea edx, [esp + 0x14]
push edx
push 0x40fe50
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x20], 0x824
call dword [sym.imp.SHLWAPI.dll_UrlCreateFromPathA]
lea ecx, [esp + 0xc]
push ecx
push str.http_shellopencommand
push 0x80000000
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 0x40fb68
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x40fb68
call dword [sym.imp.SHLWAPI.dll_PathRemoveArgsA]
mov esi, 0x40e074
mov edi, 0xb
jmp 0x402d20
lea edx, [esi - 0x18]
push edx
call fcn.00401330
push esi
call fcn.00401330
add esp, 8
add esi, 0x124
dec edi
jne 0x402d20
mov eax, dword [ebp + 8]
push 0
push 0x402940
push 0
push 0x67
push eax
mov dword [0x40fcf4], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov ecx, dword [esp + 0x844]
mov eax, 1
call fcn.00403003
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4032d3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x4032f0
call fcn.0040525a
mov dword [eax], 0x16
xor eax, eax
jmp 0x40335a
push esi
push 0x8c
push 1
call fcn.004052df
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x403345
push esi
call fcn.00404a6f
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x403323
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x40323e
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x403359
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00403d3b
test ebx, ebx
pop ecx
je 0x403357
push ebx
call fcn.0040526c
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4033e6
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40b438
call fcn.0040376c
mov edi, 0x94
mov eax, edi
call fcn.00403360
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 [0x4110c8], ecx
mov eax, dword [esi + 4]
mov dword [0x4110d4], eax
mov edx, dword [esi + 8]
mov dword [0x4110d8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4110cc], esi
cmp ecx, 2
je 0x403446
or esi, 0x8000
mov dword [0x4110cc], esi
shl eax, 8
add eax, edx
mov dword [0x4110d0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x403481
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403481
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x403499
cmp eax, 0x20b
je 0x403486
mov dword [ebp - 0x1c], esi
jmp 0x4034ad
cmp dword [ecx + 0x84], 0xe
jbe 0x403481
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4034a7
cmp dword [ecx + 0x74], 0xe
jbe 0x403481
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00405c3e
pop ecx
test eax, eax
jne 0x4034c1
push 0x1c
call fcn.004033c2
pop ecx
call fcn.00404c69
test eax, eax
jne 0x4034d2
push 0x10
call fcn.004033c2
pop ecx
call fcn.00405b9c
mov dword [ebp - 4], esi
call fcn.0040599e
test eax, eax
jge 0x4034eb
push 0x1b
call fcn.0040339d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4128f0], eax
call fcn.0040587c
mov dword [0x411098], eax
call fcn.004057da
test eax, eax
jge 0x403511
push 8
call fcn.0040339d
pop ecx
call fcn.004055a7
test eax, eax
jge 0x403522
push 9
call fcn.0040339d
pop ecx
push 1
call fcn.00404f89
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x403538
push eax
call fcn.0040339d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040554a
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x403559
movzx eax, word [ebp - 0x40]
jmp 0x40355c
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00402be0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40357a
push edi
call fcn.004050b6
call fcn.004050d8
jmp 0x4035ac
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004037a7
ret