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

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x474774]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x474755
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x474764
or bl, 4
test esi, 0x20000000
je 0x47476f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4747c4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
add esp, 0xffffff00
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.00474778
mov ebx, eax
mov eax, ebx
add esp, 0x100
pop ebx
ret

Function at 0x47af70
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x47af82
add esp, 0xfffffff0
call fcn.004025a8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00423834
mov eax, dword [0x4d648c]
mov dword [eax + 4], ebx
mov dword [eax], 0x47b314
mov eax, dword [0x4d649c]
mov dword [eax + 4], ebx
mov dword [eax], 0x47b320
mov eax, ebx
call fcn.0047b32c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x418148]
call fcn.004021c0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x418148]
call fcn.004021c0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x418148]
call fcn.004021c0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x418148]
call fcn.004021c0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x418148]
call fcn.004021c0
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, 0x47762c
push eax
push 0
push 0
mov eax, dword [0x4d6658]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4252e0]
call fcn.00426a9c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4252e0]
call fcn.00426a9c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4252e0]
call fcn.00426a9c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0047b77c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47b644
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47b644
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x47b644
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x47b0bf
call fcn.00402600
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x47b428
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 0x47b5d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x47b5b4
mov dl, 1
mov eax, dword [0x4187ac]
call fcn.004021c0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403114
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x47b5a3
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.00468850
test al, al
je 0x47b596
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, 0x47b5e4
lea eax, [ebp - 0x254]
call fcn.00409ca0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x47b596
xor eax, eax
push ebp
push 0x47b58f
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 0x47b61c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x47b578
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004033f4
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 0x47b578
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004033f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b596
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x47b499
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041d210
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 0x47b5da
lea eax, [ebp - 0x260]
call fcn.00403114
ret

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

Disassembly:
push ecx
mov eax, dword [0x4d839c]
cmp byte [eax + 0xa5], 0
jne 0x47bf8d
cmp dword [0x4d83b4], 0
jne 0x47bf4e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x47bed8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4d83b4], eax
cmp dword [0x4d83b0], 0
jne 0x47bf69
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4d83b0], eax
cmp dword [0x4d83b8], 0
jne 0x47bf8d
push esp
push 0
push 0
push 0x47be7c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4d83b8], eax
pop edx
ret
Function at 0x47c620
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4d839c]
cmp dword [eax + 0x30], 0
je 0x47c6ca
cmp dword [ebx + 0x94], 0
jne 0x47c6c4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x47c5b0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x47c6c4
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 0x47c68a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x47c6c4
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.0041aa0c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x47c699
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x47d228
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 0x47d25d
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.0040327c
jmp 0x47d26a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004031d4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x47e434
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x47e475
mov eax, esi
call fcn.00463e38
test al, al
je 0x47e475
mov eax, dword [ebx + 0x84]
call fcn.00463b34
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x47e475
push 0
mov eax, dword [ebx + 0x84]
call fcn.00463b34
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x481b84
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x481bb2
mov eax, ebx
call fcn.00482638
cmp dword [ebx + 0x40], 0
je 0x481bab
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x481c23
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x481c15
cmp dword [ebx + 8], 0
je 0x481bd4
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 0x481be6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x481c15
cmp dword [ebx + 8], 0
je 0x481bc7
cmp eax, 3
je 0x481bf9
dec eax
jne 0x481bc7
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 0x481bc7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x481bc7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x481c41
cmp dword [ebx + 0x14], 0xcc
je 0x481c41
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.00481c4c
pop ebx
ret
Function at 0x493e20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
xor esi, esi
mov eax, ebx
call fcn.00406970
cmp ax, 0xffff
jne 0x493e41
neg ebx
mov eax, ebx
shr eax, 4
and eax, 0xffff
inc eax
and ebx, 0xf
push 6
push eax
push edi
call sub.kernel32.dll_FindResourceA
test eax, eax
je 0x493ecd
push eax
push edi
call sub.kernel32.dll_LoadResource
mov edi, eax
test edi, edi
je 0x493ecd
push edi
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
mov eax, ebx
dec eax
test eax, eax
jl 0x493e8e
inc eax
mov edx, dword [ebp - 8]
movzx edx, word [edx]
add edx, edx
add edx, dword [ebp - 8]
add edx, 2
mov dword [ebp - 8], edx
dec eax
jne 0x493e7a
mov eax, dword [ebp - 8]
movzx esi, word [eax]
add dword [ebp - 8], 2
cmp dword [ebp - 4], 0
je 0x493ecd
cmp dword [ebp + 8], 0
jle 0x493ecd
mov eax, dword [ebp + 8]
dec eax
mov edx, esi
call fcn.0042e420
mov esi, eax
test esi, esi
jle 0x493ec4
mov ecx, esi
add ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00406984
mov eax, dword [ebp - 4]
mov word [eax + esi*2], 0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x494a58
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x494abc
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004033f4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408828
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494ac3
lea eax, [ebp - 0xc]
call fcn.00403114
ret

Function at 0x494b74
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x494bcf
lea eax, [ebp - 4]
push eax
push 0x40
push 6
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x494ba3
call fcn.0040eb28
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov ecx, 6
call fcn.004016f4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 6
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x494bcf
call fcn.0040eb28
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x495208
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x4178f0]
call fcn.00403efc
xor eax, eax
push ebp
push 0x49534c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4d5b58], 0
jne 0x49525b
mov ecx, dword [0x4d63a8]
mov dl, 1
mov eax, dword [0x407040]
call fcn.0040d530
call fcn.00402a08
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00401c14
mov eax, ebx
call fcn.00403b1c
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x49535c
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00404ff0
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00403b2c
test eax, eax
jle 0x4952f3
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4952ec
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.0040340c
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004033f4
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00407ffc
test eax, eax
jne 0x4952ec
mov ebx, 0x15
jmp 0x4952f8
mov ebx, 0x10
jmp 0x4952f8
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4d5b58]
call fcn.00495104
mov eax, dword [ebp - 8]
call fcn.00495104
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405008
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495353
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0040317c
lea eax, [ebp - 0x10]
mov edx, dword [0x4178f0]
call fcn.0040403c
ret
Function at 0x49fa8c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x49fc10
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [ebx + 0x276]
sub al, 2
jb 0x49fbf5
cmp byte [ebx + 0x268], 0
je 0x49fbf5
mov eax, dword [ebp - 4]
call fcn.004a4bd4
mov word [ebp - 6], ax
xor eax, eax
push ebp
push 0x49fbee
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [ebp - 6]
sub ax, 8
je 0x49fb32
dec ax
je 0x49fb08
sub ax, 0x12
jne 0x49fb4c
call fcn.00402ab4
jmp 0x49fbf5
cmp byte [ebx + 0x269], 0
je 0x49fbd4
mov eax, ebx
call fcn.004542f4
test al, al
je 0x49fbd4
xor edx, edx
mov eax, ebx
call fcn.00454318
jmp 0x49fbd4
mov eax, dword [esi]
call fcn.00403b2c
mov edx, eax
mov eax, esi
mov ecx, 1
call fcn.00403d18
jmp 0x49fbd4
cmp byte [ebx + 0x269], 0
je 0x49fb69
mov eax, ebx
call fcn.004542f4
test al, al
jne 0x49fb69
mov dl, 1
mov eax, ebx
call fcn.00454318
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp + 8]
sub eax, dword [edx]
cmp eax, 0x4e2
jb 0x49fb81
mov eax, esi
call fcn.004038f0
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp + 8]
mov dword [edx], eax
push 0
push 1
lea eax, [ebp - 0x10]
mov dx, word [ebp - 6]
call fcn.00403a08
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi]
lea eax, [ebp - 0xc]
call fcn.00403b98
mov ecx, dword [ebp - 0xc]
mov edx, edi
mov eax, ebx
call fcn.0049f8bc
test al, al
je 0x49fbd4
lea eax, [ebp - 0x14]
mov dx, word [ebp - 6]
call fcn.00403a08
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.00403b38
mov word [ebp - 6], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49fbf5
mov eax, dword [ebp - 4]
mov dx, word [ebp - 6]
call fcn.004a4c08
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49fc17
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403908
ret

Function at 0x4a27bc
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0x90], 6
setae al
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004038f0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x4a283b
push 0x200
lea edx, [ebp - 0x202]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00403a80
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a2840
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x4a298c
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x20
lea edx, [ebp - 0x40]
push edx
and eax, 0x1ff
shl eax, 0x10
push eax
call sub.user32.dll_GetKeyNameTextW
mov esi, eax
lea edx, [ebp - 0x40]
mov eax, ebx
mov ecx, esi
call fcn.004039e4
lea eax, [ebp - 0x44]
push eax
lea edx, [ebp - 0x48]
mov eax, dword [ebx]
call fcn.004080a0
mov eax, dword [ebp - 0x48]
mov ecx, esi
dec ecx
mov edx, 2
call fcn.00403ccc
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebx]
mov ecx, 1
mov edx, 1
call fcn.00403ccc
mov edx, dword [ebp - 0x4c]
mov eax, ebx
pop ecx
call fcn.00403b98
mov edx, dword [ebx]
mov eax, 0x4a29a0
call fcn.00403e44
test eax, eax
jle 0x4a2971
lea eax, [ebp - 0x50]
push eax
mov edx, dword [ebx]
mov eax, 0x4a29a0
call fcn.00403e44
mov ecx, eax
mov eax, dword [ebx]
mov edx, 1
call fcn.00403ccc
push dword [ebp - 0x50]
lea eax, [ebp - 0x58]
push eax
mov edx, dword [ebx]
mov eax, 0x4a29a0
call fcn.00403e44
mov edx, eax
inc edx
mov eax, dword [ebx]
mov ecx, 1
call fcn.00403ccc
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
call fcn.0040806c
push dword [ebp - 0x54]
lea eax, [ebp - 0x5c]
push eax
mov edx, dword [ebx]
mov eax, 0x4a29a0
call fcn.00403e44
sub esi, eax
dec esi
push esi
mov edx, dword [ebx]
mov eax, 0x4a29a0
call fcn.00403e44
mov edx, eax
add edx, 2
mov eax, dword [ebx]
pop ecx
call fcn.00403ccc
push dword [ebp - 0x5c]
mov eax, ebx
mov edx, 3
call fcn.00403c00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2993
lea eax, [ebp - 0x5c]
mov edx, 7
call fcn.00403908
ret
Function at 0x4a29a4
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a2ad4
push dword fs:[eax]
mov dword fs:[eax], esp
mov edi, ebx
and di, 0xff
movzx eax, di
cmp eax, 0x20
jge 0x4a29e5
add eax, 0xfffffff8
sub eax, 2
jb 0x4a2a18
sub eax, 3
je 0x4a2a18
sub eax, 0xe
je 0x4a2a18
jmp 0x4a2a2c
add eax, 0xffffffe0
sub eax, 9
jb 0x4a29ff
add eax, 0xfffffffc
sub eax, 2
jb 0x4a29ff
add eax, 0xffffffbf
sub eax, 0x18
jb 0x4a2a18
jmp 0x4a2a2c
push 0
movzx eax, di
push eax
call sub.user32.dll_MapVirtualKeyW
add eax, 0x100
mov edx, esi
call fcn.004a2840
jmp 0x4a2a35
push 0
movzx eax, di
push eax
call sub.user32.dll_MapVirtualKeyW
mov edx, esi
call fcn.004a2840
jmp 0x4a2a35
mov edx, esi
mov eax, edi
call fcn.004a27ec
test bh, 0x20
je 0x4a2a61
push 0
push 0x10
call sub.user32.dll_MapVirtualKeyW
lea edx, [ebp - 4]
call fcn.004a2840
push dword [ebp - 4]
push 0x4a2ae8
push dword [esi]
mov eax, esi
mov edx, 3
call fcn.00403c00
test bh, 0x80
je 0x4a2a8d
push 0
push 0x12
call sub.user32.dll_MapVirtualKeyW
lea edx, [ebp - 8]
call fcn.004a2840
push dword [ebp - 8]
push 0x4a2ae8
push dword [esi]
mov eax, esi
mov edx, 3
call fcn.00403c00
test bh, 0x40
je 0x4a2ab9
push 0
push 0x11
call sub.user32.dll_MapVirtualKeyW
lea edx, [ebp - 0xc]
call fcn.004a2840
push dword [ebp - 0xc]
push 0x4a2ae8
push dword [esi]
mov eax, esi
mov edx, 3
call fcn.00403c00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2adb
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403908
ret

Function at 0x4a7424
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
push 0x4a73c4
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4d87ac], eax
cmp dword [0x4d87ac], 0
jne 0x4a744e
call fcn.0040eb28
pop ebp
ret

Function at 0x4a850c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
push 0x4a8594
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
test ebx, ebx
je 0x4a8586
push 0x4a85a0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi + 4], eax
push 0x4a85b0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi + 8], eax
push 0x4a85c4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi + 0xc], eax
push 0x4a85dc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi + 0x10], eax
push 0x4a85f0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi + 0x14], eax
push 0x4a8608
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi + 0x18], eax
mov eax, esi
call fcn.004a7ef4
push ebx
call sub.kernel32.dll_FreeLibrary_1
jmp 0x4a858d
mov eax, esi
call fcn.004a82bc
pop esi
pop ebx
pop ebp
ret

Function at 0x4a9340
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0x90], 6
setae al
mov esp, ebp
pop ebp
ret
Function at 0x4aa114
Capabilities:
Create process on windows
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff80
push ebx
push esi
mov eax, dword [0x4d68d8]
cmp dword [eax], 1
jne 0x4aa209
push 0x4aa2fc
push 0x4aa314
call sub.user32.dll_FindWindowA
test eax, eax
je 0x4aa146
mov byte [ebp - 1], 1
jmp 0x4aa2f3
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x44
call fcn.00401c14
mov dword [ebp - 0x54], 0x44
mov eax, 0x104
call fcn.004014d8
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4aa202
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0x104
push 0
push 0x4aa324
push 0
call sub.kernel32.dll_SearchPathA
test eax, eax
jne 0x4aa1a3
call sub.kernel32.dll_GetLastError
test eax, eax
sete byte [ebp - 1]
jmp 0x4aa1ec
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x210
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4aa1d6
call sub.kernel32.dll_GetLastError
test eax, eax
sete byte [ebp - 1]
jmp 0x4aa1ec
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_CloseHandle
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa2f3
mov eax, dword [ebp - 8]
call fcn.004014f0
ret
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jne 0x4aa22a
call sub.kernel32.dll_GetLastError
test eax, eax
sete byte [ebp - 1]
jmp 0x4aa2f3
push 4
push 0x4aa330
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jne 0x4aa24c
push 0x10
push 0x4aa330
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
push ebx
call sub.advapi32.dll_CloseServiceHandle
test esi, esi
jne 0x4aa266
call sub.kernel32.dll_GetLastError
test eax, eax
sete byte [ebp - 1]
jmp 0x4aa2f3
lea eax, [ebp - 0x80]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x4aa287
push esi
call sub.advapi32.dll_CloseServiceHandle
call sub.kernel32.dll_GetLastError
test eax, eax
sete byte [ebp - 1]
jmp 0x4aa2f3
cmp dword [ebp - 0x7c], 4
jne 0x4aa299
push esi
call sub.advapi32.dll_CloseServiceHandle
mov byte [ebp - 1], 1
jmp 0x4aa2f3
xor eax, eax
mov dword [ebp - 0x10], eax
push esi
call sub.advapi32.dll_CloseServiceHandle
push 1
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
push 0x10
push 0x4aa330
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
push ebx
call sub.advapi32.dll_CloseServiceHandle
lea eax, [ebp - 0x10]
push eax
push 0
push esi
call sub.advapi32.dll_StartServiceA
test eax, eax
jne 0x4aa2e9
push esi
call sub.advapi32.dll_CloseServiceHandle
call sub.kernel32.dll_GetLastError
test eax, eax
sete byte [ebp - 1]
jmp 0x4aa2f3
push esi
call sub.advapi32.dll_CloseServiceHandle
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret