joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477818
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 0x477a66
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.0047613c
xor eax, eax
push ebp
push 0x477a3c
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.004766ec
test al, al
je 0x477a20
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.004c13ec
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jl 0x477a20
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.004c2244
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.0047609c
test al, al
je 0x477a14
mov eax, dword [ebp - 4]
call fcn.004c2244
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.004c2294
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00477130
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x477a14
xor eax, eax
push ebp
push 0x477a0d
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.0047613c
xor eax, eax
push ebp
push 0x4779ef
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004c2244
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.004c2294
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00476140
mov eax, dword [ebp - 4]
call fcn.004c2244
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.004c2294
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00477130
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x4779cc
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.004776e0
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.00477818
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4779d3
mov eax, dword [ebp - 0x24]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x4778a3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477a43
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.0047613c
ret
Function at 0x48d574
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0x48d610
push 0
mov eax, ebx
call fcn.004c2244
push eax
mov eax, dword [ebp + 8]
push eax
call sub.ADVAPI32.DLL_RegCreateKeyExW
mov ebx, eax
test ebx, ebx
jne 0x48d5eb
mov ebx, esi
test ebx, ebx
je 0x48d5bd
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
mov eax, ebx
add eax, eax
push eax
mov eax, esi
call fcn.004c2244
push eax
push 1
push 0
mov eax, edi
call fcn.004c2244
push eax
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExW
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
test ebx, ebx
je 0x48d606
mov ecx, dword [0x7e92d8]
mov dl, 1
mov eax, dword [0x48af04]
call fcn.004a8fd8
call fcn.004c09e0
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x4a2a84
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4a2add
test eax, edx
je 0x4a2ae0
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4a2a9b
movzx eax, word [eax]
sub eax, ecx
jmp 0x4a2ac2
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 0x4a2ac3
add ecx, 4
js 0x4a2ab3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4a2ac0
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4a2ac2
xor eax, eax
ret
test eax, eax
je 0x4a2aec
test edx, edx
jne 0x4a2a8c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4a3c5c
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.004c2244
mov edi, eax
push edi
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4a3cc6
test ah, 4
je 0x4a3cbf
test bl, bl
jne 0x4a3c84
mov al, 1
jmp 0x4a3ced
test al, 0x10
je 0x4a3c8c
xor eax, eax
jmp 0x4a3ced
push 0
push 0
push 3
push 0
push 1
push closesocket
push edi
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x4a3cb0
push eax
call sub.KERNEL32.DLL_CloseHandle
mov al, 1
jmp 0x4a3ced
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4a3ced
test al, 0x10
sete al
jmp 0x4a3ced
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4a3ce7
cmp ebx, 3
je 0x4a3ce7
cmp ebx, 0x7b
je 0x4a3ce7
mov eax, esi
call fcn.004a3c1c
test al, al
jne 0x4a3ceb
xor eax, eax
jmp 0x4a3ced
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x4a3cf4
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.004c2244
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x4a3d9b
test esi, 0x400
jne 0x4a3d30
test esi, 0x10
setne bl
jmp 0x4a3db5
cmp byte [esp], 0
je 0x4a3d64
push 0
push 0x2000000
push 3
push 0
push 1
push closesocket
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x4a3db5
push eax
call sub.KERNEL32.DLL_CloseHandle
test esi, 0x10
setne bl
jmp 0x4a3db5
test esi, 0x10
je 0x4a3d70
mov bl, 1
jmp 0x4a3db5
push 0
push 0x2000000
push 3
push 0
push 1
push closesocket
push ebp
call sub.KERNEL32.DLL_CreateFileW
cmp eax, 0xffffffff
je 0x4a3d97
push eax
call sub.KERNEL32.DLL_CloseHandle
xor ebx, ebx
jmp 0x4a3db5
mov bl, 1
jmp 0x4a3db5
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x4a3daf
cmp eax, 3
je 0x4a3daf
cmp eax, 0x7b
jne 0x4a3db3
xor ebx, ebx
jmp 0x4a3db5
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4a7ffc
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 0x4a8035
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004c13ec
jmp 0x4a803e
mov eax, ebx
mov edx, esi
call fcn.004c1644
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4a8048
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 0x4a806a
movzx eax, word [esp]
jmp 0x4a806c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4a8d28
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 0x4a8e4d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004a8b38
mov esi, eax
mov eax, dword [0x7e8f14]
cmp byte [eax], 0
je 0x4a8df5
mov eax, dword [0x7e8f1c]
call fcn.004beca8
call fcn.004be55c
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 [0x4a8d00]
call fcn.004c3884
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 0x4a8e68
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x4a8e31
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x7e8d78]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x7e9678]
call fcn.004c3a90
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 0x4a8e54
lea eax, [ebp - 4]
mov edx, dword [0x4a8d00]
call fcn.004c39a8
ret

Function at 0x4a9ed4
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 0x4a9faa
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004c168c
lea eax, [ebp - 4]
call fcn.004c183c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004c2244
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4a9f94
mov eax, ebx
call fcn.004be358
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4a9f8d
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.004c2244
push eax
call sub.VERSION.DLL_GetFileVersionInfoW
test eax, eax
je 0x4a9f77
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4a9fbc
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.DLL_VerQueryValueW
test eax, eax
je 0x4a9f77
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 0x4a9f94
mov eax, dword [ebp - 0x10]
call fcn.004be374
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9fb1
lea eax, [ebp - 4]
call fcn.004c1264
ret
Function at 0x4aacd0
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.004c1748
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004c5538
mov edi, eax
cmp edi, 0x104
jbe 0x4aac7b
mov eax, edi
add eax, eax
call fcn.004be358
mov esi, eax
jmp 0x4aac7d
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004c5538
push esi
call sub.USER32.DLL_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4aacb6
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 0x4aaca0
mov eax, esp
cmp esi, eax
je 0x4aacc3
mov eax, esi
call fcn.004be374
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 0x4aacfc
cmp bl, 0
je 0x4aacf8
cmp bl, 0x41
jl 0x4aacf3
cmp bl, 0x5a
jg 0x4aacf3
or bl, 0x20
xor al, bl
inc esi
jmp 0x4aacd7
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4aac3c

Function at 0x4ab5d8
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.004c22e8
add esp, 0x800
pop ebx
ret

Function at 0x4be768
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.004c1264
test esi, esi
jne 0x4be79e
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.004c13ec
jmp 0x4be7bc
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004be6ac
mov edi, eax
test esi, esi
je 0x4be7bc
cmp dword [ebx], 0
je 0x4be7bc
dec esi
jmp 0x4be7a5
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x4bff78
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.004c0364
mov byte [esp], al
cmp byte [esp], 0
jne 0x4c0101
test edi, edi
je 0x4c0101
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4c0038
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x4c0013
cmp edi, 0xffffffff
je 0x4bffd7
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4bffd7
mov byte [esp], 0
jmp 0x4c0101
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4c0013
test ebx, ebx
jne 0x4c000c
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004bc718
test eax, eax
jne 0x4c000c
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4c0101
pause
dec ebp
test ebp, ebp
jg 0x4bffbc
cmp edi, 0xffffffff
je 0x4c0038
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4c0036
mov byte [esp], 0
jmp 0x4c0101
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4bff86
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004bc718
cmp ebx, eax
jne 0x4c0038
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004c0174
mov edx, eax
mov ebx, dword [0x7ecdd8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4c009f
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4c009d
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4c009f
xor edi, edi
cmp byte [esp], 0
je 0x4c00c8
mov ebx, dword [esi]
test bl, 1
jne 0x4c00e1
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004bc718
cmp ebx, eax
jne 0x4c00a5
mov byte [esp + 1], 1
jmp 0x4c00e1
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004bc718
cmp ebx, eax
jne 0x4c00c8
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4c0052
cmp byte [esp], 0
je 0x4c0101
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 0x4c0ec8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x7ec560], 0
je 0x4c0f29
cmp word [0x7ec83c], 0xd7b2
jne 0x4c0ef1
cmp dword [0x7ec844], 0
jbe 0x4c0ef1
mov eax, 0x7ec838
call dword [0x7ec854]
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 0x4c0f54
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x7debd8], 0
jne 0x4c0f45
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x4c1120
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 [0x7deba4], 0
je 0x4c114b
mov edx, edi
mov eax, esi
call dword [0x7deba4]
mov ebx, eax
jmp 0x4c115c
mov eax, 8
call fcn.004be358
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x7ec561], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4c10e8
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 0x4c1191
mov edx, 8
mov eax, ebx
call fcn.004be374
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x4c3f4c
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 0x4c40b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004c1264
cmp si, word [0x7df39c]
jb 0x4c3fe4
cmp si, word [0x7df59c]
ja 0x4c3fe4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4c3fe4
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x7df39c]
jae 0x4c3fbe
mov edi, ebx
dec edi
jmp 0x4c3fdf
cmp si, word [ebx*8 + 0x7df39c]
jbe 0x4c3fce
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4c3fdf
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x7df3a0]
call fcn.004c3e5c
jmp 0x4c3fe4
cmp edi, dword [ebp - 8]
jae 0x4c3fa8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4c4093
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x4c4093
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.004c22e8
push dword [ebp - 0x160]
push 0x4c40cc
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004c22e8
push dword [ebp - 0x164]
push 0x4c40dc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004c22e8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004c2520
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c40b8
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004c12c4
ret
Function at 0x4c4264
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 0x4c4367
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x7ef069
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x7ef082]
jne 0x4c42b0
mov eax, esi
mov edx, 0x7ef084
mov ecx, 0x55
call fcn.004c22e8
push 0x7ef069
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x4c4351
push 0x7ef069
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.004c1264
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x4c431f
cmp byte [0x7ef068], 0
je 0x4c42e4
mov edx, esi
mov eax, ebx
call fcn.004c4148
jmp 0x4c431f
mov edx, esi
mov eax, ebx
call fcn.004c3f4c
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4c431f
cmp dword [esi], 0
je 0x4c4308
mov eax, esi
mov edx, 0x4c4380
call fcn.004c2440
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004c3f4c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004c2440
push 0x7ef069
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x7ef082], bx
push 0xaa
mov eax, dword [esi]
call fcn.004c2244
push eax
push 0x7ef084
call sub.KERNEL32.DLL_lstrcpynW
push 0x7ef069
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c436e
lea eax, [ebp - 4]
call fcn.004c1264
ret
Function at 0x4c459c
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.004c1348
xor eax, eax
push ebp
push 0x4c47c1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4c45dc
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x4c45f6
push 0x105
mov eax, dword [ebp - 4]
call fcn.004c2244
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4c47ab
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4c47d0
push reloc.WSOCK32.DLL_accept
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4c46c5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4c47d0
push reloc.WSOCK32.DLL_bind
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4c46c5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4c480c
push reloc.WSOCK32.DLL_accept
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4c46c5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4c480c
push reloc.WSOCK32.DLL_bind
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4c46c5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4c4840
push reloc.WSOCK32.DLL_accept
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x4c46c5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4c4874
push reloc.WSOCK32.DLL_accept
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x4c47ab
xor eax, eax
push ebp
push 0x4c47a4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004c43a8
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 0x4c4734
mov eax, dword [ebp - 0x10]
call fcn.004be358
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.004c2294
jmp 0x4c477f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4c48b4
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x4c477f
mov eax, dword [ebp - 0x10]
call fcn.004be358
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4c48b4
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004c2294
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c47ab
cmp dword [ebp - 8], 0
je 0x4c479a
mov eax, dword [ebp - 8]
call fcn.004be374
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 0x4c47c8
lea eax, [ebp - 4]
call fcn.004c1264
ret
Function at 0x4c4b00
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.004c1348
xor eax, eax
push ebp
push 0x4c4bc0
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.004c22e8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004c2498
mov eax, dword [ebx]
call fcn.004c49c8
test al, al
jne 0x4c4b9d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004c22e8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004c2498
mov eax, dword [ebx]
call fcn.004c49c8
test al, al
jne 0x4c4b9d
mov eax, ebx
call fcn.004c1264
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c4bc7
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004c12c4
lea eax, [ebp - 4]
call fcn.004c1264
ret
Function at 0x4dbc0c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
xor ebx, ebx
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4dbc20
mov ebx, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4dbc2f
or ebx, 2
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4dbc3e
or ebx, 4
mov eax, ebx
pop ebx
ret