joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c153
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0042db90
mov eax, dword [0x44dcf8]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004372ac
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x43c286
push 2
push esi
push dword [ebp + 8]
call fcn.004372ac
add esp, 0xc
cmp eax, ebx
je 0x43c286
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x43c226
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0042d500
push 0x8000
push dword [ebp + 8]
call fcn.0043c8b7
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x43c1dc
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00437732
add esp, 0xc
cmp eax, 0xffffffff
je 0x43c1fc
sub edi, eax
test edi, edi
jg 0x43c1d4
jmp 0x43c214
call fcn.0042fc73
cmp dword [eax], 5
jne 0x43c211
call fcn.0042fc6a
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0043c8b7
pop ecx
pop ecx
jmp 0x43c26e
jge 0x43c26e
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004372ac
push dword [ebp + 8]
call fcn.0043ac36
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x43c26e
call fcn.0042fc6a
mov dword [eax], 0xd
call fcn.0042fc73
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.004372ac
add esp, 0xc
mov eax, esi
pop edi
jmp 0x43c288
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0042da10
leave
ret
Function at 0x43c6e2
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x43c6fb
or eax, 0xffffffff
jmp 0x43c75c
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x43c758
push 0x3d
push esi
call fcn.0043c94e
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x43c758
cmp esi, eax
je 0x43c758
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x452a60]
sete cl
cmp eax, dword [0x452a64]
mov dword [ebp - 8], ecx
jne 0x43c73e
mov edi, eax
call fcn.0043c681
mov dword [0x452a60], eax
cmp eax, ebx
jne 0x43c797
cmp dword [ebp + 0xc], ebx
je 0x43c760
cmp dword [0x452a68], ebx
je 0x43c760
call fcn.0043b12d
test eax, eax
je 0x43c797
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x43c769
xor eax, eax
jmp 0x43c75b
push 4
call fcn.0042d1c9
cmp eax, ebx
pop ecx
mov dword [0x452a60], eax
je 0x43c758
mov dword [eax], ebx
cmp dword [0x452a68], ebx
jne 0x43c797
push 4
call fcn.0042d1c9
cmp eax, ebx
pop ecx
mov dword [0x452a68], eax
je 0x43c758
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x452a60]
call fcn.0043c634
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x43c7f8
cmp dword [esi], ebx
je 0x43c7f8
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0042d0b1
cmp dword [ebp - 8], ebx
pop ecx
jne 0x43c7db
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x43c839
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x43c7d2
mov eax, edi
shl eax, 2
push eax
push dword [0x452a60]
call fcn.0042d6ea
cmp eax, ebx
pop ecx
pop ecx
je 0x43c839
jmp 0x43c834
cmp dword [ebp - 8], ebx
jne 0x43c8a4
cmp edi, ebx
jge 0x43c807
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x452a60]
call fcn.0042d6ea
cmp eax, ebx
pop ecx
pop ecx
je 0x43c758
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x452a60], eax
cmp dword [ebp + 0xc], ebx
je 0x43c88e
push dword [ebp - 4]
call fcn.0042d1e0
inc eax
inc eax
push eax
call fcn.0042d1c9
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x43c88e
push dword [ebp - 4]
push esi
call fcn.0042edf0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x43c887
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0042d0b1
pop ecx
cmp dword [ebp - 8], ebx
je 0x43c89c
push dword [ebp - 4]
call fcn.0042d0b1
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x43c75b
push dword [ebp - 4]
call fcn.0042d0b1
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x43c765
Function at 0x4b6334
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 0x4b6350
cmp dword [esi + 4], 0
je 0x4b637d
test byte [ebx + 0x55], 1
jne 0x4b636f
mov eax, ebx
call fcn.004b4ed4
test eax, eax
jne 0x4b636f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4b648d
mov edx, esi
mov eax, ebx
call fcn.004b5e58
jmp 0x4b648d
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 0x4b6486
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004b81a4
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.004b2b70
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004b6334
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.004b81a4
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b648d
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 0x4b96f8
Capabilities:
Check for time delay via gettickcount
Get number of processors
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, ecx
mov dword [ebp - 4], eax
mov esi, dword [0x4ef82c]
mov eax, dword [ebp - 4]
mov byte [eax + 0x210], 1
xor eax, eax
push ebp
push 0x4b98d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004b19ec
add dword [ebp - 0xc], 4
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004b2c14
mov eax, dword [esi]
call fcn.004c73c4
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
add edx, dword [ebp - 0x14]
cmp eax, edx
jge 0x4b976a
mov eax, dword [esi]
call fcn.004c73c4
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x4c]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
call fcn.004c73d0
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x48]
add edx, dword [ebp - 0x18]
cmp eax, edx
jge 0x4b978e
mov eax, dword [esi]
call fcn.004c73d0
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x48]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
call fcn.004c73b8
cmp eax, dword [ebp - 0x18]
jle 0x4b97a4
mov eax, dword [esi]
call fcn.004c73b8
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
call fcn.004c73ac
cmp eax, dword [ebp - 0xc]
jle 0x4b97ba
mov eax, dword [esi]
call fcn.004c73ac
mov dword [ebp - 0xc], eax
push 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.004b81a4
push eax
call sub.user32.dll_SetWindowPos
call sub.KERNEL32.DLL_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x214]
cmp eax, 0xfa
jbe 0x4b9881
mov eax, ebx
call fcn.00404ec8
cmp eax, 0x64
jge 0x4b9881
cmp dword [0x4ee55c], 0
je 0x4b9881
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x1016
call sub.user32.dll_SystemParametersInfoA
cmp dword [ebp - 8], 0
je 0x4b9881
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x1018
call sub.user32.dll_SystemParametersInfoA
cmp dword [ebp - 8], 0
je 0x4b9844
mov bl, 2
jmp 0x4b985f
lea edx, [ebp - 0x20]
mov eax, dword [0x4f21bc]
call fcn.004bc990
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jle 0x4b985d
xor ebx, ebx
jmp 0x4b985f
mov bl, 1
xor eax, eax
mov al, bl
mov eax, dword [eax*4 + 0x4ee664]
or eax, 0x40000
push eax
push 0x64
mov eax, dword [ebp - 4]
call fcn.004b81a4
push eax
call dword [0x4ee55c]
mov eax, dword [0x4ef5e4]
mov eax, dword [eax]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 4]
call fcn.004b58d8
push 4
mov eax, dword [ebp - 4]
call fcn.004b81a4
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x7c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b98d8
call sub.KERNEL32.DLL_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x214], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x210], 0
ret
Function at 0x4bcaa0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4ef858]
cmp byte [eax + 0xc], 0
je 0x4bcc0d
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4bcc06
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [fcn.004f2210], 0
jne 0x4bcaf4
push 0x4bcc14
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x4bcc1c
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [fcn.004f2210], eax
cmp dword [0x4ee68c], 0
jne 0x4bcbef
push 0x4bcc2c
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4ee68c], eax
cmp dword [0x4ee68c], 0
je 0x4bcbef
push 0x4bcc38
mov eax, dword [0x4ee68c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f2214], eax
push 0x4bcc48
mov eax, dword [0x4ee68c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f2218], eax
push 0x4bcc5c
mov eax, dword [0x4ee68c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f221c], eax
push 0x4bcc74
mov eax, dword [0x4ee68c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f2220], eax
push 0x4bcc8c
mov eax, dword [0x4ee68c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f2224], eax
push 0x4bcca0
mov eax, dword [0x4ee68c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f2228], eax
push 0x4bccb8
mov eax, dword [0x4ee68c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f222c], eax
push 0x4bccd0
mov eax, dword [0x4ee68c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f2230], eax
push 0x4bccec
mov eax, dword [0x4ee68c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [fcn.004f2234], eax
push 0x4bccf8
mov eax, dword [0x4ee68c]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4f2238], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bcc0d
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4c0a24
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4c0a74]
test si, 4
je 0x4c0a38
or bl, 1
test si, 8
je 0x4c0a42
or bl, 4
test si, 1
je 0x4c0a4c
or bl, 8
test si, 2
je 0x4c0a56
or bl, 0x10
test si, 0x10
je 0x4c0a60
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4c0a6f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4c0a78
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4c0ab0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4c0a91
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4c0aa0
or bl, 4
test esi, 0x20000000
je 0x4c0aab
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4c7174
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4c7186
add esp, 0xfffffff0
call fcn.00403f98
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004801a0
mov eax, dword [0x4ef2c8]
mov dword [eax + 4], ebx
mov dword [eax], 0x4c7518
mov eax, dword [0x4ef2d8]
mov dword [eax + 4], ebx
mov dword [eax], 0x4c7524
mov eax, ebx
call fcn.004c7530
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x474d1c]
call fcn.00403bf0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x474d1c]
call fcn.00403bf0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x474d1c]
call fcn.00403bf0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x474d1c]
call fcn.00403bf0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x474d1c]
call fcn.00403bf0
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, 0x4c3948
push eax
push 0
push 0
mov eax, dword [0x4ef500]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x48aa18]
call fcn.0048c1b0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x48aa18]
call fcn.0048c1b0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x48aa18]
call fcn.0048c1b0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004c7980
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4c7848
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4c7848
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4c7848
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4c72c3
call fcn.00403ff0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4c762c
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 0x4c77d7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4c77b8
mov dl, 1
mov eax, dword [0x475380]
call fcn.00403bf0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404bf8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4c77a7
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.004bce00
test al, al
je 0x4c779a
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, 0x4c77e8
lea eax, [ebp - 0x254]
call fcn.00467424
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4c779a
xor eax, eax
push ebp
push 0x4c7793
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 0x4c7820
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x4c777c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404e78
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 0x4c777c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404e78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c779a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4c769d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00479b98
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 0x4c77de
lea eax, [ebp - 0x260]
call fcn.00404bf8
ret

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

Disassembly:
push ecx
mov eax, dword [0x4f2240]
cmp byte [eax + 0xa5], 0
jne 0x4c8191
cmp dword [0x4f2258], 0
jne 0x4c8152
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x4c80dc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4f2258], eax
cmp dword [0x4f2254], 0
jne 0x4c816d
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x4f2254], eax
cmp dword [0x4f225c], 0
jne 0x4c8191
push esp
push 0
push 0
push 0x4c8080
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x4f225c], eax
pop edx
ret
Function at 0x4c8824
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4f2240]
cmp dword [eax + 0x30], 0
je 0x4c88ce
cmp dword [ebx + 0x94], 0
jne 0x4c88c8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4c87b4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4c88c8
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 0x4c888e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4c88c8
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.00477704
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4c889d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4c942c
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 0x4c9461
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.00404ce8
jmp 0x4c946e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404c4c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4ca524
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4ca565
mov eax, esi
call fcn.004b847c
test al, al
je 0x4ca565
mov eax, dword [ebx + 0x84]
call fcn.004b81a4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4ca565
push 0
mov eax, dword [ebx + 0x84]
call fcn.004b81a4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4cd980
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.00404bf8
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4cd9cf
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.00404e78
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d96e8
Capabilities:
Set global application hook

Disassembly:
mov eax, dword [0x4ef850]
cmp dword [eax], 2
je 0x4d9706
mov ecx, 0x2f7
mov edx, 0x4d9738
mov eax, 0x4d9780
call fcn.00404b54
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
push 0x4d9688
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4f2300], eax
cmp dword [0x4f2300], 0
jne 0x4d972d
call fcn.0046bb8c
ret
Function at 0x4db928
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, dword [0x4ef24c]
cmp byte [eax], 0
jne 0x4db956
mov ecx, 0xad
mov edx, 0x4db9a4
mov eax, 0x4db9ec
call fcn.00404b54
mov eax, ebx
call fcn.004053e4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x4db995
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.0040559c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4dba00
Capabilities:
Log keystrokes

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [0x4ef24c]
cmp byte [eax], 0
jne 0x4dba21
mov ecx, 0xb9
mov edx, 0x4dba38
mov eax, 0x4dba80
call fcn.00404b54
push 2
movzx eax, bx
push eax
call sub.user32.dll_MapVirtualKeyW
pop ebx
ret
Function at 0x4de950
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 4]
call fcn.004059f4
xor eax, eax
push ebp
push 0x4deada
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor esi, esi
push 0xf003f
push 0
push edi
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4deabd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0
jne 0x4de9ae
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 8], eax
jmp 0x4deaa6
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00405634
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4dea9f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x14], 0
jne 0x4de9e9
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 8], eax
jmp 0x4dea88
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_StartServiceW
test eax, eax
jne 0x4dea0b
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 8], eax
jmp 0x4dea88
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4dea7b
cmp word [ebx + 0xa], 0
je 0x4dea63
lea ecx, [ebp - 0x30]
mov edx, ebx
mov eax, dword [ebx + 0xc]
call dword [ebx + 8]
jmp 0x4dea63
inc esi
cmp esi, dword [ebp + 8]
ja 0x4dea69
push 0x3e8
call sub.KERNEL32.DLL_Sleep
cmp word [ebx + 0xa], 0
je 0x4dea52
lea ecx, [ebp - 0x30]
mov edx, ebx
mov eax, dword [ebx + 0xc]
call dword [ebx + 8]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4dea69
cmp dword [ebp - 0x2c], 4
jne 0x4dea30
cmp word [ebx + 0xa], 0
je 0x4dea7b
lea ecx, [ebp - 0x30]
mov edx, ebx
mov eax, dword [ebx + 0xc]
call dword [ebx + 8]
cmp dword [ebp - 0x2c], 4
je 0x4dea88
mov dword [ebp - 8], 0x102
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4deaa6
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4deac4
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret