joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c5e8
Capabilities:
Encode data using xor
Encrypt data using des
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbdc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov bl, 1
lea esi, [ebp - 0x421]
mov eax, edi
mov edx, ebx
call fcn.0046c390
mov byte [esi], al
inc ebx
inc esi
cmp bl, 0x41
jne 0x46c604
mov bl, 0x1c
mov esi, 0x492594
lea edi, [ebp - 0x41]
mov dl, byte [esi]
mov eax, dword [ebp - 8]
call fcn.0046c390
mov byte [edi], al
mov dl, byte [esi + 0x1c]
mov eax, dword [ebp - 8]
call fcn.0046c390
mov byte [edi + 0x1c], al
inc edi
inc esi
dec bl
jne 0x46c620
mov bl, 1
lea esi, [ebp - 0x3a1]
mov ecx, esi
lea eax, [ebp - 0x421]
mov edx, ebx
call fcn.0046c578
inc ebx
add esi, 0x30
cmp bl, 0x11
jne 0x46c648
mov bl, 1
mov eax, 0x4924c4
lea edx, [ebp - 0xa1]
cmp bl, 0x20
ja 0x46c681
xor ecx, ecx
mov cl, byte [eax]
mov cl, byte [ebp + ecx - 0x422]
mov byte [edx], cl
jmp 0x46c68e
xor ecx, ecx
mov cl, byte [eax]
mov cl, byte [ebp + ecx - 0x422]
mov byte [edx], cl
inc ebx
inc edx
inc eax
cmp bl, 0x41
jne 0x46c66d
mov byte [ebp - 9], 1
lea esi, [ebp - 0x3a1]
cmp byte [ebp + 8], 0
je 0x46c6b8
lea ecx, [ebp - 0x61]
mov edx, esi
lea eax, [ebp - 0x81]
call fcn.0046c3fc
jmp 0x46c6e0
xor eax, eax
mov al, byte [ebp - 9]
mov edx, 0x11
sub edx, eax
mov eax, edx
add eax, eax
lea eax, [eax + eax*2]
lea edx, [ebp + eax*8 - 0x3d1]
lea ecx, [ebp - 0x61]
lea eax, [ebp - 0x81]
call fcn.0046c3fc
mov bl, 0x20
lea eax, [ebp - 0xa1]
mov dl, byte [eax]
xor byte [eax + 0x40], dl
inc eax
dec bl
jne 0x46c6e8
push esi
lea esi, [ebp - 0x81]
lea edi, [ebp - 0xa1]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
push esi
lea esi, [ebp - 0x61]
lea edi, [ebp - 0x81]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
inc byte [ebp - 9]
add esi, 0x30
cmp byte [ebp - 9], 0x11
jne 0x46c6a0
mov bl, 0x40
mov esi, 0x492504
lea eax, [ebp - 0x3e1]
mov dl, byte [esi]
cmp dl, 0x20
ja 0x46c74e
and edx, 0xff
mov dl, byte [ebp + edx - 0x82]
mov byte [eax], dl
jmp 0x46c75d
and edx, 0xff
mov dl, byte [ebp + edx - 0xc2]
mov byte [eax], dl
inc eax
inc esi
dec bl
jne 0x46c736
mov bl, 1
lea esi, [ebp - 0x3e1]
mov cl, byte [esi]
mov eax, dword [ebp - 4]
mov edx, ebx
call fcn.0046c3b8
inc ebx
inc esi
cmp bl, 0x41
jne 0x46c76b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46d27c
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov ebp, ecx
mov dword [esp], edx
mov esi, eax
mov dl, byte [esi]
mov byte [esp + 4], dl
shl edx, 7
and dl, 0xff
mov al, byte [esi + 1]
xor ecx, ecx
mov cl, al
shr ecx, 1
or dl, cl
mov byte [esp + 5], dl
shl eax, 6
and al, 0xff
mov dl, byte [esi + 2]
xor ecx, ecx
mov cl, dl
shr ecx, 2
or al, cl
mov byte [esp + 6], al
shl edx, 5
and dl, 0xff
mov al, byte [esi + 3]
xor ecx, ecx
mov cl, al
shr ecx, 3
or dl, cl
mov byte [esp + 7], dl
shl eax, 4
and al, 0xff
xor edx, edx
mov dl, byte [esi + 4]
shr edx, 4
or al, dl
mov byte [esp + 8], al
mov al, byte [esi + 4]
shl eax, 3
and al, 0xff
xor edx, edx
mov dl, byte [esi + 5]
shr edx, 5
or al, dl
mov byte [esp + 9], al
mov al, byte [esi + 5]
shl eax, 2
and al, 0xff
xor edx, edx
mov dl, byte [esi + 6]
shr edx, 6
or al, dl
mov byte [esp + 0xa], al
mov al, byte [esi + 6]
add eax, eax
and al, 0xff
mov byte [esp + 0xb], al
mov edi, 8
lea eax, [esp + 4]
mov edx, 1
xor esi, esi
mov ecx, edx
xor ebx, ebx
mov bl, byte [eax]
shl ebx, cl
mov ecx, ebx
xor ecx, esi
and ecx, 1
mov esi, ecx
inc edx
cmp edx, 8
jne 0x46d328
mov dl, byte [eax]
and dl, 0xfe
mov ecx, esi
or dl, cl
mov byte [eax], dl
inc eax
dec edi
jne 0x46d323
mov eax, ebp
mov edx, 8
call fcn.00404738
push 1
mov eax, ebp
call fcn.00404604
mov edx, eax
lea ecx, [esp + 8]
mov eax, dword [esp + 4]
call fcn.0046c5e8
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x48b52c
Capabilities:
Hash data using sha1

Disassembly:
test eax, eax
jne 0x48b536
mov eax, 1
ret
xor edx, edx
mov dword [eax + 0x14], edx
xor edx, edx
mov dword [eax + 0x18], edx
xor edx, edx
mov dword [eax + 0x1c], edx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
xor edx, edx
mov dword [eax + 0x60], edx
xor edx, edx
mov dword [eax + 0x64], edx
xor eax, eax
ret
Function at 0x401798
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4022ec
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004011a8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x41f03d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4022b4
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4044a0
Capabilities:
Accept command line arguments

Disassembly:
push edi
mov edi, edx
test eax, eax
jne 0x4044ce
sub esp, 0x104
mov ecx, esp
push 0x104
push ecx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
xchg ecx, eax
mov edx, esp
mov eax, edi
call fcn.0040241c
add esp, 0x104
pop edi
ret
push eax
call sub.KERNEL32.DLL_GetCommandLineA
pop ecx
inc ecx
call fcn.0040b8f0
mov edx, eax
call fcn.0040b900
loop 0x4044d6
mov ecx, eax
sub ecx, edx
cmp ecx, 2
jl 0x4044fa
cmp byte [edx], 0x22
jne 0x4044fa
cmp byte [eax - 1], 0x22
jne 0x4044fa
inc edx
dec eax
sub eax, edx
xchg ecx, eax
xchg edi, eax
call fcn.0040241c
pop edi
ret

Function at 0x407ef4
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebx
push esi
push ecx
mov ebx, eax
mov eax, ebx
call fcn.00402330
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x407f47
push 1
call sub.user32.dll_IsClipboardFormatAvailable
test eax, eax
je 0x407f42
push 1
call sub.user32.dll_GetClipboardData
mov esi, eax
test esi, esi
je 0x407f42
push esi
call sub.KERNEL32.DLL_GlobalLock
mov dword [esp], eax
cmp dword [esp], 0
je 0x407f42
mov eax, ebx
mov edx, dword [esp]
call fcn.0040251c
push esi
call sub.KERNEL32.DLL_GlobalUnlock
call sub.user32.dll_CloseClipboard
pop edx
pop esi
pop ebx
ret

Function at 0x40a208
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x27], 0xef
test dl, dl
je 0x40a214
or byte [eax + 0x27], 0x10
mov ecx, dword [eax + 0x1c]
jecxz 0x40a22d
push eax
je 0x40a22e
call dword [0x41e144]
pop eax
push 5
push dword [eax + 0x1c]
call sub.user32.dll_ShowWindow
ret
and byte [eax + 0x37], 0xfe
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x41e144]
ret

Function at 0x40b98c
Capabilities:
Get file attributes

Disassembly:
call fcn.00403930
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
inc eax
je 0x40b9a0
dec eax
and al, 0x10
sete al
ret

Function at 0x40d73c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x40d775
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040241c
jmp 0x40d77e
mov eax, ebx
mov edx, esi
call fcn.00402384
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40d788
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x40d7a9
mov al, byte [esp]
jmp 0x40d7ab
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40f324
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp], edx
mov esi, eax
mov eax, esi
call fcn.004025a0
add eax, 2
mov ecx, 3
cdq
idiv ecx
mov edx, eax
shl edx, 2
mov eax, dword [esp]
call fcn.00402920
mov eax, esi
call fcn.004025a0
add eax, 2
mov ecx, 3
cdq
idiv ecx
mov edi, eax
test edi, edi
jle 0x40f46b
mov ebx, 1
mov eax, esi
call fcn.004025a0
lea edx, [ebx + ebx*2]
cmp eax, edx
jge 0x40f3a3
mov eax, esi
call fcn.004025a0
mov ecx, eax
mov eax, ebx
dec eax
lea eax, [eax + eax*2]
sub ecx, eax
lea edx, [esp + 4]
mov eax, ebx
dec eax
lea eax, [eax + eax*2]
lea eax, [esi + eax]
call fcn.004012dc
jmp 0x40f3ba
lea edx, [esp + 4]
mov eax, ebx
dec eax
lea eax, [eax + eax*2]
lea eax, [esi + eax]
mov ecx, 3
call fcn.004012dc
mov al, byte [esp + 4]
mov edx, eax
and dl, 0xfc
and edx, 0xff
shr edx, 2
mov ecx, 0x40f4f0
mov dl, byte [ecx + edx]
mov byte [esp + 7], dl
and al, 3
mov ebp, eax
and ebp, 0xff
shl ebp, 4
mov dl, byte [esp + 5]
mov eax, edx
and al, 0xf0
and eax, 0xff
shr eax, 4
or ebp, eax
mov eax, 0x40f4f0
mov al, byte [eax + ebp]
mov byte [esp + 8], al
and dl, 0xf
mov ebp, edx
and ebp, 0xff
shl ebp, 2
mov al, byte [esp + 6]
mov edx, eax
and dl, 0xc0
and edx, 0xff
shr edx, 6
or ebp, edx
mov edx, 0x40f4f0
mov dl, byte [edx + ebp]
mov byte [esp + 9], dl
and al, 0x3f
and eax, 0xff
mov edx, 0x40f4f0
mov al, byte [edx + eax]
mov byte [esp + 0xa], al
mov eax, dword [esp]
call fcn.004027ec
mov edx, ebx
dec edx
shl edx, 2
lea edx, [eax + edx]
lea eax, [esp + 7]
mov ecx, 4
call fcn.004012dc
inc ebx
dec edi
jne 0x40f370
mov eax, esi
call fcn.004025a0
mov ecx, 3
cdq
idiv ecx
dec edx
jne 0x40f4b1
mov eax, dword [esp]
mov eax, dword [eax]
call fcn.004025a0
mov ebx, eax
mov eax, dword [esp]
call fcn.004027ec
mov byte [eax + ebx - 2], 0x3d
mov eax, dword [esp]
mov eax, dword [eax]
call fcn.004025a0
mov ebx, eax
mov eax, dword [esp]
call fcn.004027ec
mov byte [eax + ebx - 1], 0x3d
jmp 0x40f4de
mov eax, esi
call fcn.004025a0
mov ecx, 3
cdq
idiv ecx
cmp edx, 2
jne 0x40f4de
mov eax, dword [esp]
mov eax, dword [eax]
call fcn.004025a0
mov ebx, eax
mov eax, dword [esp]
call fcn.004027ec
mov byte [eax + ebx - 1], 0x3d
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x415d40
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x415e33
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x41fac8], 1
jne 0x415db7
xor eax, eax
mov dword [0x41fac8], eax
mov eax, dword [0x41fa70]
mov eax, dword [eax + 0x60]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 8]
push 0x415e48
mov eax, dword [0x41fa70]
mov eax, dword [eax + 0x38]
call fcn.0040ab94
mov edx, eax
dec edx
mov eax, dword [0x41fa70]
mov eax, dword [eax + 0x38]
xor ecx, ecx
call fcn.004071fc
mov ebx, dword [0x41fac4]
test ebx, ebx
jle 0x415e1d
mov esi, 0x41fb00
mov eax, dword [esi]
push eax
call sub.KERNEL32.DLL_SuspendThread
add esi, 4
dec ebx
jne 0x415da7
jmp 0x415e1d
mov dword [0x41fac8], 1
mov eax, dword [0x41fa70]
mov eax, dword [eax + 0x60]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 8]
lea edx, [ebp - 4]
mov eax, dword [0x41faf4]
call fcn.0040b9a8
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x41fa70]
mov eax, dword [eax + 0x38]
call fcn.0040ab94
mov edx, eax
dec edx
mov eax, dword [0x41fa70]
mov eax, dword [eax + 0x38]
xor ecx, ecx
call fcn.004071fc
mov ebx, dword [0x41fac4]
test ebx, ebx
jle 0x415e1d
mov esi, 0x41fb00
mov eax, dword [esi]
push eax
call sub.KERNEL32.DLL_ResumeThread
add esi, 4
dec ebx
jne 0x415e0f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415e3a
lea eax, [ebp - 4]
call fcn.00402330
ret
Function at 0x404d04
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.0040688c
test esi, esi
jne 0x404d3a
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.004069c8
jmp 0x404d58
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404c48
mov edi, eax
test esi, esi
je 0x404d58
cmp dword [ebx], 0
je 0x404d58
dec esi
jmp 0x404d41
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4058a4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405b7c
mov byte [esp], al
cmp byte [esp], 0
jne 0x405a2d
test edi, edi
je 0x405a2d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40596d
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x405948
cmp edi, 0xffffffff
je 0x405909
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405909
mov byte [esp], 0
jmp 0x405a2d
cmp dword [esi], 1
jg 0x405948
cmp dword [esi], 0
jne 0x40593a
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40593a
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405a2d
lea eax, [esp + 0xc]
call fcn.00405638
dec ebp
test ebp, ebp
jg 0x4058ee
cmp edi, 0xffffffff
je 0x40596d
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40596b
mov byte [esp], 0
jmp 0x405a2d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4058b2
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40596d
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405aa8
mov edx, eax
mov ebx, dword [0x4278f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4059d1
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4059cf
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4059d1
xor edi, edi
cmp byte [esp], 0
je 0x4059f7
mov ebx, dword [esi]
test bl, 1
jne 0x405a0d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4059d7
mov byte [esp + 1], 1
jmp 0x405a0d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4059f7
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405984
cmp byte [esp], 0
je 0x405a2d
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4065f0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x427054], 0
je 0x406657
cmp word [0x427340], 0xd7b2
jne 0x406619
cmp dword [0x427348], 0
jbe 0x406619
mov eax, 0x42733c
call dword [0x427358]
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, 0x406684
call fcn.00406eac
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x42502e], 0
jne 0x406673
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4090d0
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 0x409235
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040688c
cmp si, word [0x4259f8]
jb 0x409168
cmp si, word [0x425bf8]
ja 0x409168
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x409168
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4259f8]
jae 0x409142
mov edi, ebx
dec edi
jmp 0x409163
cmp si, word [ebx*8 + 0x4259f8]
jbe 0x409152
inc ebx
mov dword [ebp - 8], ebx
jmp 0x409163
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4259fc]
call fcn.00408ff0
jmp 0x409168
cmp edi, dword [ebp - 8]
jae 0x40912c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x409217
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x409217
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.004070c4
push dword [ebp - 0x160]
push 0x409250
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004070c4
push dword [ebp - 0x164]
push 0x409260
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004070c4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407290
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40923c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004068ec
ret
Function at 0x4093e8
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 0x4094ec
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x429c0c
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x429c24]
jne 0x409434
mov eax, esi
mov edx, 0x429c26
mov ecx, 0x55
call fcn.004070c4
push 0x429c0c
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x4094d6
push 0x429c0c
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.0040688c
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x4094a3
cmp byte [0x429c08], 0
je 0x409468
mov edx, esi
mov eax, ebx
call fcn.004092cc
jmp 0x4094a3
mov edx, esi
mov eax, ebx
call fcn.004090d0
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4094a3
cmp dword [esi], 0
je 0x40948c
mov eax, esi
mov edx, 0x409504
call fcn.004071b0
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004090d0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004071b0
push 0x429c0c
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x429c24], bx
mov eax, dword [esi]
call fcn.00407034
mov ecx, eax
mov eax, 0x429c26
mov edx, 0xaa
call fcn.00408f50
push 0x429c0c
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4094f3
lea eax, [ebp - 4]
call fcn.0040688c
ret
Function at 0x40971c
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.00406970
xor eax, eax
push ebp
push 0x409941
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40975c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x409776
mov eax, dword [ebp - 4]
call fcn.00407034
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408f50
cmp word [ebp - 0x21a], 0
je 0x40992b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409950
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409845
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409950
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409845
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40998c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409845
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40998c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409845
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4099c0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409845
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4099f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40992b
xor eax, eax
push ebp
push 0x409924
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040952c
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 0x4098b4
mov eax, dword [ebp - 0x10]
call fcn.004049a0
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.00407088
jmp 0x4098ff
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409a34
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4098ff
mov eax, dword [ebp - 0x10]
call fcn.004049a0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409a34
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407088
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40992b
cmp dword [ebp - 8], 0
je 0x40991a
mov eax, dword [ebp - 8]
call fcn.004049bc
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 0x409948
lea eax, [ebp - 4]
call fcn.0040688c
ret
Function at 0x409c48
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.00406970
xor eax, eax
push ebp
push 0x409d08
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.004070c4
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407208
mov eax, dword [ebx]
call fcn.00409af8
test al, al
jne 0x409ce5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004070c4
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407208
mov eax, dword [ebx]
call fcn.00409af8
test al, al
jne 0x409ce5
mov eax, ebx
call fcn.0040688c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409d0f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004068ec
lea eax, [ebp - 4]
call fcn.0040688c
ret

Function at 0x40b40c
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 0x419124
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
test eax, eax
jle 0x41915d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004069c8
jmp 0x419166
mov eax, ebx
mov edx, esi
call fcn.00406c20
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x419170
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x419192
movzx eax, word [esp]
jmp 0x419194
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret