joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a550
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407128
xor eax, eax
push ebp
push 0x40a610
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407f5c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040810c
mov eax, dword [ebx]
call fcn.0040a418
test al, al
jne 0x40a5ed
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407f5c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040810c
mov eax, dword [ebx]
call fcn.0040a418
test al, al
jne 0x40a5ed
mov eax, ebx
call fcn.00407044
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a617
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004070a4
lea eax, [ebp - 4]
call fcn.00407044
ret

Function at 0x41ca04
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41ca5d
test eax, edx
je 0x41ca60
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41ca1b
movzx eax, word [eax]
sub eax, ecx
jmp 0x41ca42
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41ca43
add ecx, 4
js 0x41ca33
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41ca40
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41ca42
xor eax, eax
ret
test eax, eax
je 0x41ca6c
test edx, edx
jne 0x41ca0c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41dd84
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x41ddb1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x41de44
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.00407ea0
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41deeb
test esi, 0x400
jne 0x41de80
test esi, 0x10
setne bl
jmp 0x41df0f
cmp byte [esp], 0
je 0x41deb4
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41df0f
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x41df0f
test esi, 0x10
je 0x41dec0
mov bl, 1
jmp 0x41df0f
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41dee7
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x41df0f
mov bl, 1
jmp 0x41df0f
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41df09
cmp eax, 3
je 0x41df09
cmp eax, 0x7b
je 0x41df09
cmp eax, 0x35
je 0x41df09
cmp eax, 0x15
jne 0x41df0d
xor ebx, ebx
jmp 0x41df0f
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4232ac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4232e5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004071cc
jmp 0x4232ee
mov eax, ebx
mov edx, esi
call fcn.00407424
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4232f8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x42331a
movzx eax, word [esp]
jmp 0x42331c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x423ff4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x424119
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00423dfc
mov esi, eax
mov eax, dword [0x5ee584]
cmp byte [eax], 0
je 0x4240c1
mov eax, dword [0x5ee294]
call fcn.00404f88
call fcn.00404a74
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x423fc4]
call fcn.00409334
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x424134
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4240fd
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5ee21c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5f1c50]
call fcn.00409540
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424120
lea eax, [ebp - 4]
mov edx, dword [0x423fc4]
call fcn.00409458
ret

Function at 0x424d64
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x424e3a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040746c
lea eax, [ebp - 4]
call fcn.00407608
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407ea0
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x424e24
mov eax, ebx
call fcn.00404900
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x424e1d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407ea0
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x424e07
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x424e4c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x424e07
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424e24
mov eax, dword [ebp - 0x10]
call fcn.0040491c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424e41
lea eax, [ebp - 4]
call fcn.00407044
ret
Function at 0x426188
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00407f5c
add esp, 0x800
pop ebx
ret
Function at 0x49d980
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x49da1e
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x49d9e2
cmp byte [ebx + 0x10], 0
jne 0x49d9e2
cmp byte [ebx + 0x3c], 0
jne 0x49d9e2
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x49da03
lea edx, [ebp - 4]
mov eax, dword [0x5ee508]
call fcn.0040aee0
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x478b28]
call fcn.00424144
call fcn.00406740
jmp 0x49da03
lea edx, [ebp - 8]
mov eax, dword [0x5ee508]
call fcn.0040aee0
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x478b28]
call fcn.00424144
call fcn.00406740
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49da25
lea eax, [ebp - 8]
mov edx, 2
call fcn.004070a4
ret

Function at 0x49df0c
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x49df5a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0049d8cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49df73
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x49df7c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0049d8cc
dec esi
jne 0x49df9e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x4a03a8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5f4020
cmp dword [edi], 0
jne 0x4a0424
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5f401c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5e95bc
mov ecx, 2
call fcn.00404ac4
mov edx, 0x4a0380
lea eax, [esi + 5]
call fcn.004a03a0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004a03a0
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4a03f9
mov dword [0x5f401c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4b9e2c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00407ea0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.004b9904
test al, al
jne 0x4b9e8d
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5ee734]
mov dl, 1
mov eax, dword [0x4b8640]
call fcn.0042423c
call fcn.00406740
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004b986c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4c22c8
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4c22ce
ret
Function at 0x4cc99c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4ccb4a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x30], 0
jne 0x4ccb26
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x4ccb26
mov eax, dword [ebp - 0xc]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x28
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x28]
add ebx, ebx
add ebx, ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
imul ebx
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4cc964]
call fcn.00409334
add esp, 4
lea eax, [ebp - 4]
call fcn.0040a96c
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [0x5ee298]
push eax
call sub.windowscodecs.dll_WICConvertBitmapSource
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 8]
call fcn.00409118
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
lea eax, [ebp - 0x38]
xor ecx, ecx
mov edx, 0x2c
call fcn.00404fec
mov dword [ebp - 0x38], 0x2c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
neg eax
mov dword [ebp - 0x30], eax
mov word [ebp - 0x2c], 1
mov word [ebp - 0x2a], 0x20
mov dl, 1
mov eax, dword [0x4c0b8c]
call fcn.004c94b4
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], ebx
xor ecx, ecx
push ebp
push 0x4ccb04
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, ebx
mov dl, 7
call fcn.004cb0a8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x6c]
push 0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
push eax
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x70]
push eax
push 0
call sub.gdi32.dll_SetDIBits
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov dl, 1
call fcn.004ca128
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ccb26
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ccb51
lea eax, [ebp - 8]
mov edx, dword [0x4cc964]
call fcn.00409458
lea eax, [ebp - 4]
call fcn.0040a96c
ret

Function at 0x4d5980
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x5eab2c
test edx, edx
jne 0x4d599f
xor eax, eax
jmp 0x4d5abd
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x4d59bc
push esi
push edx
push eax
call fcn.004d5ac4
add esp, 0xc
jmp 0x4d5abd
push esi
push edx
push eax
call fcn.004d5d84
add esp, 0xc
jmp 0x4d5abd
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4e3508
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x5f4200], 0
je 0x4e3649
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x5ee4d4]
mov edx, dword [edx]
xor al, byte [edx + 0xc0]
je 0x4e3649
mov eax, dword [0x5f4204]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x5f4200]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4e3618
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x5f4200]
call fcn.0048ee18
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4e3610
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1fd], 0
je 0x4e3610
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x68]
test al, al
je 0x4e3610
mov eax, dword [ebp - 0x14]
call fcn.004eee38
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4e3610
push ebp
call fcn.004e34c4
pop ecx
test al, al
jne 0x4e3610
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffba
call fcn.0040574c
test al, al
je 0x4e3610
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.0040574c
cmp byte [ebp - 1], 0
je 0x4e3610
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.0040c4bc
test al, al
je 0x4e3610
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5f4204]
call fcn.004e2c28
inc edi
dec ebx
jne 0x4e356d
mov eax, dword [0x5f4204]
cmp dword [eax + 8], 0
jle 0x4e3630
mov eax, dword [0x5f4204]
call fcn.004e2cdc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4e3649
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004e332c
pop ecx
test al, al
jne 0x4e3649
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4eb9a4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.0040c690
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.004e5ac4
test ebx, ebx
jne 0x4eb9f7
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004eb820
mov ebx, eax
test ebx, ebx
je 0x4ebaed
cmp esi, ebx
je 0x4eba20
mov eax, dword [esp]
sub eax, dword [ebx + 0x48]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x4c]
mov dword [esp + 0x118], eax
jmp 0x4eba35
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x4eba6d
add eax, 0xffffff5f
sub eax, 2
jb 0x4eba85
dec eax
sub eax, 2
jb 0x4eba99
dec eax
sub eax, 2
jb 0x4eba8f
jmp 0x4ebaa3
add eax, 0xfffffdff
sub eax, 2
jb 0x4eba85
dec eax
sub eax, 2
jb 0x4eba99
dec eax
sub eax, 2
jb 0x4eba8f
jmp 0x4ebaa3
mov byte [esp + 0x120], 0
jmp 0x4ebaab
mov byte [esp + 0x120], 2
jmp 0x4ebaab
mov byte [esp + 0x120], 1
jmp 0x4ebaab
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.005578e8
mov esi, eax
call fcn.004e25b8
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.004e738c
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x4ebaef
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x50fb50
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00407128
xor eax, eax
push ebp
push 0x50fc8f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x50fc62
xor edx, edx
push ebp
push 0x50fc5b
push dword fs:[edx]
mov dword fs:[edx], esp
mov esi, dword [ebp - 4]
mov eax, esi
test eax, eax
je 0x50fb9d
sub eax, 4
mov eax, dword [eax]
add eax, eax
add eax, 2
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x50fc30
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor edx, edx
push ebp
push 0x50fc1f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, esi
test eax, eax
je 0x50fbe2
sub eax, 4
mov eax, dword [eax]
mov esi, eax
add esi, esi
mov eax, dword [ebp - 4]
call fcn.00407ea0
lea ecx, [esi + 2]
mov edx, ebx
call fcn.00404ac4
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 0xd
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50fc26
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x5ee17c]
mov dl, 1
mov eax, dword [0x418c1c]
call fcn.00424200
call fcn.00406740
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50fc96
lea eax, [ebp - 4]
call fcn.00407044
ret

Function at 0x5330cc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, ebx
call fcn.0053317c
test eax, eax
je 0x533107
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.0053317c
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004071cc
jmp 0x533115
mov ecx, esi
mov edx, 0x533134
mov eax, ebx
call fcn.00533054
lea eax, [ebx + 0x1c]
mov edx, dword [esi]
call fcn.00407424
add esp, 0x200
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00407044
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
mov ebx, eax
test ebx, ebx
je 0x547856
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetKeyNameTextW
test eax, eax
je 0x54784f
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00407f5c
jmp 0x547856
mov eax, esi
call fcn.00407044
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x54ccb8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x54ce17
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x5ed2d0], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x4b885c]
call fcn.004b9894
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x54cded
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004b9940
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00407f5c
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x54ce30
call fcn.0040810c
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004b99a4
test al, al
je 0x54cdd7
lea ecx, [ebp - 4]
mov edx, 0x54cea4
mov eax, dword [ebp - 0xc]
call fcn.004b9db0
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00426474
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x54cdd7
xor edx, edx
push ebp
push 0x54cdd0
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x54cebc
mov eax, dword [ebp - 8]
push eax
call fcn.0040d904
test eax, eax
je 0x54cdb9
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x54cdb9
call fcn.0054cc44
test eax, eax
je 0x54cda9
mov eax, dword [ebx + 0x50]
jmp 0x54cdac
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x5ed2d0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54cdd7
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_2
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54cdf4
mov eax, dword [ebp - 0xc]
call fcn.0040548c
ret

Function at 0x54cf20
Capabilities:
Log keystrokes via polling

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