joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402390
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4033a1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40c
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.00402d5a
lea ecx, [esp + 0x14]
mov dword [esp + 0x420], 0
call fcn.00402d5a
lea ecx, [esp + 0x10]
mov byte [esp + 0x420], 1
call fcn.00402d5a
mov al, byte [0x406230]
mov ecx, 0xff
mov byte [esp + 0x18], al
xor eax, eax
lea edi, [esp + 0x19]
push 0x406160
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
mov byte [esp + 0x424], 2
stosb byte es:[edi], al
call fcn.00402d90
push 0x76
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
push 0x73
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::LoadStringA
push 1
lea edx, [esp + 0x1c]
push 0x10
push edx
push 0
call dword [0x404298]
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0xc]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebp
call fcn.004024d0
lea ecx, [esp + 0x10]
mov byte [esp + 0x420], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x420], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x420], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x418]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x418
ret

Function at 0x4024d0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
lea eax, [esp]
push eax
push 0x404518
push 1
push 0
push 0x404508
call dword [0x4042cc]
test eax, eax
jl 0x40255f
mov eax, dword [esp]
mov edx, dword [esp + 0x218]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp]
lea edx, [esp + 4]
push edx
push 0x404528
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x40255f
mov ecx, dword [esp + 0x214]
lea eax, [esp + 8]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [0x40402c]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push 2
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
add esp, 0x210
ret 8
Function at 0x402770
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xc]
lea edi, [esi + 4]
push edi
push 0x20019
push 0
push eax
mov eax, dword [esi]
push eax
call dword [0x404004]
test eax, eax
jne 0x4027df
mov eax, dword [esi + 8]
lea ecx, [esp + 0xc]
lea ebx, [esi + 0x10]
push ecx
lea edx, [esp + 0x14]
push ebx
push edx
push 0
push eax
mov eax, dword [edi]
push eax
mov dword [esp + 0x24], 4
call dword [0x404008]
test eax, eax
jne 0x4027d6
mov ecx, dword [edi]
mov dword [esi + 0x18], 1
push ecx
call dword [0x40400c]
mov eax, dword [ebx]
pop edi
pop esi
pop ebx
add esp, 8
ret
mov edx, dword [edi]
push edx
call dword [0x40400c]
mov eax, dword [esi + 0x14]
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x4027f0
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
mov eax, dword [esi + 0xc]
mov edx, dword [esi]
lea edi, [esi + 4]
push ecx
push edi
push 0
push 0x20006
push 0
push 0x406230
push 0
push eax
push edx
call dword [0x404010]
test eax, eax
jne 0x40284a
mov eax, dword [esi + 8]
mov edx, dword [edi]
lea ecx, [esi + 0x10]
push 4
push ecx
push 4
push 0
push eax
push edx
call dword [section..rdata]
test eax, eax
jne 0x402841
mov dword [esi + 0x18], 1
mov eax, dword [edi]
push eax
call dword [0x40400c]
pop edi
pop esi
pop ecx
ret
Function at 0x402880
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x403479
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 8]
mov dword [esp + 0x1c], 1
mov ecx, edi
call fcn.00402d5a
lea ebp, [esi + 0xc]
mov byte [esp + 0x1c], 2
mov ecx, ebp
call fcn.00402d5a
lea ebx, [esi + 0x10]
mov byte [esp + 0x1c], 3
mov ecx, ebx
call fcn.00402d5a
lea ecx, [esi + 0x14]
mov byte [esp + 0x1c], 4
call fcn.00402d5a
push 0x406230
mov ecx, ebx
mov byte [esp + 0x20], 5
call fcn.00402da2
lea eax, [esp + 0x28]
lea ecx, [esi + 0x14]
push eax
call fcn.00402d90
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esi + 0x1c], ecx
xor ebx, ebx
push 0x406144
lea ecx, [esp + 0x28]
mov dword [esi], edx
mov dword [esi + 0x18], ebx
call sub.MFC42.DLL_CString::TrimLeft
push 0x5c
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::Left
push eax
mov ecx, ebp
mov byte [esp + 0x20], 6
call fcn.00402d90
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 5
call sub.MFC42.DLL_CString::CString
push 0x406144
mov ecx, ebp
call sub.MFC42.DLL_CString::TrimRight
mov ecx, dword [esp + 0x24]
push 0x5c
mov ebp, dword [ecx - 8]
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::ReverseFind
sub ebp, eax
lea edx, [esp + 0x2c]
push ebp
push edx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::Right
push eax
mov ecx, edi
mov byte [esp + 0x20], 7
call fcn.00402d90
mov byte [esp + 0x1c], 5
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
push 0x406144
mov ecx, edi
call sub.MFC42.DLL_CString::TrimLeft
push 0x406144
mov ecx, edi
call sub.MFC42.DLL_CString::TrimRight
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
call fcn.00402a70
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x402a70
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4034c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi + 0xc]
lea edi, [esi + 4]
push edi
push 0x20019
push ebx
push eax
mov eax, dword [esi]
mov dword [esp + 0x28], ebx
push eax
call dword [0x404004]
test eax, eax
jne 0x402b56
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
mov ebp, dword [0x404008]
push ecx
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push eax
mov eax, dword [edi]
push eax
mov dword [esp + 0x28], ebx
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
lea edx, [esp + 0x10]
mov ebx, eax
mov eax, dword [esi + 8]
push edx
mov edx, dword [edi]
lea ecx, [esp + 0x18]
push ebx
push ecx
push 0
push eax
push edx
call ebp
test eax, eax
push ebx
jne 0x402b45
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
lea ebp, [esi + 0x10]
push eax
mov ecx, ebp
mov dword [esp + 0x28], 0
call fcn.00402d90
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
push ebx
call sub.MFC42.DLL_operatordelete
mov eax, dword [edi]
add esp, 4
mov dword [esi + 0x18], 1
push eax
call dword [0x40400c]
push ebp
jmp 0x402b5a
call sub.MFC42.DLL_operatordelete
mov ecx, dword [edi]
add esp, 4
push ecx
call dword [0x40400c]
add esi, 0x14
push esi
mov esi, dword [esp + 0x30]
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x402b80
Capabilities:
Set registry value

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
mov eax, dword [esi + 0xc]
mov edx, dword [esi]
lea edi, [esi + 4]
push ecx
push edi
push 0
push 0x20006
push 0
push 0x406230
push 0
push eax
push edx
call dword [0x404010]
test eax, eax
jne 0x402bdd
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 8]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [edi]
push 1
push 0
push edx
push eax
call dword [section..rdata]
test eax, eax
jne 0x402bd4
mov dword [esi + 0x18], 1
mov ecx, dword [edi]
push ecx
call dword [0x40400c]
pop edi
pop esi
pop ecx
ret
Function at 0x406304
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406328
xor eax, eax
test eax, eax
je 0x40633a
cmp byte [ebp + eax - 0x121], 0x5c
je 0x40633a
xor ecx, ecx
jmp 0x40633d
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x406429
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42229c], 0
push esi
jne 0x406460
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40643a
mov dword [ecx*4 + 0x422298], eax
inc ecx
cmp ecx, 0x100
jl 0x406435
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406491
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422298]
xor eax, esi
inc ecx
dec edx
jne 0x406473
pop edi
not eax
pop esi
ret 0xc

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x408f6c
nop
mov ecx, 0x60e63963
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data_1
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x3e9f43c5
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4046e8
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.00406920
test esi, esi
jne 0x40471e
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.00406a88
jmp 0x40473c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040462c
mov edi, eax
test esi, esi
je 0x40473c
cmp dword [ebx], 0
je 0x40473c
dec esi
jmp 0x404725
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405680
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.00405a6c
mov byte [esp], al
cmp byte [esp], 0
jne 0x405809
test edi, edi
je 0x405809
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405740
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40571b
cmp edi, 0xffffffff
je 0x4056df
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4056df
mov byte [esp], 0
jmp 0x405809
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40571b
test ebx, ebx
jne 0x405714
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402578
test eax, eax
jne 0x405714
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405809
pause
dec ebp
test ebp, ebp
jg 0x4056c4
cmp edi, 0xffffffff
je 0x405740
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40573e
mov byte [esp], 0
jmp 0x405809
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40568e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402578
cmp ebx, eax
jne 0x405740
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040587c
mov edx, eax
mov ebx, dword [0x4c18c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4057a7
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4057a5
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4057a7
xor edi, edi
cmp byte [esp], 0
je 0x4057d0
mov ebx, dword [esi]
test bl, 1
jne 0x4057e9
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402578
cmp ebx, eax
jne 0x4057ad
mov byte [esp + 1], 1
jmp 0x4057e9
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402578
cmp ebx, eax
jne 0x4057d0
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40575a
cmp byte [esp], 0
je 0x405809
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 0x406584
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c1050], 0
je 0x4065e5
cmp word [0x4c132c], 0xd7b2
jne 0x4065ad
cmp dword [0x4c1334], 0
jbe 0x4065ad
mov eax, 0x4c1328
call dword [0x4c1344]
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 0x406610
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4be028], 0
jne 0x406601
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4067dc
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 [0x4be02c], 0
je 0x406807
mov edx, edi
mov eax, esi
call dword [0x4be02c]
mov ebx, eax
jmp 0x406818
mov eax, 8
call fcn.00404360
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4c1051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4067a4
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 0x40684d
mov edx, 8
mov eax, ebx
call fcn.0040437c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x408940
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 0x408aa5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406920
cmp si, word [0x4be7dc]
jb 0x4089d8
cmp si, word [0x4be9dc]
ja 0x4089d8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4089d8
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4be7dc]
jae 0x4089b2
mov edi, ebx
dec edi
jmp 0x4089d3
cmp si, word [ebx*8 + 0x4be7dc]
jbe 0x4089c2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4089d3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4be7e0]
call fcn.00408850
jmp 0x4089d8
cmp edi, dword [ebp - 8]
jae 0x40899c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408a87
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408a87
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.004072f0
push dword [ebp - 0x160]
push 0x408ac0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004072f0
push dword [ebp - 0x164]
push 0x408ad0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004072f0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407528
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408aac
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406980
ret
Function at 0x408c58
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 0x408d5b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4c3b51
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4c3b6a]
jne 0x408ca4
mov eax, esi
mov edx, 0x4c3b6c
mov ecx, 0x55
call fcn.004072f0
push 0x4c3b51
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408d45
push 0x4c3b51
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406920
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408d13
cmp byte [0x4c3b50], 0
je 0x408cd8
mov edx, esi
mov eax, ebx
call fcn.00408b3c
jmp 0x408d13
mov edx, esi
mov eax, ebx
call fcn.00408940
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408d13
cmp dword [esi], 0
je 0x408cfc
mov eax, esi
mov edx, 0x408d74
call fcn.00407448
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408940
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407448
push 0x4c3b51
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4c3b6a], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407264
push eax
push 0x4c3b6c
call sub.kernel32.dll_lstrcpynW
push 0x4c3b51
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d62
lea eax, [ebp - 4]
call fcn.00406920
ret
Function at 0x408f90
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.00406a04
xor eax, eax
push ebp
push 0x4091b5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408fd0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408fea
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407264
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40919f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4091c4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4090b9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4091c4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4090b9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409200
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4090b9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409200
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4090b9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409234
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4090b9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409268
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40919f
xor eax, eax
push ebp
push 0x409198
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408d9c
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 0x409128
mov eax, dword [ebp - 0x10]
call fcn.00404360
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.004072b4
jmp 0x409173
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4092a8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409173
mov eax, dword [ebp - 0x10]
call fcn.00404360
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4092a8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004072b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40919f
cmp dword [ebp - 8], 0
je 0x40918e
mov eax, dword [ebp - 8]
call fcn.0040437c
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 0x4091bc
lea eax, [ebp - 4]
call fcn.00406920
ret
Function at 0x4094f4
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.00406a04
xor eax, eax
push ebp
push 0x4095b4
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.004072f0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004074a0
mov eax, dword [ebx]
call fcn.004093bc
test al, al
jne 0x409591
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004072f0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004074a0
mov eax, dword [ebx]
call fcn.004093bc
test al, al
jne 0x409591
mov eax, ebx
call fcn.00406920
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4095bb
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406980
lea eax, [ebp - 4]
call fcn.00406920
ret

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

Disassembly:
cmp eax, edx
je 0x41a9fd
test eax, edx
je 0x41aa00
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41a9bb
movzx eax, word [eax]
sub eax, ecx
jmp 0x41a9e2
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 0x41a9e3
add ecx, 4
js 0x41a9d3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41a9e0
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41a9e2
xor eax, eax
ret
test eax, eax
je 0x41aa0c
test edx, edx
jne 0x41a9ac
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41eb80
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 0x41ebb9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406a88
jmp 0x41ebc2
mov eax, ebx
mov edx, esi
call fcn.00406ce0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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