joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52997c
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
push 0xc
call fcn.00538536
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
jmp 0x5299c4
mov dword [ebp - 0xc], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
push 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x5299f0
push 6
call fcn.00538548
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push 0x64
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x529a1a
push 6
call fcn.00538548
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x102
jne 0x529a78
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x529a4c
push 6
call fcn.00538548
add esp, 4
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x529a6e
push 6
call fcn.00538548
add esp, 4
push 0
call fcn.00538554
add esp, 4
jmp 0x529a88
mov ebx, dword [ebp - 8]
push ebx
call fcn.0053853c
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x529b38
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
jmp 0x529b68
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.005390b0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp + 8]
push dword [ebx]
call fcn.00515d35
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x529bb8
push ebx
call fcn.0053853c
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x529bff
push 0xa0000101
push 0
push 0x7ffc3f
push 1
mov ebx, 0x168
call fcn.00538b60
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
test ebx, ebx
je 0x529bf9
push ebx
call fcn.0053853c
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
push 1
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x529c2d
push 6
call fcn.00538548
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esp
push 0
push 0
push 0
push 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x529c66
push 6
call fcn.00538548
add esp, 4
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x90c
call fcn.005389e0
add esp, 0x10
mov dword [ebp - 0x10], eax
push 1
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00529d2c
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x529ca9
push ebx
call fcn.0053853c
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x529cbd
push ebx
call fcn.0053853c
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x529ce3
push 6
call fcn.00538548
add esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x529cff
push eax
mov ebx, eax
call fcn.00515bd5
inc eax
push eax
call fcn.00538536
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x529d14
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x529d25
push ebx
call fcn.0053853c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x52bd5e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
jmp 0x52bd87
mov dword [0x800494], 0
push dword [0x800498]
call fcn.00524be8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x52bdcb
push dword [0x800498]
call fcn.00524c5c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x52bdcb
mov eax, 0x7fe016
jmp 0x52bf43
mov dword [ebp - 0xc], esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x52be04
push 6
call fcn.00538548
add esp, 4
mov dword [0x800498], eax
mov dword [ebp - 0xc], esp
push 0x4bf
push 0xffffffff
push 0
push 0x800498
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x52be41
push 6
call fcn.00538548
add esp, 4
mov dword [0x800494], eax
push 0
mov ebx, 0x350
call fcn.0053ade0
add esp, 4
cmp dword [0x800494], 0
je 0x52be7c
cmp dword [0x800494], 0x102
je 0x52be7c
mov eax, 1
jmp 0x52be7e
xor eax, eax
test eax, eax
jne 0x52be09
mov dword [ebp - 0xc], esp
lea eax, [ebp - 4]
push eax
push dword [0x800498]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x52beab
push 6
call fcn.00538548
add esp, 4
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x90c
call fcn.005389e0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x52bede
push ebx
call fcn.0053853c
add esp, 4
pop eax
mov dword [ebp - 8], eax
push dword [0x800498]
call fcn.00524cba
mov dword [ebp - 0xc], esp
push dword [0x800498]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x52bf12
push 6
call fcn.00538548
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x52bf2e
push eax
mov ebx, eax
call fcn.00515bd5
inc eax
push eax
call fcn.00538536
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x52bf43
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x52bf54
push ebx
call fcn.0053853c
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x52c129
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
push 0
push 0xffffffff
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x52c15b
push 6
call fcn.00538548
add esp, 4
mov esp, ebp
pop ebp
ret 0xc

Function at 0x53aab0
Capabilities:
Query environment variable

Disassembly:
push ebp
push esi
push edi
push 0x104
call fcn.005387d0
mov ebp, dword [esp + 0x18]
add esp, 4
mov edi, eax
push 0x104
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, 0x104
jbe 0x53ab07
push ebx
push edi
call fcn.00538860
push esi
mov ebx, esi
call fcn.005387d0
add esp, 8
mov edi, eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
ja 0x53aade
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x53abe0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x53abfe
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x53abf3
pop esi
ret
Function at 0x53fbf0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + 0x800ab5]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x800a45]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x53fc03
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x53fc44
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x800aed]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x53fc76
mov bl, byte [esp + ecx + 0x4c]
jmp 0x53fc7a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x53fc6b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x53fc98
mov bl, byte [esp + ecx + 0x4c]
jmp 0x53fc9c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x53fc8d
xor ecx, ecx
mov eax, 0x800a55
xor ebx, ebx
mov bl, byte [ecx + 0x800afd]
cmp byte [esp + ebx + 0x14], 0
je 0x53fcc7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x800b15]
cmp byte [esp + ebx + 0x14], 0
je 0x53fcde
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, 0x800ab5
jl 0x53fcae
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x53fc37
lea edx, [esp + 0x84]
push edx
call fcn.0053fd20
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x557600
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x55764c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x55764c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x557636
push eax
call ebp
test ax, ax
jl 0x557644
inc esi
add edi, 4
cmp esi, 6
jb 0x557628
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.00557300
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x55a3e0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x55a440
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x55a440
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x55a440
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x55a440
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 0x55a480
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 0x565db0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x565dbb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x565ebe
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 + 0x712748]
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 + 0x712748]
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 + 0x712748]
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 + 0x712748]
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 + 0x712748]
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 + 0x712748]
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 + 0x712748]
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 + 0x712748]
xor eax, edx
inc ecx
dec edi
jne 0x565dd6
pop edi
test esi, esi
je 0x565ee0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x712748]
xor eax, edx
inc ecx
dec esi
jne 0x565ec2
pop esi
pop ebx
not eax
ret
Function at 0x575d28
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5d25d4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.005c28c2
lea edi, [esi + 0x48]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x30]
mov dword [edi], fcn.005077f0
call fcn.00575260
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 1
call fcn.00575260
lea ecx, [edi + 0x64]
mov byte [esp + 0x18], 2
call fcn.00575260
lea ecx, [edi + 0x78]
mov byte [esp + 0x18], 3
call fcn.00575260
mov dword [edi], 0x7133d0
lea ecx, [esi + 0xd4]
mov byte [esp + 0x18], 4
call fcn.00576590
mov ecx, dword [esp + 0x10]
mov dword [esi], method.CWnd.virtual_0
mov dword [esi + 0x34c], 1
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x575e60
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5d2644
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], method.CWnd.virtual_0
lea ecx, [esi + 0xd4]
mov dword [esp + 0x18], 1
call fcn.00576a10
lea edi, [esi + 0x48]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x78]
mov byte [esp + 0x18], 4
mov dword [ecx], 0x7133e0
call fcn.00575460
lea ecx, [edi + 0x64]
mov byte [esp + 0x18], 3
mov dword [ecx], 0x7133e0
call fcn.00575460
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 2
mov dword [ecx], 0x7133e0
call fcn.00575460
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 0
mov dword [ecx], 0x7133e0
call fcn.00575460
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.005c337c
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x577ff0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.0057e470
mov ebp, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebp
push 0
push 0
push eax
push 0x81d0a0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
ja 0x5780e9
lea ecx, [esp + 0x10]
push ecx
push str..htm
push closesocket
mov ecx, esi
call fcn.00578100
test eax, eax
jne 0x5780e9
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push closesocket
mov ecx, esi
call fcn.00578100
test eax, eax
jne 0x5780e9
lea edx, [esp + 0x10]
push 0x81d07c
push edx
call fcn.0059ea30
mov esi, eax
add esp, 8
test esi, esi
jne 0x5780ba
lea eax, [esp + 0x10]
push 0x81d078
push eax
call fcn.0059ea30
mov esi, eax
add esp, 8
test esi, esi
jne 0x5780ba
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x5780bd
mov byte [esi], 0
push 0x81c840
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x578100
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x578162
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x57e3b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5d2d88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x57e460
mov eax, dword [0x8242b8]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.005c1691
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.005c16e0
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.005c163d
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x57e447
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x57e447
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.005c12ad
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x581560
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d3210
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x581707
mov ecx, dword [0x8242b8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x58165c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.00580280
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.005c139a
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.005c12ad
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x81c840
call fcn.005c131b
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.00580640
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.005c139a
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.005c12ad
lea ecx, [esp + 0xc]
call fcn.005c1775
mov ecx, dword [esp + 0xc]
push 0x81d27c
push ecx
call fcn.0059d8d4
add esp, 8
test eax, eax
je 0x581684
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x5815bd
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.005c12ad
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.005c12ad
jmp 0x58170b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00581300
test eax, eax
push 0
je 0x5816ef
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.0057f9a0
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x5816d5
cmp eax, 0x64
jg 0x5816c3
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x581660
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x581660
cmp eax, 0x64
jge 0x58165c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x581660
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.0057f9a0
mov esi, eax
jmp 0x581660
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x581715
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x5b6e40
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5d4360
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.005abdaa
mov eax, dword [0x7df3a8]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.005abcdc
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.005b7930
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x5b6ee7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x5b6ede
cmp al, 0xff
je 0x5b6ede
dec al
mov byte [ecx], al
jmp 0x5b6ee7
push ecx
call fcn.005c1017
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x5b6f18
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x5b6f0f
cmp al, 0xff
je 0x5b6f0f
dec al
mov byte [ecx], al
jmp 0x5b6f18
push ecx
call fcn.005c1017
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x5c36b8
Capabilities:
Get graphical window text

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

Function at 0x5c4daa
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 0x5c4dec
call fcn.005cac58
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5c4dec
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5c4de3
xor eax, eax
jmp 0x5c4df4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005c4dfa
pop edi
pop esi
pop ebx
ret 4

Function at 0x5cb188
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 0x5cb1b6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5cb1d4
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005cb0ee
jmp 0x5cb1d4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5cb1d4
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005cb0ee
test edi, edi
mov eax, edi
jne 0x5cb1be
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x5d7640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x884020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x5d76d8
push reloc.OLEAUT32.dll_SysReAllocString
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x5d76b8
xor eax, eax
push ebp
push 0x5d76b1
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 0x5d76f4
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 0x5d76b8
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
mov ax, word [0x884020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x884020], ax
mov esp, ebp
pop ebp
ret
Function at 0x5d8404
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x895044], 0
je 0x5d8465
cmp word [0x895218], 0xd7b2
jne 0x5d842d
cmp dword [0x895220], 0
jbe 0x5d842d
mov eax, 0x895214
call dword [0x895230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x884090
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 0x5d848c
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
pop edx
ret
cmp byte [0x884030], 0
jne 0x5d8481
push 0
push 0x884088
push 0x884090
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret