joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459554
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45958c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45956d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45957c
or bl, 4
test esi, 0x20000000
je 0x459587
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45fc50
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45fc62
add esp, 0xfffffff0
call fcn.00403988
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00424868
mov eax, dword [0x4acae8]
mov dword [eax + 4], ebx
mov dword [eax], 0x45fff4
mov eax, dword [0x4acb00]
mov dword [eax + 4], ebx
mov dword [eax], 0x460000
mov eax, ebx
call fcn.0046000c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x419c28]
call fcn.004035cc
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x419c28]
call fcn.004035cc
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x419c28]
call fcn.004035cc
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x419c28]
call fcn.004035cc
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x419c28]
call fcn.004035cc
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x45c424
push eax
push 0
push 0
mov eax, dword [0x4acd84]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x426380]
call fcn.00427b18
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x426380]
call fcn.00427b18
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x426380]
call fcn.00427b18
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0046045c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x460324
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x460324
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x460324
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45fd9f
call fcn.004039e0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x460108
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4602b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x460294
mov dl, 1
mov eax, dword [0x41a28c]
call fcn.004035cc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004043fc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x460283
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004509a4
test al, al
je 0x460276
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4602c4
lea eax, [ebp - 0x254]
call fcn.0040980c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x460276
xor eax, eax
push ebp
push 0x46026f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4602fc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x460258
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040466c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x460258
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040466c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460276
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x460179
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041e894
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4602ba
lea eax, [ebp - 0x260]
call fcn.004043fc
ret

Function at 0x460bfc
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4aec78]
cmp byte [eax + 0xa5], 0
jne 0x460c6d
cmp dword [0x4aec90], 0
jne 0x460c2e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x460bb8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4aec90], eax
cmp dword [0x4aec8c], 0
jne 0x460c49
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4aec8c], eax
cmp dword [0x4aec94], 0
jne 0x460c6d
push esp
push 0
push 0
push 0x460b5c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4aec94], eax
pop edx
ret
Function at 0x461300
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4aec78]
cmp dword [eax + 0x30], 0
je 0x4613aa
cmp dword [ebx + 0x94], 0
jne 0x4613a4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x461290
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4613a4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46136a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4613a4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041c470
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x461379
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x461f08
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x461f3d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004044ec
jmp 0x461f4a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404450
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x463104
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x463145
mov eax, esi
call fcn.0044bdd4
test al, al
je 0x463145
mov eax, dword [ebx + 0x84]
call fcn.0044bad0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x463145
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044bad0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x480ba4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x480e04
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x480c07
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0048066c
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d1e8
cmp al, 1
jne 0x480c07
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00480984
test al, al
je 0x480d93
cmp dword [ebp - 8], 0
jge 0x480c25
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0048066c
mov eax, dword [ebp - 0x210]
call fcn.004046bc
cmp ebx, eax
jge 0x480c6f
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0048066c
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4ad138]
and eax, 0xff
bt dword [edx], eax
jae 0x480c6f
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x480c83
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00480b80
cmp ebx, dword [ebp - 8]
je 0x480d85
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x480caf
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403804
and eax, 0x7f
movzx eax, word [eax*2 + 0x4ac254]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x480d72
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403804
and eax, 0x7f
movzx eax, word [eax*2 + 0x4ac254]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0044bad0
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403804
and eax, 0x7f
movzx eax, word [eax*2 + 0x4ac254]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0044bad0
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480d79
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x480de6
cmp dword [ebp - 8], 0
jge 0x480d9e
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0048066c
mov eax, dword [ebp - 0x218]
call fcn.004046bc
cmp eax, dword [ebp - 8]
jg 0x480dd8
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0048066c
mov eax, dword [ebp - 0x21c]
call fcn.004046bc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00480b80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480e0b
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404420
ret
Function at 0x4a2730
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
lea esi, [esp + 0xc]
lea edx, [esp + 4]
mov eax, esp
call fcn.004a256c
cmp dword [esp], 0
je 0x4a2752
cmp dword [esp + 4], 0
jne 0x4a2761
push 0x4a2838
call sub.kernel32.dll_OutputDebugStringA
jmp 0x4a282e
mov eax, dword [esp + 4]
mov eax, dword [eax]
mov dword [esi], eax
xor eax, eax
mov dword [esp + 0x10], eax
cmp dword [esi], 0
je 0x4a27ea
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov eax, dword [esp]
mov eax, dword [eax]
mov edx, dword [esi]
call fcn.004a26f4
mov ebx, eax
cmp ebx, 0x13a
jne 0x4a27d9
mov edi, dword [esi]
mov ecx, edi
add ecx, 0xffc
dec ecx
mov eax, dword [esp]
mov edx, edi
call fcn.004a2694
push 0x8000
push 0
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualFree_1
mov eax, dword [esp + 0x10]
mov dword [esi], eax
cmp dword [esp + 0x10], 0
jne 0x4a27cf
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [eax], edx
jmp 0x4a27d9
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 8]
mov dword [eax], edx
mov eax, dword [esi]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 8]
mov dword [esi], eax
cmp dword [esi], 0
jne 0x4a2774
mov eax, dword [esp + 4]
cmp dword [eax], 0
je 0x4a282e
cmp byte [0x4aedf5], 0
jne 0x4a282e
mov eax, fcn.0041ba44
call fcn.004a18fc
call fcn.004059dc
cmp eax, dword [0x4ae668]
jne 0x4a282e
mov byte [0x4aedf5], 1
mov ecx, 0x4aedf0
mov edx, 0x4a2870
mov eax, fcn.0041ba44
call fcn.004a1954
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x4a498c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
add esp, 0xffffffb8
lea eax, [esp + 0xc]
push eax
push 0x40
push pe_nt_image_headers32
mov ebx, fcn.00402cf4
push ebx
call sub.kernel32.dll_VirtualProtect
mov eax, ebx
cmp byte [eax], 0xe9
je 0x4a4a1e
cmp word [eax], 0x25ff
jne 0x4a49ca
mov byte [eax], 0xe9
mov eax, ebx
mov edx, dword [0x4aee44]
sub edx, eax
sub edx, 5
inc eax
mov dword [eax], edx
jmp 0x4a4a1e
lea edx, [esp + 0x10]
mov eax, dword [0x4aee44]
mov ecx, 0x38
call dword [0x4aee44]
mov eax, dword [0x4aee44]
sub eax, ebx
add dword [esp + 0x1e], eax
add dword [esp + 0x24], eax
add dword [esp + 0x2f], eax
add dword [esp + 0x3e], eax
add dword [esp + 0x43], eax
lea eax, [esp + 0x10]
mov dword [esp], eax
mov eax, fcn.00402cf4
mov dword [esp + 4], eax
xor eax, eax
mov edx, dword [esp]
mov dl, byte [edx + eax]
mov ecx, dword [esp + 4]
mov byte [ecx + eax], dl
inc eax
cmp eax, 0x38
jne 0x4a4a0b
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x10]
push eax
push pe_nt_image_headers32
push fcn.00402cf4
call sub.kernel32.dll_VirtualProtect
push 0x38
push fcn.00402cf4
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
add esp, 0x48
pop ebx
ret
Function at 0x4a4b30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
lea eax, [esp + 4]
push eax
push 0x40
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4a4b80
mov dword [esp], ebx
mov eax, dword [esp]
mov byte [eax], 0xe9
sub esi, ebx
sub esi, 5
mov eax, dword [esp]
mov dword [eax + 1], esi
push 5
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 8]
push eax
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x100014e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e7ab
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x10029054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x4d4], 0
jne 0x100016c5
call fcn.10002cb0
test eax, eax
je 0x10001640
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1000b8d0
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x10001555
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10003a20
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1000b8d0
mov edi, dword [ebp + 0xc]
add esp, 0x14
cmp dword [edi + 0x14], 8
jb 0x10001585
mov eax, dword [edi]
jmp 0x10001587
mov eax, edi
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.10003a20
add esp, 8
cmp dword [edi + 0x10], 0
jne 0x100015b0
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.100016f0
jmp 0x100016c5
xor eax, eax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
push 0x1001f47c
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], eax
call fcn.10001440
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.10001490
push 0x1001f480
lea ecx, [ebp - 0x438]
call fcn.10001490
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x438]
call fcn.10001490
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
mov ecx, esi
cmovae eax, dword [ebp - 0x438]
push eax
call fcn.100016f0
lea ecx, [ebp - 0x438]
call fcn.10001260
jmp 0x100016c5
push 0x104
lea edi, [esi + 0xc0]
mov byte [esi + 0x4d4], 1
push 0
push edi
call fcn.1000b8d0
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x10001668
mov eax, dword [eax]
push eax
push edi
call fcn.10003a20
push 0x104
lea edi, [esi + 0x2c8]
push 0
push edi
call fcn.1000b8d0
mov eax, dword [ebp + 0xc]
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x10001690
mov eax, dword [eax]
push eax
push edi
call fcn.10003a20
mov eax, dword [ebp + 0x10]
add esp, 8
mov eax, dword [eax]
mov dword [esi + 0x4d0], eax
lea eax, [ebp - 0x43c]
push eax
push 0
push esi
push 0x10001770
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10008c2e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100016f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 0x44
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.1000b8d0
add esp, 0xc
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
movups xmmword [ebp - 0x10], xmm0
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x10001751
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateRunProcess_err___d
call fcn.10002ea0
add esp, 8
mov esp, ebp
pop ebp
ret 4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 4
Function at 0x10001c00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e880
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x10029054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x270], ebx
mov eax, dword [ebp + 8]
test eax, eax
je 0x10001d9b
push eax
lea ecx, [ebp - 0x40]
call fcn.100010c0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.10002d40
push 0x22c
lea eax, [ebp - 0x26c]
push 0
push eax
call fcn.1000b8d0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x10001d82
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10001d7b
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebp - 0x248], ax
je 0x10001ce5
lea eax, [ebp - 0x248]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001cd6
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x28]
call fcn.10003700
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.10002d40
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x14]
cmp esi, 8
mov ebx, dword [ebp - 0x28]
push ecx
push dword [ebp - 0x18]
cmovae eax, ebx
push eax
call fcn.100032d0
add esp, 0x10
test eax, eax
je 0x10001d64
mov byte [ebp - 4], 0
cmp esi, 8
jb 0x10001d48
lea eax, [esi + 1]
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.10003800
lea eax, [ebp - 0x26c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x10001d7b
mov ebx, dword [ebp - 0x270]
jmp 0x10001cb0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x264]
lea ecx, [ebp - 0x28]
call fcn.10001260
jmp 0x10001d84
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x10001d99
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.10003800
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10008c2e
mov esp, ebp
pop ebp
ret 4
Function at 0x10002cb0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x10029054]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.1000b8d0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jg 0x10002d22
cmp dword [ebp - 0x118], 2
jg 0x10002d22
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008c2e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.10008c2e
mov esp, ebp
pop ebp
ret
Function at 0x10002ea0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc18
mov eax, dword [0x10029054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x206
lea eax, [ebp - 0x61a]
push 0
push eax
call fcn.1000b8d0
movups xmm0, xmmword [str.C:log_]
push 0x3e8
lea eax, [ebp - 0xc10]
push 0
push eax
movups xmmword [ebp - 0x61c], xmm0
call fcn.1000b8d0
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._sgswb.log
push eax
call fcn.10003a20
push 0x208
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.1000b8d0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.1000b8d0
add esp, 0x3c
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.1000ae64
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 8
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
je 0x100030c2
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10002f73
sub ecx, edx
lea edx, [ebp - 0x20a]
sar ecx, 1
lea ecx, [edx + ecx*2]
lea edx, [ebp - 0x824]
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x10002f93
push edi
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.txt
push eax
call fcn.10003a20
add esp, 0x10
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0xc10]
push 0x1f3
push eax
call fcn.10003a10
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.1000f7d4
xor eax, eax
add esp, 0x1c
mov word [ebp - 0x82a], ax
xor edi, edi
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
mov ecx, 1
lea eax, [ebp - 0x414]
push 0x1001f4f8
push eax
cmovne edi, ecx
call fcn.1000d787
mov esi, eax
add esp, 8
test esi, esi
je 0x100030c1
test edi, edi
jne 0x1000304f
push esi
push 2
lea eax, [ebp - 0xc18]
mov dword [ebp - 0xc18], 0xfeff
push 1
push eax
call fcn.1000fb26
add esp, 0x10
lea ecx, [ebp - 0xc10]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003060
sub ecx, edx
sar ecx, 1
push esi
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0xc10]
push 1
push eax
call fcn.1000fb26
push esi
push 2
lea eax, [ebp - 0xc14]
mov dword [ebp - 0xc14], 0xd
push 1
push eax
call fcn.1000fb26
push esi
push 2
lea eax, [ebp - 0xc14]
mov dword [ebp - 0xc14], 0xa
push 1
push eax
call fcn.1000fb26
push esi
call fcn.1000f86e
add esp, 0x34
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10008c2e
mov esp, ebp
pop ebp
ret