joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008c500
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.10092910
mov ebp, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebp
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
ja 0x1008c5f9
lea ecx, [esp + 0x10]
push ecx
push str..htm
push closesocket
mov ecx, esi
call fcn.100276f0
test eax, eax
jne 0x1008c5f9
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push closesocket
mov ecx, esi
call fcn.100276f0
test eax, eax
jne 0x1008c5f9
lea edx, [esp + 0x10]
push 0x100f5c48
push edx
call fcn.1009ff00
mov esi, eax
add esp, 8
test esi, esi
jne 0x1008c5ca
lea eax, [esp + 0x10]
push 0x100f5c44
push eax
call fcn.1009ff00
mov esi, eax
add esp, 8
test esi, esi
jne 0x1008c5ca
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x1008c5cd
mov byte [esi], 0
push 0x100f540c
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x10092850
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x100bedd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x10092900
mov eax, dword [0x100f66e0]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.100af968
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.100af9b7
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.100af914
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x100928e7
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x100928e7
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.100af584
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x10095a00
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100bf260
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x10095ba7
mov ecx, dword [0x100f66e0]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x10095afc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.10094720
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.100af671
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.100af584
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x100f540c
call fcn.100af5f2
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.10094ae0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.100af671
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.100af584
lea ecx, [esp + 0xc]
call fcn.100afa4c
mov ecx, dword [esp + 0xc]
push 0x100f5e4c
push ecx
call fcn.1009ee84
add esp, 8
test eax, eax
je 0x10095b24
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x10095a5d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.100af584
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.100af584
jmp 0x10095bab
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.100957a0
test eax, eax
push 0
je 0x10095b8f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.10093e40
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x10095b75
cmp eax, 0x64
jg 0x10095b63
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x10095b00
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x10095b00
cmp eax, 0x64
jge 0x10095afc
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x10095b00
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.10093e40
mov esi, eax
jmp 0x10095b00
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x10095bb5
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x100b1965
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100b199d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.100af9df
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.100af9b7
jmp 0x100b19a9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x100b305c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x100b309e
call fcn.100b8e36
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x100b309e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x100b3095
xor eax, eax
jmp 0x100b30a6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.100b30ac
pop edi
pop esi
pop ebx
ret 4
Function at 0x404748
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.004069a8
test esi, esi
jne 0x40477e
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.00406b00
jmp 0x40479c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040468c
mov edi, eax
test esi, esi
je 0x40479c
cmp dword [ebx], 0
je 0x40479c
dec esi
jmp 0x404785
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4047d0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4ce008], 0x8088405
inc edx
mov dword [ebx + 0x4ce008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4056d4
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.00405ac0
mov byte [esp], al
cmp byte [esp], 0
jne 0x40585d
test edi, edi
je 0x40585d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405794
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40576f
cmp edi, 0xffffffff
je 0x405733
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405733
mov byte [esp], 0
jmp 0x40585d
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40576f
test ebx, ebx
jne 0x405768
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004025d8
test eax, eax
jne 0x405768
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40585d
pause
dec ebp
test ebp, ebp
jg 0x405718
cmp edi, 0xffffffff
je 0x405794
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405792
mov byte [esp], 0
jmp 0x40585d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4056e2
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004025d8
cmp ebx, eax
jne 0x405794
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004058d0
mov edx, eax
mov ebx, dword [0x4df8cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4057fb
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4057f9
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4057fb
xor edi, edi
cmp byte [esp], 0
je 0x405824
mov ebx, dword [esi]
test bl, 1
jne 0x40583d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004025d8
cmp ebx, eax
jne 0x405801
mov byte [esp + 1], 1
jmp 0x40583d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004025d8
cmp ebx, eax
jne 0x405824
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4057ae
cmp byte [esp], 0
je 0x40585d
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 0x4063e0
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x4e1ae8
cmp dword [ebp + 0xc], 2
jl 0x4063f4
mov ebx, 0x4e1b18
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x40642c
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, sub.kernel32.dll_RaiseException
mov dword [0x4df014], eax
mov eax, 0x402620
mov dword [0x4df018], eax
mov eax, ebx
call fcn.004062c4
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x406461
cmp al, 3
jge 0x406461
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x406472
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x40647d
call dword [ecx + eax*4]
cmp dword [0x4df038], 0
jne 0x406493
mov byte [0x4df040], 1
fnstcw word [0x4ce024]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.004066e8
call fcn.00406374
ret 4

Function at 0x406658
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4df054], 0
je 0x4066b9
cmp word [0x4df330], 0xd7b2
jne 0x406681
cmp dword [0x4df338], 0
jbe 0x406681
mov eax, 0x4df32c
call dword [0x4df348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push 0x4ce792
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 0x4066e4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ce028], 0
jne 0x4066d5
push 0
push 0x4ce78c
push 0x4ce792
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406864
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 [0x4ce02c], 0
je 0x40688f
mov edx, edi
mov eax, esi
call dword [0x4ce02c]
mov ebx, eax
jmp 0x4068a0
mov eax, 8
call fcn.004043c0
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4df055], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40682c
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 0x4068d5
mov edx, 8
mov eax, ebx
call fcn.004043dc
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x4089a8
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 0x408b0d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004069a8
cmp si, word [0x4ce7dc]
jb 0x408a40
cmp si, word [0x4ce9dc]
ja 0x408a40
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408a40
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4ce7dc]
jae 0x408a1a
mov edi, ebx
dec edi
jmp 0x408a3b
cmp si, word [ebx*8 + 0x4ce7dc]
jbe 0x408a2a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408a3b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4ce7e0]
call fcn.004088b8
jmp 0x408a40
cmp edi, dword [ebp - 8]
jae 0x408a04
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408aef
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408aef
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.004073f8
push dword [ebp - 0x160]
push 0x408b28
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004073f8
push dword [ebp - 0x164]
push 0x408b38
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004073f8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407630
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408b14
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406a08
ret
Function at 0x408cc0
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 0x408dc3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4e1b55
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4e1b6e]
jne 0x408d0c
mov eax, esi
mov edx, 0x4e1b70
mov ecx, 0x55
call fcn.004073f8
push 0x4e1b55
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408dad
push 0x4e1b55
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004069a8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408d7b
cmp byte [0x4e1b54], 0
je 0x408d40
mov edx, esi
mov eax, ebx
call fcn.00408ba4
jmp 0x408d7b
mov edx, esi
mov eax, ebx
call fcn.004089a8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408d7b
cmp dword [esi], 0
je 0x408d64
mov eax, esi
mov edx, 0x408ddc
call fcn.00407550
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004089a8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407550
push 0x4e1b55
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4e1b6e], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040736c
push eax
push 0x4e1b70
call sub.kernel32.dll_lstrcpynW
push 0x4e1b55
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408dca
lea eax, [ebp - 4]
call fcn.004069a8
ret
Function at 0x408ff8
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.00406a8c
xor eax, eax
push ebp
push 0x40921d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409038
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409052
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040736c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409207
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40922c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409121
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40922c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409121
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409268
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409121
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409268
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409121
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40929c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409121
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4092d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409207
xor eax, eax
push ebp
push 0x409200
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408e04
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 0x409190
mov eax, dword [ebp - 0x10]
call fcn.004043c0
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.004073bc
jmp 0x4091db
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409310
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4091db
mov eax, dword [ebp - 0x10]
call fcn.004043c0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409310
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004073bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409207
cmp dword [ebp - 8], 0
je 0x4091f6
mov eax, dword [ebp - 8]
call fcn.004043dc
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 0x409224
lea eax, [ebp - 4]
call fcn.004069a8
ret
Function at 0x40955c
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.00406a8c
xor eax, eax
push ebp
push 0x40961c
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.004073f8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004075a8
mov eax, dword [ebx]
call fcn.00409424
test al, al
jne 0x4095f9
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004073f8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004075a8
mov eax, dword [ebx]
call fcn.00409424
test al, al
jne 0x4095f9
mov eax, ebx
call fcn.004069a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409623
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406a08
lea eax, [ebp - 4]
call fcn.004069a8
ret

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

Disassembly:
cmp eax, edx
je 0x4198e1
test eax, edx
je 0x4198e4
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41989f
movzx eax, word [eax]
sub eax, ecx
jmp 0x4198c6
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 0x4198c7
add ecx, 4
js 0x4198b7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4198c4
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4198c6
xor eax, eax
ret
test eax, eax
je 0x4198f0
test edx, edx
jne 0x419890
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41a598
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.0040736c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41a602
test ah, 4
je 0x41a5fb
test bl, bl
jne 0x41a5c0
mov al, 1
jmp 0x41a629
test al, 0x10
je 0x41a5c8
xor eax, eax
jmp 0x41a629
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41a5ec
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41a629
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41a629
test al, 0x10
sete al
jmp 0x41a629
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x41a623
cmp ebx, 3
je 0x41a623
cmp ebx, 0x7b
je 0x41a623
mov eax, esi
call fcn.0041a558
test al, al
jne 0x41a627
xor eax, eax
jmp 0x41a629
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x41a630
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.0040736c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41a6d7
test esi, 0x400
jne 0x41a66c
test esi, 0x10
setne bl
jmp 0x41a6f1
cmp byte [esp], 0
je 0x41a6a0
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41a6f1
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x41a6f1
test esi, 0x10
je 0x41a6ac
mov bl, 1
jmp 0x41a6f1
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41a6d3
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x41a6f1
mov bl, 1
jmp 0x41a6f1
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x41a6eb
cmp eax, 3
je 0x41a6eb
cmp eax, 0x7b
jne 0x41a6ef
xor ebx, ebx
jmp 0x41a6f1
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41dd40
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 0x41dd79
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406b00
jmp 0x41dd82
mov eax, ebx
mov edx, esi
call fcn.00406d58
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41dd8c
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 0x41ddae
movzx eax, word [esp]
jmp 0x41ddb0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret