joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b8cf8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x8c], 0
jne 0x5b8d72
mov eax, dword [ebx + 8]
call fcn.00529c28
mov ecx, eax
mov dl, 1
mov eax, dword [0x535e08]
call fcn.00523f54
mov esi, eax
mov dword [ebx + 0x8c], esi
xor edx, edx
mov eax, esi
call fcn.0053a6dc
mov dword [esi + 0x2bc], ebx
mov dword [esi + 0x2b8], 0x5b85f0
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x8c]
call fcn.00529c28
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x8c]
call fcn.00529c28
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x9c], 0
jne 0x5b8de8
mov eax, dword [ebx + 8]
call fcn.00529c28
mov ecx, eax
mov dl, 1
mov eax, dword [0x535e08]
call fcn.00523f54
mov esi, eax
mov dword [ebx + 0x9c], esi
mov dl, 1
mov eax, esi
call fcn.0053a6dc
mov dword [esi + 0x2bc], ebx
mov dword [esi + 0x2b8], 0x5b863c
push 8
push 0
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x9c]
call fcn.00529c28
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x9c]
call fcn.00529c28
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x94], 0
jne 0x5b8e54
mov eax, dword [ebx + 8]
call fcn.00529c28
mov ecx, eax
mov dl, 1
mov eax, dword [0x536878]
call fcn.00523f54
mov esi, eax
mov dword [ebx + 0x94], esi
mov eax, esi
mov byte [eax + 0x290], 1
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x94]
call fcn.00529c28
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x94]
call fcn.00529c28
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x5c2808
Capabilities:
Log keystrokes

Disassembly:
push ebx
add esp, 0xfffffff8
mov dword [esp], eax
cmp word [esp], 0xffff
jne 0x5c283c
cmp word [esp + 2], 0
jl 0x5c283c
push 1
movsx eax, word [esp + 6]
push eax
call sub.user32.dll_MapVirtualKeyW
mov word [esp + 4], ax
movzx eax, word [esp + 2]
mov word [esp + 6], ax
jmp 0x5c288f
movzx ebx, word [esp]
test bx, bx
jl 0x5c2864
cmp word [esp + 2], 0xffff
jne 0x5c2864
mov word [esp + 4], bx
push 0
movsx eax, bx
push eax
call sub.user32.dll_MapVirtualKeyW
mov word [esp + 6], ax
jmp 0x5c288f
movzx eax, word [esp]
test ax, ax
jl 0x5c2886
cmp word [esp + 2], 0
jl 0x5c2886
mov word [esp + 4], ax
movzx eax, word [esp + 2]
mov word [esp + 6], ax
jmp 0x5c288f
call fcn.005c3c8c
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x5c2c80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
xor edx, edx
mov dword [ebp - 0x108], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5c2ced
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [ebp - 0x108]
push eax
movsx edx, word [ebx + 2]
movsx eax, word [ebx]
call fcn.005c27f8
call fcn.005c2808
lea ecx, [ebp - 1]
lea edx, [ebp - 0x101]
call fcn.005c2898
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c2cf4
lea eax, [ebp - 0x108]
call fcn.004092ac
ret
Function at 0x5d1478
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
xor eax, eax
push ebp
push 0x5d157a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
call sub.user32.dll_GetKeyboardLayout
movzx esi, ax
push 0
push 0
push 0x59
push esi
call sub.kernel32.dll_GetLocaleInfoW_1
mov edi, eax
lea eax, [ebp - 8]
mov edx, edi
call fcn.00409f6c
push edi
lea eax, [ebp - 8]
call fcn.0040982c
push eax
push 0x59
push esi
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
je 0x5d1544
mov edx, edi
dec edx
lea eax, [ebp - 8]
call fcn.00409f6c
push 0
push 0
push 0x5a
push esi
call sub.kernel32.dll_GetLocaleInfoW_1
mov edi, eax
lea eax, [ebp - 4]
mov edx, edi
call fcn.00409f6c
push edi
lea eax, [ebp - 4]
call fcn.0040982c
push eax
push 0x5a
push esi
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
je 0x5d1544
mov edx, edi
dec edx
lea eax, [ebp - 4]
call fcn.00409f6c
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0x11
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
lea edx, [ebp - 0x1c]
mov ecx, 1
mov eax, 0x5d1594
call fcn.00422cf0
mov bl, 1
test bl, bl
jne 0x5d155f
mov ecx, dword [0x5e5b0c]
mov dl, 1
mov eax, dword [0x41a560]
call fcn.00427774
call fcn.004089b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d1581
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040930c
ret
Function at 0x412082
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x418680], 0
push ebx
push esi
mov esi, 0x418688
jne 0x4120ae
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x4186a0], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x418680], 1
push dword [0x4186a0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x41214b
push 0x14
push 8
push dword [0x418010]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x412175
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x418684]
test eax, eax
je 0x4120f0
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x418684], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41217a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x4186a0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418010]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x412175
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x404890
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.00406b30
test esi, esi
jne 0x4048c6
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.00406cb8
jmp 0x4048e4
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004047d4
mov edi, eax
test esi, esi
je 0x4048e4
cmp dword [ebx], 0
je 0x4048e4
dec esi
jmp 0x4048cd
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4058bc
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.00405ca8
mov byte [esp], al
cmp byte [esp], 0
jne 0x405a48
test edi, edi
je 0x405a48
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40597f
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40595a
cmp edi, 0xffffffff
je 0x40591b
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40591b
mov byte [esp], 0
jmp 0x405a48
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40595a
test ebx, ebx
jne 0x405950
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402784
test eax, eax
jne 0x405950
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405a48
call 0x405dcc
dec ebp
test ebp, ebp
jg 0x405900
cmp edi, 0xffffffff
je 0x40597f
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40597d
mov byte [esp], 0
jmp 0x405a48
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4058ca
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402784
cmp ebx, eax
jne 0x40597f
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405ab8
mov edx, eax
mov ebx, dword [reloc.ole32.dll_CoTaskMemAlloc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4059e6
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4059e4
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4059e6
xor edi, edi
cmp byte [esp], 0
je 0x405a0f
mov ebx, dword [esi]
test bl, 1
jne 0x405a28
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402784
cmp ebx, eax
jne 0x4059ec
mov byte [esp + 1], 1
jmp 0x405a28
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402784
cmp ebx, eax
jne 0x405a0f
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405999
cmp byte [esp], 0
je 0x405a48
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 0x4067c8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x549058], 0
je 0x40682f
cmp word [0x549340], 0xd7b2
jne 0x4067f1
cmp dword [reloc.user32.dll_SetActiveWindow], 0
jbe 0x4067f1
mov eax, 0x54933c
call dword [0x549358]
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
mov eax, 0x40685c
call fcn.0040736c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x543032], 0
jne 0x40684b
push 0
push 0x5439c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4069ec
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 [0x543034], 0
je 0x406a17
mov edx, edi
mov eax, esi
call dword [0x543034]
mov ebx, eax
jmp 0x406a28
mov eax, 8
call fcn.00404510
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x549059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4069b4
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 0x406a5d
mov edx, 8
mov eax, ebx
call fcn.0040452c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x408ef8
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 0x40905d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406b30
cmp si, word [0x543a00]
jb 0x408f90
cmp si, word [0x543c00]
ja 0x408f90
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408f90
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x543a00]
jae 0x408f6a
mov edi, ebx
dec edi
jmp 0x408f8b
cmp si, word [ebx*8 + 0x543a00]
jbe 0x408f7a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408f8b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x543a04]
call fcn.00408e08
jmp 0x408f90
cmp edi, dword [ebp - 8]
jae 0x408f54
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40903f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40903f
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.004076e0
push dword [ebp - 0x160]
push 0x409078
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004076e0
push dword [ebp - 0x164]
push 0x409088
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004076e0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407918
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409064
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406b90
ret
Function at 0x409210
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 0x409313
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x54bb80
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x54bb98]
jne 0x40925c
mov eax, esi
mov edx, 0x54bb9a
mov ecx, 0x55
call fcn.004076e0
push 0x54bb80
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4092fd
push 0x54bb80
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406b30
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4092cb
cmp byte [0x54bb7c], 0
je 0x409290
mov edx, esi
mov eax, ebx
call fcn.004090f4
jmp 0x4092cb
mov edx, esi
mov eax, ebx
call fcn.00408ef8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4092cb
cmp dword [esi], 0
je 0x4092b4
mov eax, esi
mov edx, 0x40932c
call fcn.00407838
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408ef8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407838
push 0x54bb80
call sub.kernel32.dll_EnterCriticalSection
mov word [0x54bb98], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040764c
push eax
push 0x54bb9a
call sub.kernel32.dll_lstrcpynW
push 0x54bb80
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40931a
lea eax, [ebp - 4]
call fcn.00406b30
ret
Function at 0x409548
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.00406c14
xor eax, eax
push ebp
push 0x40976d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409588
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4095a2
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040764c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409757
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40977c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409671
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40977c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409671
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4097b8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409671
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4097b8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409671
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4097ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409671
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409820
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409757
xor eax, eax
push ebp
push 0x409750
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409354
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 0x4096e0
mov eax, dword [ebp - 0x10]
call fcn.00404510
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.004076a4
jmp 0x40972b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409860
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40972b
mov eax, dword [ebp - 0x10]
call fcn.00404510
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409860
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004076a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409757
cmp dword [ebp - 8], 0
je 0x409746
mov eax, dword [ebp - 8]
call fcn.0040452c
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 0x409774
lea eax, [ebp - 4]
call fcn.00406b30
ret
Function at 0x409a54
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.00406c14
xor eax, eax
push ebp
push 0x409b14
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.004076e0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407890
mov eax, dword [ebx]
call fcn.0040991c
test al, al
jne 0x409af1
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004076e0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407890
mov eax, dword [ebx]
call fcn.0040991c
test al, al
jne 0x409af1
mov eax, ebx
call fcn.00406b30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409b1b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406b90
lea eax, [ebp - 4]
call fcn.00406b30
ret

Function at 0x41d9b4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41da0d
test eax, edx
je 0x41da10
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41d9cb
movzx eax, word [eax]
sub eax, ecx
jmp 0x41d9f2
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 0x41d9f3
add ecx, 4
js 0x41d9e3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41d9f0
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41d9f2
xor eax, eax
ret
test eax, eax
je 0x41da1c
test edx, edx
jne 0x41d9bc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41ec84
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.0040764c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41ecee
test ah, 4
je 0x41ece7
test bl, bl
jne 0x41ecac
mov al, 1
jmp 0x41ed15
test al, 0x10
je 0x41ecb4
xor eax, eax
jmp 0x41ed15
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41ecd8
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41ed15
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41ed15
test al, 0x10
sete al
jmp 0x41ed15
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41ed0f
cmp ebx, 3
je 0x41ed0f
cmp ebx, 0x7b
je 0x41ed0f
mov eax, esi
call fcn.0041ec44
test al, al
jne 0x41ed13
xor eax, eax
jmp 0x41ed15
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x42292c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x422965
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406cb8
jmp 0x42296e
mov eax, ebx
mov edx, esi
call fcn.00406f10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x422978
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x42299a
movzx eax, word [esp]
jmp 0x42299c
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x423670
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 0x423795
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00423478
mov esi, eax
mov eax, dword [0x547f6c]
cmp byte [eax], 0
je 0x42373d
mov eax, dword [0x547b68]
call fcn.004049e4
call fcn.00404684
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x423640]
call fcn.00408948
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4237b0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x423779
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x547ac8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x54bc48]
call fcn.00408a3c
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42379c
lea eax, [ebp - 4]
mov edx, dword [0x423640]
call fcn.00408954
ret