joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c8e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00408898
xor eax, eax
push ebp
push 0x40cb05
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c920
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c93a
mov eax, dword [ebp - 4]
call fcn.00409868
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c114
cmp word [ebp - 0x21a], 0
je 0x40caef
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cb14
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ca09
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cb14
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ca09
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cb50
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ca09
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cb50
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ca09
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cb84
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ca09
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cbb8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40caef
xor eax, eax
push ebp
push 0x40cae8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c6f0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40ca78
mov eax, dword [ebp - 0x10]
call fcn.004054b4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004098d0
jmp 0x40cac3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40cbf8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40cac3
mov eax, dword [ebp - 0x10]
call fcn.004054b4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40cbf8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004098d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40caef
cmp dword [ebp - 8], 0
je 0x40cade
mov eax, dword [ebp - 8]
call fcn.004054d0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb0c
lea eax, [ebp - 4]
call fcn.004087b4
ret
Function at 0x40ce0c
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.00408898
xor eax, eax
push ebp
push 0x40cecc
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.00409924
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409ad4
mov eax, dword [ebx]
call fcn.0040ccbc
test al, al
jne 0x40cea9
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409924
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409ad4
mov eax, dword [ebx]
call fcn.0040ccbc
test al, al
jne 0x40cea9
mov eax, ebx
call fcn.004087b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ced3
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00408814
lea eax, [ebp - 4]
call fcn.004087b4
ret

Function at 0x40e9dc
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x41416c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00414158
add esp, 0x208
pop ebx
ret

Function at 0x420d88
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x420de1
test eax, edx
je 0x420de4
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x420d9f
movzx eax, word [eax]
sub eax, ecx
jmp 0x420dc6
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 0x420dc7
add ecx, 4
js 0x420db7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x420dc4
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x420dc6
xor eax, eax
ret
test eax, eax
je 0x420df0
test edx, edx
jne 0x420d90
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x42231c
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 0x422349
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x42241c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.00409868
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x422486
test ah, 4
je 0x42247f
test bl, bl
jne 0x422444
mov al, 1
jmp 0x4224ad
test al, 0x10
je 0x42244c
xor eax, eax
jmp 0x4224ad
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x422470
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x4224ad
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4224ad
test al, 0x10
sete al
jmp 0x4224ad
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4224a7
cmp ebx, 3
je 0x4224a7
cmp ebx, 0x7b
je 0x4224a7
mov eax, esi
call fcn.004223dc
test al, al
jne 0x4224ab
xor eax, eax
jmp 0x4224ad
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x4224b4
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.00409868
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x42255b
test esi, 0x400
jne 0x4224f0
test esi, 0x10
setne bl
jmp 0x42258b
cmp byte [esp], 0
je 0x422524
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x42258b
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x42258b
test esi, 0x10
je 0x422530
mov bl, 1
jmp 0x42258b
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x422557
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x42258b
mov bl, 1
jmp 0x42258b
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x422585
cmp eax, 3
je 0x422585
cmp eax, 0xa1
je 0x422585
cmp eax, 0x7b
je 0x422585
cmp eax, 0x35
je 0x422585
cmp eax, 0x15
je 0x422585
cmp eax, 0x43
jne 0x422589
xor ebx, ebx
jmp 0x42258b
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x422594
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.00409868
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4225e9
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4225e3
test ah, 4
je 0x4225e3
test al, 0x10
je 0x4225e3
mov eax, esi
call fcn.00409868
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4225e9
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42717c
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
test eax, eax
jle 0x4271b5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040893c
jmp 0x4271be
mov eax, ebx
mov edx, esi
call fcn.00408b94
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4271c8
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
test eax, eax
jle 0x4271ea
movzx eax, word [esp]
jmp 0x4271ec
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x42823c
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 0x428361
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00428044
mov esi, eax
mov eax, dword [0x7b1070]
cmp byte [eax], 0
je 0x428309
mov eax, dword [0x7b0b20]
call fcn.00405cd8
call fcn.00405628
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
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x42820c]
call fcn.0040b998
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
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x42837c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x428345
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x7b0a64]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x7b5634]
call fcn.0040bdb8
push eax
call sub.user32.dll_LoadStringW
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 0x428368
lea eax, [ebp - 4]
mov edx, dword [0x42820c]
call fcn.0040babc
ret
Function at 0x429124
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 0x4291fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00408bdc
lea eax, [ebp - 4]
call fcn.00408d70
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00409868
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4291e4
mov eax, ebx
call fcn.004054b4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4291dd
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.00409868
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4291c7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42920c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4291c7
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 0x4291e4
mov eax, dword [ebp - 0x10]
call fcn.004054d0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429201
lea eax, [ebp - 4]
call fcn.004087b4
ret

Function at 0x429210
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x429310
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00408bdc
lea eax, [ebp - 4]
call fcn.00408d70
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00409868
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4292fa
mov eax, ebx
call fcn.004054b4
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x4292f3
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00409868
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4292dd
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x429324
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4292dd
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4292fa
mov eax, dword [ebp - 0x10]
call fcn.004054d0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429317
lea eax, [ebp - 4]
call fcn.004087b4
ret
Function at 0x4702e0
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 + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x47032e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 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.0046fd8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x470347
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x470350
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.0046fd8c
dec esi
jne 0x470372
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret

Function at 0x472a3c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x7b79cc
cmp dword [edi], 0
jne 0x472ab8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x7b79c8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x7a86f4
mov ecx, 2
call fcn.004056f4
mov edx, 0x472a14
lea eax, [esi + 5]
call fcn.00472a34
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00472a34
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 0x472a8d
mov dword [0x7b79c8], 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 0x4b5760
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x4b5768
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4cc9fc
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.00409868
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.004cc4d0
test al, al
jne 0x4cca5d
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x7b1350]
mov dl, 1
mov eax, dword [0x4cb204]
call fcn.004284a4
call fcn.00407e74
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004cc438
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 0x4d5c94
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 0x4d5c9a
ret
Function at 0x4f3a7c
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, 0x7ab7b8
test edx, edx
jne 0x4f3a9b
xor eax, eax
jmp 0x4f3bb9
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x4f3ab8
push esi
push edx
push eax
call fcn.004f3bdc
add esp, 0xc
jmp 0x4f3bb9
push esi
push edx
push eax
call fcn.004f3e9c
add esp, 0xc
jmp 0x4f3bb9
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x501c20
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 [0x7b8050], 0
je 0x501d61
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x7b0f6c]
mov edx, dword [edx]
xor al, byte [edx + 0xd4]
je 0x501d61
mov eax, dword [0x7b8054]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x7b8050]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x501d30
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x7b8050]
call fcn.0045d504
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x501d28
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x215], 0
je 0x501d28
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x78]
test al, al
je 0x501d28
mov eax, dword [ebp - 0x14]
call fcn.0050dba0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x501d28
push ebp
call fcn.00501bdc
pop ecx
test al, al
jne 0x501d28
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb8
call fcn.00406d40
test al, al
je 0x501d28
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, 0xffb9
call fcn.00406d40
cmp byte [ebp - 1], 0
je 0x501d28
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.00410bd0
test al, al
je 0x501d28
mov edx, dword [ebp - 0x14]
mov eax, dword [0x7b8054]
call fcn.0050134c
inc edi
dec ebx
jne 0x501c85
mov eax, dword [0x7b8054]
cmp dword [eax + 8], 0
jle 0x501d48
mov eax, dword [0x7b8054]
call fcn.00501400
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x501d61
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00501a44
pop ecx
test al, al
jne 0x501d61
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 0x50a4b0
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.00410e78
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.005042e4
test ebx, ebx
jne 0x50a503
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0050a328
mov ebx, eax
test ebx, ebx
je 0x50a5f9
cmp esi, ebx
je 0x50a52c
mov eax, dword [esp]
sub eax, dword [ebx + 0x50]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x54]
mov dword [esp + 0x118], eax
jmp 0x50a541
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 0x50a579
add eax, 0xffffff5f
sub eax, 2
jb 0x50a591
dec eax
sub eax, 2
jb 0x50a5a5
dec eax
sub eax, 2
jb 0x50a59b
jmp 0x50a5af
add eax, 0xfffffdff
sub eax, 2
jb 0x50a591
dec eax
sub eax, 2
jb 0x50a5a5
dec eax
sub eax, 2
jb 0x50a59b
jmp 0x50a5af
mov byte [esp + 0x120], 0
jmp 0x50a5b7
mov byte [esp + 0x120], 2
jmp 0x50a5b7
mov byte [esp + 0x120], 1
jmp 0x50a5b7
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.005ea6e4
mov esi, eax
call fcn.00500cec
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.00505d8c
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x50a5fb
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret