joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d70ec
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 0x4d733a
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.004d5a10
xor eax, eax
push ebp
push 0x4d7310
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.004d5fc0
test al, al
je 0x4d72f4
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0050f2a0
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jl 0x4d72f4
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.0050fdf8
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.004d5970
test al, al
je 0x4d72e8
mov eax, dword [ebp - 4]
call fcn.0050fdf8
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.0050fe48
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004d6a04
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4d72e8
xor eax, eax
push ebp
push 0x4d72e1
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.004d5a10
xor eax, eax
push ebp
push 0x4d72c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0050fdf8
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.0050fe48
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004d5a14
mov eax, dword [ebp - 4]
call fcn.0050fdf8
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.0050fe48
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004d6a04
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x4d72a0
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.004d6fb4
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.004d70ec
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d72a7
mov eax, dword [ebp - 0x24]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x4d7177
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7317
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.004d5a10
ret
Function at 0x4f350c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4f3565
test eax, edx
je 0x4f3568
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4f3523
movzx eax, word [eax]
sub eax, ecx
jmp 0x4f354a
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 0x4f354b
add ecx, 4
js 0x4f353b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4f3548
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4f354a
xor eax, eax
ret
test eax, eax
je 0x4f3574
test edx, edx
jne 0x4f3514
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4f4324
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.0050fdf8
mov edi, eax
push edi
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4f438e
test ah, 4
je 0x4f4387
test bl, bl
jne 0x4f434c
mov al, 1
jmp 0x4f43b5
test al, 0x10
je 0x4f4354
xor eax, eax
jmp 0x4f43b5
push 0
push 0
push 3
push 0
push 1
push connect
push edi
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x4f4378
push eax
call sub.KERNEL32.DLL_CloseHandle
mov al, 1
jmp 0x4f43b5
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4f43b5
test al, 0x10
sete al
jmp 0x4f43b5
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4f43af
cmp ebx, 3
je 0x4f43af
cmp ebx, 0x7b
je 0x4f43af
mov eax, esi
call fcn.004f42e4
test al, al
jne 0x4f43b3
xor eax, eax
jmp 0x4f43b5
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x4f7858
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 0x4f7891
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0050f2a0
jmp 0x4f789a
mov eax, ebx
mov edx, esi
call fcn.0050f4f8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4f78a4
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 0x4f78c6
movzx eax, word [esp]
jmp 0x4f78c8
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4f8584
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 0x4f86a9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004f8394
mov esi, eax
mov eax, dword [0x5fa014]
cmp byte [eax], 0
je 0x4f8651
mov eax, dword [0x5fa020]
call fcn.0050d104
call fcn.0050cd50
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 [0x4f855c]
call fcn.00510fc8
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 0x4f86c4
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x4f868d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5f9e74]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5fa314]
call fcn.005110bc
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 0x4f86b0
lea eax, [ebp - 4]
mov edx, dword [0x4f855c]
call fcn.00510fd4
ret

Function at 0x4f9704
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 0x4f97da
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0050f540
lea eax, [ebp - 4]
call fcn.0050f6a8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0050fdf8
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4f97c4
mov eax, ebx
call fcn.0050cb4c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4f97bd
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.0050fdf8
push eax
call sub.VERSION.DLL_GetFileVersionInfoW
test eax, eax
je 0x4f97a7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4f97ec
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.DLL_VerQueryValueW
test eax, eax
je 0x4f97a7
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 0x4f97c4
mov eax, dword [ebp - 0x10]
call fcn.0050cb68
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f97e1
lea eax, [ebp - 4]
call fcn.0050f138
ret
Function at 0x4fa1bc
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.0050f5e8
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00512a90
mov edi, eax
cmp edi, 0x104
jbe 0x4fa167
mov eax, edi
add eax, eax
call fcn.0050cb4c
mov esi, eax
jmp 0x4fa169
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00512a90
push esi
call sub.USER32.DLL_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4fa1a2
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 0x4fa18c
mov eax, esp
cmp esi, eax
je 0x4fa1af
mov eax, esi
call fcn.0050cb68
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 0x4fa1e8
cmp bl, 0
je 0x4fa1e4
cmp bl, 0x41
jl 0x4fa1df
cmp bl, 0x5a
jg 0x4fa1df
or bl, 0x20
xor al, bl
inc esi
jmp 0x4fa1c3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4fa128

Function at 0x4faa1c
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
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0050fe9c
add esp, 0x800
pop ebx
ret

Function at 0x50cf5c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0050f138
test esi, esi
jne 0x50cf92
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.0050f2a0
jmp 0x50cfb0
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0050cea0
mov edi, eax
test esi, esi
je 0x50cfb0
cmp dword [ebx], 0
je 0x50cfb0
dec esi
jmp 0x50cf99
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x50df6c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.0050e358
mov byte [esp], al
cmp byte [esp], 0
jne 0x50e0f5
test edi, edi
je 0x50e0f5
mov byte [esp + 1], 0
test ebp, ebp
jle 0x50e02c
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x50e007
cmp edi, 0xffffffff
je 0x50dfcb
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x50dfcb
mov byte [esp], 0
jmp 0x50e0f5
mov ebx, dword [esi]
cmp ebx, 1
jg 0x50e007
test ebx, ebx
jne 0x50e000
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.0050af0c
test eax, eax
jne 0x50e000
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x50e0f5
pause
dec ebp
test ebp, ebp
jg 0x50dfb0
cmp edi, 0xffffffff
je 0x50e02c
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x50e02a
mov byte [esp], 0
jmp 0x50e0f5
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x50df7a
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.0050af0c
cmp ebx, eax
jne 0x50e02c
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0050e168
mov edx, eax
mov ebx, dword [0x5fdc50]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x50e093
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x50e091
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x50e093
xor edi, edi
cmp byte [esp], 0
je 0x50e0bc
mov ebx, dword [esi]
test bl, 1
jne 0x50e0d5
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.0050af0c
cmp ebx, eax
jne 0x50e099
mov byte [esp + 1], 1
jmp 0x50e0d5
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.0050af0c
cmp ebx, eax
jne 0x50e0bc
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x50e046
cmp byte [esp], 0
je 0x50e0f5
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x50ed9c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5fd3d8], 0
je 0x50edfd
cmp word [0x5fd6b4], 0xd7b2
jne 0x50edc5
cmp dword [0x5fd6bc], 0
jbe 0x50edc5
mov eax, 0x5fd6b0
call dword [0x5fd6cc]
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 0x50ee28
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x5f3768], 0
jne 0x50ee19
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x50eff4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x5f3738], 0
je 0x50f01f
mov edx, edi
mov eax, esi
call dword [0x5f3738]
mov ebx, eax
jmp 0x50f030
mov eax, 8
call fcn.0050cb4c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5fd3d9], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x50efbc
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CreateThread
mov esi, eax
test esi, esi
jne 0x50f065
mov edx, 8
mov eax, ebx
call fcn.0050cb68
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x511578
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x5116dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0050f138
cmp si, word [0x5f3f28]
jb 0x511610
cmp si, word [0x5f4128]
ja 0x511610
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x511610
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5f3f28]
jae 0x5115ea
mov edi, ebx
dec edi
jmp 0x51160b
cmp si, word [ebx*8 + 0x5f3f28]
jbe 0x5115fa
inc ebx
mov dword [ebp - 8], ebx
jmp 0x51160b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5f3f2c]
call fcn.00511488
jmp 0x511610
cmp edi, dword [ebp - 8]
jae 0x5115d4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x5116bf
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x5116bf
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0050fe9c
push dword [ebp - 0x160]
push 0x5116f8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0050fe9c
push dword [ebp - 0x164]
push 0x511708
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0050fe9c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.005100d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5116e4
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0050f198
ret
Function at 0x511890
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 0x511993
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5ffee1
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x5ffefa]
jne 0x5118dc
mov eax, esi
mov edx, 0x5ffefc
mov ecx, 0x55
call fcn.0050fe9c
push 0x5ffee1
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x51197d
push 0x5ffee1
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.0050f138
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x51194b
cmp byte [0x5ffee0], 0
je 0x511910
mov edx, esi
mov eax, ebx
call fcn.00511774
jmp 0x51194b
mov edx, esi
mov eax, ebx
call fcn.00511578
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x51194b
cmp dword [esi], 0
je 0x511934
mov eax, esi
mov edx, 0x5119ac
call fcn.0050fff4
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00511578
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0050fff4
push 0x5ffee1
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x5ffefa], bx
push 0xaa
mov eax, dword [esi]
call fcn.0050fdf8
push eax
push 0x5ffefc
call sub.KERNEL32.DLL_lstrcpynW
push 0x5ffee1
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51199a
lea eax, [ebp - 4]
call fcn.0050f138
ret
Function at 0x511bc8
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.0050f21c
xor eax, eax
push ebp
push 0x511ded
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x511c08
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x511c22
push 0x105
mov eax, dword [ebp - 4]
call fcn.0050fdf8
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x511dd7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x511dfc
push connect
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x511cf1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x511dfc
push connect
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x511cf1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x511e38
push connect
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x511cf1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x511e38
push connect
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x511cf1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x511e6c
push connect
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x511cf1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x511ea0
push connect
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x511dd7
xor eax, eax
push ebp
push 0x511dd0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.005119d4
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 0x511d60
mov eax, dword [ebp - 0x10]
call fcn.0050cb4c
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.0050fe48
jmp 0x511dab
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x511ee0
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x511dab
mov eax, dword [ebp - 0x10]
call fcn.0050cb4c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x511ee0
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0050fe48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x511dd7
cmp dword [ebp - 8], 0
je 0x511dc6
mov eax, dword [ebp - 8]
call fcn.0050cb68
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 0x511df4
lea eax, [ebp - 4]
call fcn.0050f138
ret
Function at 0x51212c
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.0050f21c
xor eax, eax
push ebp
push 0x5121ec
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
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.0050fe9c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0051004c
mov eax, dword [ebx]
call fcn.00511ff4
test al, al
jne 0x5121c9
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0050fe9c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0051004c
mov eax, dword [ebx]
call fcn.00511ff4
test al, al
jne 0x5121c9
mov eax, ebx
call fcn.0050f138
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5121f3
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0050f198
lea eax, [ebp - 4]
call fcn.0050f138
ret

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

Disassembly:
sub dword [0x5fdc6c], 1
jae 0x512c39
call fcn.00509930
call fcn.0050c928
call fcn.00511320
mov byte [0x5f3758], 2
mov dword [0x5fd394], 0x5b0c54
mov dword [0x5fd398], 0x5b0c72
mov byte [0x5fd3da], 2
call fcn.00512ab0
mov dword [0x5fd3dc], eax
mov dword [0x5fd380], 0x510a4c
call fcn.0050d658
mov word [0x5fd3e4], 0xd7b0
mov word [0x5fd6b4], 0xd7b0
mov word [0x5fd984], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0x5fd3cc], eax
call fcn.0050af1c
mov dword [0x5fd3c8], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x5fdc54], eax
mov dword [0x5fdc58], 0x4b0
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x5fd3c0], eax
call fcn.00512ac4
ret

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

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0050f138
push 0
mov eax, esi
movzx eax, al
push eax
call sub.USER32.DLL_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x525c4d
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.0050fe9c
add esp, 0x200
pop esi
pop ebx
ret