joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414102
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040fa0b
mov dword [ebp - 0x14], eax
cmp dword [0x7ab324], esi
jne 0x4141f5
push 0x800
push esi
push 0x41e7d8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x414182
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4142d5
push esi
push esi
push 0x41e7d8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4142d5
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4142d5
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x7ab324], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x7ab328], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x7ab32c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x7ab334], eax
test eax, eax
je 0x4141f2
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x7ab330], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41421a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41420d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41422f
push 4
pop eax
jmp 0x4142d7
cmp dword [ebp - 0x14], esi
je 0x41422f
push dword [0x7ab324]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x414214
mov eax, dword [0x7ab330]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41428d
cmp dword [0x7ab334], edi
je 0x41428d
push eax
call ebx
push dword [0x7ab334]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41428d
test eax, eax
je 0x41428d
call ecx
test eax, eax
je 0x414282
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x414282
test byte [ebp - 8], 1
jne 0x41428d
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4142bd
mov eax, dword [0x7ab328]
cmp eax, edi
je 0x4142ba
push eax
call ebx
test eax, eax
je 0x4142ba
call eax
mov esi, eax
test esi, esi
je 0x4142ba
mov eax, dword [0x7ab32c]
cmp eax, edi
je 0x4142ba
push eax
call ebx
test eax, eax
je 0x4142ba
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x7ab324]
call ebx
test eax, eax
je 0x4142d5
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4142d7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409948
mov esp, ebp
pop ebp
ret
Function at 0x4066e4
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.00408b14
test esi, esi
jne 0x40671a
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.00408c9c
jmp 0x406738
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406628
mov edi, eax
test esi, esi
je 0x406738
cmp dword [ebx], 0
je 0x406738
dec esi
jmp 0x406721
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x407b70
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.00407e00
mov byte [esp], al
cmp byte [esp], 0
jne 0x407cf0
test edi, edi
je 0x407cf0
mov byte [esp + 1], 0
test ebp, ebp
jle 0x407c30
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x407c0b
cmp edi, 0xffffffff
je 0x407bcf
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407bcf
mov byte [esp], 0
jmp 0x407cf0
mov ebx, dword [esi]
cmp ebx, 1
jg 0x407c0b
test ebx, ebx
jne 0x407c01
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x407c01
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x407cf0
call 0x407e40
dec ebp
test ebp, ebp
jg 0x407bb4
cmp edi, 0xffffffff
je 0x407c30
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407c2e
mov byte [esp], 0
jmp 0x407cf0
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x407b7e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407c30
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00407d5c
mov edx, eax
mov ebx, dword [0x4e28f0]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x407c94
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x407c92
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x407c94
xor edi, edi
cmp byte [esp], 0
je 0x407cba
mov ebx, dword [esi]
test bl, 1
jne 0x407cd0
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407c9a
mov byte [esp + 1], 1
jmp 0x407cd0
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407cba
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x407c47
cmp byte [esp], 0
je 0x407cf0
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 0x40887c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e2050], 0
je 0x4088e3
cmp word [0x4e233c], 0xd7b2
jne 0x4088a5
cmp dword [0x4e2344], 0
jbe 0x4088a5
mov eax, 0x4e2338
call dword [0x4e2354]
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, 0x408910
call fcn.0040933c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4de032], 0
jne 0x4088ff
push 0
push 0x4de9da
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40b050
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 0x40b1b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00408b14
cmp si, word [0x4dea18]
jb 0x40b0e8
cmp si, word [0x4dec18]
ja 0x40b0e8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40b0e8
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4dea18]
jae 0x40b0c2
mov edi, ebx
dec edi
jmp 0x40b0e3
cmp si, word [ebx*8 + 0x4dea18]
jbe 0x40b0d2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40b0e3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4dea1c]
call fcn.0040af70
jmp 0x40b0e8
cmp edi, dword [ebp - 8]
jae 0x40b0ac
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40b197
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40b197
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.004096e0
push dword [ebp - 0x160]
push 0x40b1d0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004096e0
push dword [ebp - 0x164]
push 0x40b1e0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004096e0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00409918
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b1bc
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00408b74
ret
Function at 0x40b368
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 0x40b46b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4e4b80
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4e4b98]
jne 0x40b3b4
mov eax, esi
mov edx, 0x4e4b9a
mov ecx, 0x55
call fcn.004096e0
push 0x4e4b80
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40b455
push 0x4e4b80
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00408b14
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40b423
cmp byte [0x4e4b7c], 0
je 0x40b3e8
mov edx, esi
mov eax, ebx
call fcn.0040b24c
jmp 0x40b423
mov edx, esi
mov eax, ebx
call fcn.0040b050
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40b423
cmp dword [esi], 0
je 0x40b40c
mov eax, esi
mov edx, 0x40b484
call fcn.00409838
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040b050
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00409838
push 0x4e4b80
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4e4b98], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040963c
push eax
push 0x4e4b9a
call sub.kernel32.dll_lstrcpynW
push 0x4e4b80
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b472
lea eax, [ebp - 4]
call fcn.00408b14
ret
Function at 0x40b6a0
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.00408bf8
xor eax, eax
push ebp
push 0x40b8c5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40b6e0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40b6fa
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040963c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40b8af
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b8d4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b7c9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b8d4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b7c9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b910
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b7c9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b910
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b7c9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b944
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b7c9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b978
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40b8af
xor eax, eax
push ebp
push 0x40b8a8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040b4ac
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 0x40b838
mov eax, dword [ebp - 0x10]
call fcn.00406384
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.004096a4
jmp 0x40b883
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40b9b8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40b883
mov eax, dword [ebp - 0x10]
call fcn.00406384
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40b9b8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004096a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b8af
cmp dword [ebp - 8], 0
je 0x40b89e
mov eax, dword [ebp - 8]
call fcn.004063a0
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 0x40b8cc
lea eax, [ebp - 4]
call fcn.00408b14
ret
Function at 0x40bbb4
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.00408bf8
xor eax, eax
push ebp
push 0x40bc74
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.004096e0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409890
mov eax, dword [ebx]
call fcn.0040ba7c
test al, al
jne 0x40bc51
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004096e0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409890
mov eax, dword [ebx]
call fcn.0040ba7c
test al, al
jne 0x40bc51
mov eax, ebx
call fcn.00408b14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc7b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00408b74
lea eax, [ebp - 4]
call fcn.00408b14
ret

Function at 0x40c4b4
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 0x41d468
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41d4c1
test eax, edx
je 0x41d4c4
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41d47f
movzx eax, word [eax]
sub eax, ecx
jmp 0x41d4a6
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 0x41d4a7
add ecx, 4
js 0x41d497
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41d4a4
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41d4a6
xor eax, eax
ret
test eax, eax
je 0x41d4d0
test edx, edx
jne 0x41d470
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41e69c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x41e6c9
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x41e79c
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.0040963c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41e806
test ah, 4
je 0x41e7ff
test bl, bl
jne 0x41e7c4
mov al, 1
jmp 0x41e82d
test al, 0x10
je 0x41e7cc
xor eax, eax
jmp 0x41e82d
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41e7f0
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41e82d
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41e82d
test al, 0x10
sete al
jmp 0x41e82d
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41e827
cmp ebx, 3
je 0x41e827
cmp ebx, 0x7b
je 0x41e827
mov eax, esi
call fcn.0041e75c
test al, al
jne 0x41e82b
xor eax, eax
jmp 0x41e82d
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x422410
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 0x422449
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00408c9c
jmp 0x422452
mov eax, ebx
mov edx, esi
call fcn.00408ef4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42245c
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 0x42247e
movzx eax, word [esp]
jmp 0x422480
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x423168
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 0x42328d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00422f70
mov esi, eax
mov eax, dword [0x4e19e4]
cmp byte [eax], 0
je 0x423235
mov eax, dword [0x4e1864]
call fcn.00406d60
call fcn.004064d8
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 [0x423138]
call fcn.0040a9c0
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 0x4232a8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x423271
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4e1820]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4e4c48]
call fcn.0040aba4
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 0x423294
lea eax, [ebp - 4]
mov edx, dword [0x423138]
call fcn.0040aae4
ret

Function at 0x4249d8
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.00408fe4
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040c494
mov edi, eax
cmp edi, 0x104
jbe 0x42497f
mov eax, edi
add eax, eax
call fcn.00406384
mov esi, eax
jmp 0x424981
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040c494
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4249bc
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 0x4249a6
mov eax, esp
cmp esi, eax
je 0x4249c9
mov eax, esi
call fcn.004063a0
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 0x424a04
cmp bl, 0
je 0x424a00
cmp bl, 0x41
jl 0x4249fb
cmp bl, 0x5a
jg 0x4249fb
or bl, 0x20
xor al, bl
inc esi
jmp 0x4249df
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x424940

Function at 0x425260
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_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.004096e0
add esp, 0x800
pop ebx
ret
Function at 0x432fd8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x43302a
test eax, edx
je 0x43302d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x432fed
movzx eax, byte [eax]
sub eax, ecx
ret
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]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x433013
add ecx, 4
js 0x433003
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x433010
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x433039
test edx, edx
jne 0x432fe0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x4d6594
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d66e9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 4], 0
je 0x4d66be
mov eax, dword [ebx + 4]
mov dl, 1
call fcn.0041e79c
test al, al
je 0x4d66be
push 0x20
mov ecx, dword [ebx + 4]
mov dl, 1
mov eax, dword [0x487ed4]
call fcn.004a5e38
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4d66b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
mov esi, eax
mov eax, dword [ebp - 0xc]
call fcn.004a1560
sub esi, eax
push esi
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x417a8c]
call fcn.0040a9c0
add esp, 4
mov edx, dword [ebp - 4]
mov ecx, esi
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebx + 0xc]
mov eax, dword [ebp - 4]
call fcn.00427c20
mov esi, eax
mov dl, 1
mov eax, dword [0x485400]
call fcn.004a14bc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4d669a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a7a4
sub eax, esi
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0xc]
mov ecx, esi
mov edx, dword [ebp - 4]
call fcn.00428e60
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004d6984
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d66a1
mov eax, dword [ebp - 8]
call fcn.00407314
ret
mov eax, ebx
call fcn.004d6390
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d66f0
lea eax, [ebp - 0x10]
call fcn.00408b14
lea eax, [ebp - 4]
mov edx, dword [0x417a8c]
call fcn.0040aae4
ret