joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475cd4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4dbc18]
cmp dword [eax + 0x30], 0
je 0x475d7e
cmp dword [ebx + 0x94], 0
jne 0x475d78
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x475c64
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x475d78
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 0x475d3e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x475d78
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.0041a720
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x475d4d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4768e0
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 0x476915
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.00404370
jmp 0x476922
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042d4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x477a2c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x477a6d
mov eax, esi
call fcn.0045d408
test al, al
je 0x477a6d
mov eax, dword [ebx + 0x84]
call fcn.0045d104
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x477a6d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045d104
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x478750
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 [0x41738c]
call fcn.00404f70
xor eax, eax
push ebp
push 0x478894
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4d0068], 0
jne 0x4787a3
mov ecx, dword [0x4d9bd8]
mov dl, 1
mov eax, dword [0x407c40]
call fcn.0040d23c
call fcn.00403bfc
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402dc8
mov eax, ebx
call fcn.00404bb8
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4788a4
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.00405ef4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404bc8
test eax, eax
jle 0x47883b
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 0x478834
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404508
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004044f0
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408c30
test eax, eax
jne 0x478834
mov ebx, 0x15
jmp 0x478840
mov ebx, 0x10
jmp 0x478840
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 [0x4d0068]
call fcn.004786a8
mov eax, dword [ebp - 8]
call fcn.004786a8
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405f0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47889b
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004042a4
lea eax, [ebp - 0x10]
mov edx, dword [0x41738c]
call fcn.00405040
ret
Function at 0x482db4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
xor edx, edx
mov dword [ebp - 0x24], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x482e37
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1e]
xor ecx, ecx
mov edx, 0x1e
call fcn.00402dc8
xor eax, eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], 3
lea eax, [ebp - 0x24]
mov ecx, 0x482e50
mov edx, ebx
call fcn.0040458c
mov eax, dword [ebp - 0x24]
call fcn.00404740
mov dword [ebp - 0x16], eax
mov eax, 0x482e54
mov dword [ebp - 0x12], eax
mov word [ebp - 0xe], 0x14
lea eax, [ebp - 0x1e]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482e3e
lea eax, [ebp - 0x24]
call fcn.00404280
ret

Function at 0x484c58
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x484c87
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x484d06
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.00483514
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x484cd4
mov cx, word [esp]
sub cx, si
jmp 0x484cd6
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x484cbd
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x484cfc
mov cx, word [esp]
sub cx, si
jmp 0x484cfe
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x484ce5
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x484d63
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.0048492c
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x484d4e
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x484d63
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x484c62
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x48b298
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4dbcac
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x48b2ba
shr eax, 1
xor eax, 0xedb88320
jmp 0x48b2bc
shr eax, 1
dec edx
jne 0x48b2a8
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x48b2a1
mov byte [0x4dc0ac], 1
pop esi
pop ebx
ret

Function at 0x48b2d8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x4dc0ac], 0
jne 0x48b2ef
call fcn.0048b298
mov eax, edi
dec eax
test eax, eax
jl 0x48b318
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4dbcac]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x48b2f9
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x48dd78
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x48dda9
dec al
je 0x48dde5
dec al
je 0x48de29
dec al
je 0x48de94
jmp 0x48df1e
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x48df1e
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x48ddb9
jmp 0x48df1e
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x48df1e
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x48ddf5
jmp 0x48df1e
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x48df1e
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x48de57
xor ebp, ebp
jmp 0x48de68
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x48de71
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x48de39
jmp 0x48df1e
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x48df1e
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x48deec
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.0048b320
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x48dea8
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x492f18
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x492f69
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x492f50
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x492f40
jmp 0x492f69
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x492f51
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a0438
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
call fcn.0041ab20
mov esi, eax
xor eax, eax
push ebp
push 0x4a04b2
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [esi + 8]
dec ebx
cmp ebx, 0
jl 0x4a0496
mov edx, ebx
mov eax, esi
call fcn.0041a720
test byte [eax + 0x58], 1
je 0x4a0490
push 0
mov edx, ebx
mov eax, esi
call fcn.0041a720
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov edx, ebx
mov eax, esi
call fcn.0041a610
dec ebx
cmp ebx, 0xffffffff
jne 0x4a0464
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a04b9
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
call fcn.0041ab84
ret

Function at 0x4a39d8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4a3a06
mov eax, ebx
call fcn.004a448c
cmp dword [ebx + 0x40], 0
je 0x4a39ff
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4a3a77
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4a3a69
cmp dword [ebx + 8], 0
je 0x4a3a28
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 0x4a3a3a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4a3a69
cmp dword [ebx + 8], 0
je 0x4a3a1b
cmp eax, 3
je 0x4a3a4d
dec eax
jne 0x4a3a1b
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 0x4a3a1b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4a3a1b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4a3a95
cmp dword [ebx + 0x14], 0xcc
je 0x4a3a95
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.004a3aa0
pop ebx
ret
Function at 0x4b557c
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov ebx, eax
mov byte [ebp - 1], 0
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x4b562a
push 0xf01ff
mov eax, ebx
call fcn.00404740
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x4b562a
xor eax, eax
push ebp
push 0x4b5607
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_StartServiceA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b562a
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b5634
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov ebx, eax
mov byte [ebp - 1], 0
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x4b56e2
push 0xf01ff
mov eax, ebx
call fcn.00404740
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x4b56e2
xor eax, eax
push ebp
push 0x4b56bf
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
push eax
push 1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_ControlService
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b56e2
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b56ec
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, 0x4b5848
call fcn.004042d4
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x4b5839
push 0xf01ff
mov eax, esi
call fcn.00404740
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x4b5839
xor edx, edx
push ebp
push 0x4b5816
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_QueryServiceStatus
mov eax, dword [ebp - 0x20]
cmp eax, 4
jne 0x4b5777
mov eax, ebx
mov edx, 0x4b5858
call fcn.004042d4
jmp 0x4b57fa
cmp eax, 4
jne 0x4b578a
mov eax, ebx
mov edx, 0x4b5864
call fcn.004042d4
jmp 0x4b57fa
cmp eax, 2
jne 0x4b579d
mov eax, ebx
mov edx, 0x4b5864
call fcn.004042d4
jmp 0x4b57fa
cmp eax, 3
jne 0x4b57b0
mov eax, ebx
mov edx, 0x4b5864
call fcn.004042d4
jmp 0x4b57fa
cmp eax, 7
jne 0x4b57c3
mov eax, ebx
mov edx, 0x4b5864
call fcn.004042d4
jmp 0x4b57fa
cmp eax, 1
jne 0x4b57d6
mov eax, ebx
mov edx, 0x4b5874
call fcn.004042d4
jmp 0x4b57fa
cmp eax, 5
jne 0x4b57e9
mov eax, ebx
mov edx, 0x4b5864
call fcn.004042d4
jmp 0x4b57fa
cmp eax, 6
jne 0x4b57fa
mov eax, ebx
mov edx, 0x4b5864
call fcn.004042d4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b5839
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
mov byte [ebp - 1], cl
mov esi, edx
mov ebx, eax
cmp bl, 0x90
jne 0x4b597d
push 0x90
call sub.user32.dll_GetKeyState
and ax, 1
cmp al, 1
sbb ebx, ebx
inc ebx
lea eax, [ebp - 0x102]
push eax
call sub.user32.dll_GetKeyboardState
test bl, bl
je 0x4b5968
and byte [ebp - 0x72], 0xfe
jmp 0x4b596c
or byte [ebp - 0x72], 1
lea eax, [ebp - 0x102]
push eax
call sub.user32.dll_SetKeyboardState
jmp 0x4b5a03
push 0
xor eax, eax
mov al, bl
push eax
call sub.user32.dll_MapVirtualKeyA
and al, 0xff
mov byte [ebp - 2], al
test si, si
jbe 0x4b5a03
mov eax, ebx
and eax, 0xff
bt dword [0x4d98dc], eax
jae 0x4b59d3
mov eax, dword [ebp + 8]
push eax
mov ecx, 1
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.004b58dc
pop ecx
cmp byte [ebp - 1], 0
je 0x4b59fe
mov eax, dword [ebp + 8]
push eax
mov ecx, 3
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.004b58dc
pop ecx
jmp 0x4b59fe
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.004b58dc
pop ecx
cmp byte [ebp - 1], 0
je 0x4b59fe
mov eax, dword [ebp + 8]
push eax
mov ecx, 2
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.004b58dc
pop ecx
dec si
jne 0x4b5993
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b5a0c
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
push 0
xor eax, eax
mov al, bl
push eax
call sub.user32.dll_MapVirtualKeyA
and al, 0xff
mov edx, ebx
and edx, 0xff
bt dword [0x4d98dc], edx
jae 0x4b5a44
mov edx, dword [ebp + 8]
push edx
xor ecx, ecx
mov edx, eax
mov eax, ebx
call fcn.004b58dc
pop ecx
pop ebx
pop ebp
ret
mov edx, dword [ebp + 8]
push edx
mov ecx, 2
mov edx, eax
mov eax, ebx
call fcn.004b58dc
pop ecx
pop ebx
pop ebp
ret
Function at 0x4bce98
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 [0x4d9c58]
cmp byte [eax], 0
jne 0x4bcec6
mov ecx, 0xaf
mov edx, 0x4bcf14
mov eax, 0x4bcf50
call fcn.004041dc
mov eax, ebx
call fcn.0040498c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x4bcf05
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.00404b20
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov eax, dword [0x4d9c58]
cmp byte [eax], 0
jne 0x4bcf87
mov ecx, 0xbd
mov edx, 0x4bcfc8
mov eax, 0x4bd004
call fcn.004041dc
push 2
movzx eax, bx
push eax
call sub.user32.dll_MapVirtualKeyW
mov edi, eax
mov eax, ebx
add eax, 0xffffffd0
sub ax, 0xa
jae 0x4bcfba
mov esi, ebx
sub si, 0x30
add si, 0x30
cmp si, di
je 0x4bcfba
push esi
call sub.user32.dll_VkKeyScanW
cmp al, bl
jne 0x4bcfba
mov edi, esi
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x4c0f6c
Capabilities:
Set global application hook

Disassembly:
mov eax, dword [0x4da0b8]
cmp dword [eax], 2
je 0x4c0f8a
mov ecx, 0x35f
mov edx, 0x4c0fbc
mov eax, 0x4c0ff8
call fcn.004041dc
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
push 0x4c0f0c
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4dc18c], eax
cmp dword [0x4dc18c], 0
jne 0x4c0fb1
call fcn.0040e780
ret

Function at 0x4c19c4
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 0x4c1a28
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.004044f0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004093e4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c1a2f
lea eax, [ebp - 0xc]
call fcn.00404280
ret

Function at 0x4c1a84
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x4c1ae0
push esp
push 0x40
push 6
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x4c1aaf
call fcn.0040e780
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov ecx, 6
call fcn.00402928
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x4c1ae0
call fcn.0040e780
add esp, 0x14
pop edi
pop esi
pop ebx
ret