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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x44148e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
call fcn.0043faac
xor eax, eax
push ebp
push 0x441464
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0044005c
test al, al
je 0x441448
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00463c0c
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jl 0x441448
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00463b5c
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0043fa0c
test al, al
je 0x44143c
mov eax, dword [ebp - 4]
call fcn.00463b5c
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.00463c7c
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00440b58
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x44143c
xor eax, eax
push ebp
push 0x441435
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0xc]
call fcn.0043faac
xor eax, eax
push ebp
push 0x441417
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00463b5c
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.00463c7c
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0043fab0
mov eax, dword [ebp - 4]
call fcn.00463b5c
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.00463c7c
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00440b58
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x4413f4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.00441108
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.00441240
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4413fb
mov eax, dword [ebp - 0x24]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x4412cb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44146b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.0043faac
ret
Function at 0x4490d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x449179
test eax, edx
je 0x44917c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x4490f9
push edx
mov edx, eax
mov eax, esp
call fcn.00463cec
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x44910f
push eax
lea eax, [esp + 8]
call fcn.00463cec
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x44911e
movzx eax, word [eax]
sub eax, ecx
jmp 0x449145
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 0x44915f
add ecx, 4
js 0x449136
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x44915c
push eax
mov eax, ecx
mov edx, 2
call fcn.004632d8
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x449143
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x449145
xor eax, eax
ret
test eax, eax
je 0x44918c
test edx, edx
jne 0x4490e0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x44a4b4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00463b5c
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x44a4d2
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x44a4f3
cmp ebx, 3
je 0x44a4f3
cmp ebx, 0x7b
je 0x44a4f3
mov eax, esi
call fcn.0044a474
test al, al
jne 0x44a4f7
xor eax, eax
jmp 0x44a4f9
mov al, 1
pop esi
pop ebx
ret

Function at 0x44a4fc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00463b5c
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x44a515
test al, 0x10
jne 0x44a519
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x44e32c
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 0x100
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x44e365
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00463c0c
jmp 0x44e36e
mov eax, ebx
mov edx, esi
call fcn.00463ad0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x44e378
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 0x44e39a
movzx eax, word [esp]
jmp 0x44e39c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x44eb2c
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 0x44ec51
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0044e93c
mov esi, eax
mov eax, dword [0x526ff4]
cmp byte [eax], 0
je 0x44ebf9
mov eax, dword [0x526ff8]
call fcn.004619bc
call fcn.00461648
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 [0x44eb04]
call fcn.00465364
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 0x44ec6c
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x44ec35
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x526e60]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x527380]
call fcn.00465458
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 0x44ec58
lea eax, [ebp - 4]
mov edx, dword [0x44eb04]
call fcn.00465370
ret

Function at 0x44fe18
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 0x44feee
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00463b24
lea eax, [ebp - 4]
call fcn.004644d4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00463b5c
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x44fed8
mov eax, ebx
call fcn.00461458
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x44fed1
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.00463b5c
push eax
call sub.VERSION.DLL_GetFileVersionInfoW
test eax, eax
je 0x44febb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x44ff00
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.DLL_VerQueryValueW
test eax, eax
je 0x44febb
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 0x44fed8
mov eax, dword [ebp - 0x10]
call fcn.00461474
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44fef5
lea eax, [ebp - 4]
call fcn.00463ac0
ret
Function at 0x4511d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00463608
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_MultiByteToWideChar
mov edi, eax
cmp edi, 0x104
jbe 0x45117a
mov eax, edi
add eax, eax
call fcn.00461458
mov esi, eax
jmp 0x45117c
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.KERNEL32.DLL_MultiByteToWideChar
push edi
push esi
call sub.USER32.DLL_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4511b5
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x45119f
mov eax, esp
cmp esi, eax
je 0x4511c2
mov eax, esi
call fcn.00461474
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x4511fc
cmp bl, 0
je 0x4511f8
cmp bl, 0x41
jl 0x4511f3
cmp bl, 0x5a
jg 0x4511f3
or bl, 0x20
xor al, bl
inc esi
jmp 0x4511d7
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x45113c

Function at 0x461854
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00463ad0
test esi, esi
jne 0x46188c
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00463c0c
jmp 0x4618aa
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00461798
mov edi, eax
test esi, esi
je 0x4618aa
cmp dword [ebx], 0
je 0x4618aa
dec esi
jmp 0x461893
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x46304c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x529a08], 0
je 0x4630ad
cmp word [0x529ce4], 0xd7b2
jne 0x463075
cmp dword [0x529cec], 0
jbe 0x463075
mov eax, 0x529ce0
call dword [0x529cfc]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4630d8
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x51d2ac], 0
jne 0x4630c9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret

Function at 0x463238
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x51d27c], 0
je 0x46325e
mov edx, esi
mov eax, ebx
call dword [0x51d27c]
jmp 0x46326d
mov eax, 8
call fcn.00461458
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x529a09], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x463200
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x465968
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x465acf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00463ad0
cmp si, word [0x51da5c]
jb 0x465a02
cmp si, word [0x51dc5c]
ja 0x465a02
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x465a02
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x51da5c]
jae 0x4659dc
mov edi, ebx
dec edi
jmp 0x4659fd
cmp si, word [ebx*8 + 0x51da5c]
jbe 0x4659ec
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4659fd
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x51da60]
call fcn.00465878
jmp 0x465a02
cmp edi, dword [ebp - 0xc]
jae 0x4659c6
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x465ab1
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x465ab1
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00463cd0
push dword [ebp - 0x164]
push 0x465aec
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00463cd0
push dword [ebp - 0x168]
push 0x465afc
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00463cd0
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00464088
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465ad6
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00463ac8
ret
Function at 0x465c88
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x465d8d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x52c51c
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x52c534]
jne 0x465cd4
mov eax, esi
mov edx, 0x52c538
mov ecx, 0x55
call fcn.00463cd0
push 0x52c51c
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x465d77
push 0x52c51c
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00463ad0
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x465d45
cmp byte [0x52c518], 0
je 0x465d0a
mov edx, esi
mov eax, ebx
call fcn.00465b68
jmp 0x465d45
mov edx, esi
mov eax, ebx
call fcn.00465968
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x465d45
cmp dword [esi], 0
je 0x465d2e
mov eax, esi
mov edx, 0x465da8
call fcn.00463ee4
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00465968
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00463ee4
push 0x52c51c
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x52c534], bx
push 0xaa
mov eax, dword [esi]
call fcn.00463b5c
push eax
push 0x52c538
call sub.KERNEL32.DLL_lstrcpynW
push 0x52c51c
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465d94
lea eax, [ebp - 4]
call fcn.00463ac0
ret
Function at 0x465fcc
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.00463ab8
xor eax, eax
push ebp
push 0x4661b1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x46600c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x466026
push 0x105
mov eax, dword [ebp - 4]
call fcn.00463b5c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x46619b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4661c0
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4660b5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4661c0
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4660b5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4661f4
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4660b5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x466228
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x46619b
xor eax, eax
push ebp
push 0x466194
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00465dd0
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 0x466124
mov eax, dword [ebp - 0x10]
call fcn.00461458
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.00463c7c
jmp 0x46616f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x466268
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x46616f
mov eax, dword [ebp - 0x10]
call fcn.00461458
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x466268
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00463c7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46619b
cmp dword [ebp - 8], 0
je 0x46618a
mov eax, dword [ebp - 8]
call fcn.00461474
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 0x4661b8
lea eax, [ebp - 4]
call fcn.00463ac0
ret
Function at 0x46647c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00463ab8
mov eax, dword [ebp - 0x21c]
call fcn.00463ab8
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x46661b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00463ad0
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00463b5c
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.KERNEL32.DLL_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x46651c
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x46652e
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x466519
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x4665e7
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x466557
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00465fcc
cmp dword [ebp - 0x220], 0
je 0x46658f
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00466370
pop ecx
mov ebx, eax
jmp 0x4665e7
push ebp
call sub.KERNEL32.DLL_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00465c88
mov eax, dword [ebp - 0x224]
call fcn.00466370
pop ecx
mov ebx, eax
test bl, bl
jne 0x4665da
cmp byte [0x52c518], 0
jne 0x4665da
push ebp
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00465c88
mov eax, dword [ebp - 0x228]
call fcn.00466370
pop ecx
mov ebx, eax
test bl, bl
jne 0x4665e7
push ebp
call fcn.00466420
pop ecx
mov ebx, eax
test bl, bl
je 0x4665fd
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00463cd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466622
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00463ac8
ret

Function at 0x466da4
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 0x466e90
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x52a2a0], 1
jae 0x466f39
call fcn.0045e3f4
call fcn.00461234
call fcn.004656bc
mov byte [0x51d29c], 2
mov dword [0x5299c4], 0x5138d4
mov dword [0x5299c8], 0x5138ec
mov byte [0x529a0a], 2
call fcn.00466da4
mov dword [0x529a0c], eax
mov dword [0x5299b0], 0x464ce8
call fcn.00461f9c
mov word [0x529a14], 0xd7b0
mov word [0x529ce4], 0xd7b0
mov word [0x529fb4], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0x5299fc], eax
call fcn.0045f82c
mov dword [0x5299f8], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x52a288], eax
mov dword [0x52a28c], 0x4b0
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x5299f0], eax
call fcn.00466db8
ret
Function at 0x47f090
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00463ad0
push 0
mov eax, esi
movzx eax, al
push eax
call sub.USER32.DLL_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x47f0d7
push 0x100
lea edx, [esp + 4]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, 0x100
call fcn.00463cd0
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x4848d4
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 0x484a0d
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.USER32.DLL_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x43e75c]
call fcn.0043f960
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4849e3
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, SysStringLen
mov eax, dword [ebp - 0xc]
call fcn.0043fa48
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00463cd0
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x484a28
call fcn.00463fa4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0043fcc4
test al, al
je 0x4849cd
lea ecx, [ebp - 4]
mov edx, 0x484a9c
mov eax, dword [ebp - 0xc]
call fcn.004405c0
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.004519c0
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4849c6
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x484ab4
mov eax, dword [ebp - 8]
push eax
call fcn.0041f110
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x51e390]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4849cd
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FreeLibrary
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4849ea
mov eax, dword [ebp - 0xc]
call fcn.004620e8
ret

Function at 0x484b18
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 0x484b5f
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x484b42
add bx, 0x2000
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x484b53
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x484b5f
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x48c1e0
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 0x48c1e6
ret