joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401890
Capabilities:
Set registry value

Disassembly:
sub esp, 0x104
xor eax, eax
push ebx
mov ebx, ecx
push ebp
push esi
lea edx, [ebx + 0x214]
push edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x14]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebp
lea ebp, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str.Speaker_Configuration
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebp, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Speaker_Type
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x118]
mov edx, dword [ebx + 0x10]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [eax*8]
lea esi, [ebx + 0xc]
add edx, ecx
push esi
mov dword [ebx + 0x10], edx
lea edx, [esp + 0x14]
mov eax, dword [ebx + 0x418]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push edx
push 0
push 0xf003f
push 0
push 0x40ad40
push 0
push 0x408358
push eax
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4019ae
mov ecx, dword [ebx + 0x10]
mov edx, dword [esp + 0x10]
push 4
push ecx
push 4
push 0
push 0x408358
push edx
call ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebx + 0x418]
lea ecx, [esp + 0x10]
push esi
push ecx
push 0
push 0xf003f
push 0
push 0x40ad40
push 0
push 0x408348
push edx
call edi
test eax, eax
jne 0x4019fa
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0x10]
add eax, 4
push 4
push eax
push 4
push 0
push 0x408348
push ecx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 4
Function at 0x401a10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
push ebx
mov edx, ecx
push esi
push edi
or ecx, 0xffffffff
mov edi, str.SYSTEMCurrentControlSet_
xor eax, eax
lea ebx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0xc], 2
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [edx + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Settings
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x20019
lea ecx, [esp + 0x24]
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
pop ebx
jne 0x401b00
lea edx, [esp + 8]
lea eax, [esp]
push edx
mov edx, dword [esp + 8]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push str.SpkrCnfg
push edx
mov dword [esp + 0x20], 0xff
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 0x110
ret
Function at 0x401b10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov edx, ecx
or ecx, 0xffffffff
xor eax, eax
push ebx
push esi
push edi
mov edi, str.SYSTEMCurrentControlSet_
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x1c]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [edx + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Settings
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x120]
xor edi, edi
lea ecx, [esp + 0x1c]
mov byte [esi], al
lea eax, [esp + 0xc]
push eax
push 0x20019
push edi
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401c1e
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push edi
push str.SRCQuality
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x28], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401c13
mov eax, dword [esp + 0x14]
cmp al, 0xff
je 0x401c1e
mov byte [esi], 1
pop edi
pop esi
and eax, 0xff
pop ebx
add esp, 0x110
ret 4
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x110
ret 4

Function at 0x401cf0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [ecx + 0xc]
lea edx, [esp + 4]
push eax
mov eax, dword [ecx + 0x418]
push edx
push 0
push 0xf003f
push 0
push 0x40ad40
push 0
push str.Device_Presence
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401d91
mov edx, dword [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 4]
push 4
push ecx
push 4
push eax
push str.Emulated
push edx
mov dword [esp + 0x1c], 1
call esi
mov ecx, dword [esp + 8]
lea eax, [esp + 4]
push 4
push eax
push 4
push 0
push 0x408420
push ecx
mov dword [esp + 0x1c], 1
call esi
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push 4
push edx
push 4
push 0
push 0x40841c
push eax
mov dword [esp + 0x1c], 1
call esi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 8
ret
Function at 0x401da0
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
push edi
mov edi, ecx
lea ecx, [esp + 4]
push eax
mov edx, dword [edi + 0x418]
push ecx
push 0
push 0xf003f
push 0
push 0x40ad40
push 0
push str.Mixer_Defaults
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401e52
mov ecx, dword [esp + 4]
mov dword [esp + 8], eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push str.Acceleration
push ecx
call esi
cmp byte [esp + 0x18], 1
jne 0x401e16
mov eax, dword [esp + 8]
lea edx, [esp + 0x1c]
push 4
push edx
push 4
push 0
push str.SRC_Quality
push eax
jmp 0x401e44
mov ecx, edi
call fcn.00401520
cmp ax, 1
je 0x401e30
mov ecx, edi
call fcn.00401520
cmp ax, 2
jne 0x401e46
mov ecx, dword [esp + 8]
add edi, 8
push 4
push edi
push 4
push 0
push str.SRC_Quality
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
add esp, 0xc
ret 8

Function at 0x401eb0
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
push 4
push 0
push 0
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
push 4
push str.HDAudBus
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x401ef1
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x401ef1
cmp dword [esp + 0x10], 4
je 0x401ef3
xor bl, bl
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x4036dd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408548
cmp edx, dword [eax]
je 0x4036ff
add eax, 8
inc ecx
cmp eax, 0x4085d8
jl 0x4036f0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408548]
jne 0x40382d
mov eax, dword [0x40ad98]
cmp eax, 1
je 0x403807
test eax, eax
jne 0x403730
cmp dword [0x408494], 1
je 0x403807
cmp edx, 0xfc
je 0x40382d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403767
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404200
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403ba0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4037aa
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403ba0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x407474
push edi
call fcn.004059d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404200
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404210
lea eax, [ebp - 0xa0]
push 0x407454
push eax
call fcn.00404210
push dword [esi + 0x40854c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404210
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405944
add esp, 0x2c
pop edi
jmp 0x40382d
lea eax, [ebp + 8]
lea esi, [esi + 0x40854c]
push 0
push eax
push dword [esi]
call fcn.00403ba0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40e505
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40e514
pop dword [ebp - 0xc]
mov eax, 0x40e514
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xb2d28cf9
add dword [ebp - 0x1c], 0x9b7fb852
mov dword [ebp - 0x18], 0xac7c420e
add dword [ebp - 0x18], 0x85b70a37
mov dword [ebp - 0x14], 0xdc0fc290
add dword [ebp - 0x14], 0x703c819e
mov dword [ebp - 0x10], 0xbdfc4064
add dword [ebp - 0x10], 0x4203bf9c
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x5bbc227
add eax, 0xfa866e4d
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xd78ec220
add dword [ebp - 0x1c], 0x9ce3a736
mov dword [ebp - 0x18], 0xb092dce3
add dword [ebp - 0x18], 0x90d98492
mov dword [ebp - 0x14], 0x8a59bab0
sub dword [ebp - 0x14], 0x26ea4e44
mov dword [ebp - 0x10], 0xb17d51ed
add dword [ebp - 0x10], 0x4e82ae13
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x114ebe85
add eax, 0xeef3729f
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3dd90
push 0
call eax
mov ecx, 0x83916117
add ecx, 0x7c6ee769
mov esi, eax
mov edx, 0x434400
add edx, dword [ebp - 0xc]
mov edi, 0xfe366b27
sub edi, 0xa028185d
mov ebx, dword [edx]
xor dword [ebp - 8], esi
add ebx, edi
sub dword [ebp - 8], edx
mov dword [esi], ebx
add esi, 0xdac787b8
sub esi, 0xdac787b4
add edx, 0x9cb82f0b
sub edx, 0x9cb82f07
loop 0x40e62b
add eax, 0x9f8b4739
add eax, 0x6075cd9a
mov ebx, eax
add eax, 5
mov ecx, 0xd3ced2ca
sub ecx, 0xd38ed2ca
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x40422c
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.00405e70
test esi, esi
jne 0x404262
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.00405fd8
jmp 0x404280
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404170
mov edi, eax
test esi, esi
je 0x404280
cmp dword [ebx], 0
je 0x404280
dec esi
jmp 0x404269
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405078
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.00405314
mov byte [esp], al
cmp byte [esp], 0
jne 0x405202
test edi, edi
je 0x405202
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405142
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40511d
cmp edi, 0xffffffff
je 0x4050dd
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4050dd
mov byte [esp], 0
jmp 0x405202
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40511d
test ebx, ebx
jne 0x40510f
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40510f
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405202
lea eax, [esp + 0xc]
call fcn.00404e28
dec ebp
test ebp, ebp
jg 0x4050c2
cmp edi, 0xffffffff
je 0x405142
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405140
mov byte [esp], 0
jmp 0x405202
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405086
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405142
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405270
mov edx, eax
mov ebx, dword [0x41f8f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4051a6
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4051a4
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4051a6
xor edi, edi
cmp byte [esp], 0
je 0x4051cc
mov ebx, dword [esi]
test bl, 1
jne 0x4051e2
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4051ac
mov byte [esp + 1], 1
jmp 0x4051e2
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4051cc
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405159
cmp byte [esp], 0
je 0x405202
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 0x405be4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41f054], 0
je 0x405c4b
cmp word [0x41f340], 0xd7b2
jne 0x405c0d
cmp dword [0x41f348], 0
jbe 0x405c0d
mov eax, 0x41f33c
call dword [0x41f358]
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, 0x405c78
call fcn.00406460
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41d022], 0
jne 0x405c67
push 0
push 0x41d9aa
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4078c4
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 0x407a29
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405e70
cmp si, word [0x41d9e8]
jb 0x40795c
cmp si, word [0x41dbe8]
ja 0x40795c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40795c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x41d9e8]
jae 0x407936
mov edi, ebx
dec edi
jmp 0x407957
cmp si, word [ebx*8 + 0x41d9e8]
jbe 0x407946
inc ebx
mov dword [ebp - 8], ebx
jmp 0x407957
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x41d9ec]
call fcn.004077e4
jmp 0x40795c
cmp edi, dword [ebp - 8]
jae 0x407920
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x407a0b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x407a0b
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.004065f8
push dword [ebp - 0x160]
push 0x407a44
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004065f8
push dword [ebp - 0x164]
push 0x407a54
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004065f8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004067b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407a30
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00405ed0
ret
Function at 0x407bdc
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 0x407ce0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x421b84
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x421b9c]
jne 0x407c28
mov eax, esi
mov edx, 0x421b9e
mov ecx, 0x55
call fcn.004065f8
push 0x421b84
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x407cca
push 0x421b84
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00405e70
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x407c97
cmp byte [0x421b80], 0
je 0x407c5c
mov edx, esi
mov eax, ebx
call fcn.00407ac0
jmp 0x407c97
mov edx, esi
mov eax, ebx
call fcn.004078c4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x407c97
cmp dword [esi], 0
je 0x407c80
mov eax, esi
mov edx, 0x407cf8
call fcn.004066d0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004078c4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004066d0
push 0x421b84
call sub.kernel32.dll_EnterCriticalSection
mov word [0x421b9c], bx
mov eax, dword [esi]
call fcn.00406564
mov ecx, eax
mov eax, 0x421b9e
mov edx, 0xaa
call fcn.00407744
push 0x421b84
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407ce7
lea eax, [ebp - 4]
call fcn.00405e70
ret
Function at 0x407f10
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.00405f54
xor eax, eax
push ebp
push 0x408135
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x407f50
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x407f6a
mov eax, dword [ebp - 4]
call fcn.00406564
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00407744
cmp word [ebp - 0x21a], 0
je 0x40811f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408144
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408039
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408144
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408039
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408180
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408039
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408180
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408039
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4081b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408039
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4081e8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40811f
xor eax, eax
push ebp
push 0x408118
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00407d20
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 0x4080a8
mov eax, dword [ebp - 0x10]
call fcn.00403ecc
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.004065bc
jmp 0x4080f3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408228
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4080f3
mov eax, dword [ebp - 0x10]
call fcn.00403ecc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408228
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004065bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40811f
cmp dword [ebp - 8], 0
je 0x40810e
mov eax, dword [ebp - 8]
call fcn.00403ee8
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 0x40813c
lea eax, [ebp - 4]
call fcn.00405e70
ret
Function at 0x408424
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.00405f54
xor eax, eax
push ebp
push 0x4084e4
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.004065f8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406728
mov eax, dword [ebx]
call fcn.004082ec
test al, al
jne 0x4084c1
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004065f8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406728
mov eax, dword [ebx]
call fcn.004082ec
test al, al
jne 0x4084c1
mov eax, ebx
call fcn.00405e70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4084eb
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00405ed0
lea eax, [ebp - 4]
call fcn.00405e70
ret

Function at 0x408b68
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 0x415514
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 0x41554d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405fd8
jmp 0x415556
mov eax, ebx
mov edx, esi
call fcn.0040618c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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