joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4280d9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x455010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0042331c
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0042331c
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x428150
cmp word [ecx], dx
je 0x428150
mov eax, dword [0x44ae94]
push edi
dec eax
push eax
push 0x44ad80
call fcn.004282c9
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4281c3
cmp word [eax], dx
je 0x4281c3
mov eax, dword [edi]
test eax, eax
je 0x428174
cmp word [eax], dx
je 0x428174
lea eax, [ebp - 0x10]
push eax
call fcn.0042832a
jmp 0x42817d
lea eax, [ebp - 0x10]
push eax
call fcn.00428618
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4281ed
mov eax, dword [0x44ad7c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x44aa70
call fcn.004282c9
add esp, 0xc
test al, al
je 0x4281ed
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4281b8
cmp word [eax], di
je 0x4281b8
lea eax, [ebp - 0x10]
push eax
call fcn.0042832a
pop ecx
jmp 0x4281ef
lea eax, [ebp - 0x10]
push eax
call fcn.00428618
jmp 0x4281b5
mov eax, dword [edi]
test eax, eax
je 0x4281da
cmp word [eax], dx
je 0x4281da
lea eax, [ebp - 0x10]
push eax
call fcn.0042874c
pop ecx
jmp 0x4281ed
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4282b8
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0042883e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4282b8
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.DLL_IsValidCodePage]
test eax, eax
je 0x4282b8
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_IsValidLocale]
test eax, eax
je 0x4282b8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x428245
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00423dcb
test ebx, ebx
je 0x4282b3
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00423dcb
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x4282b8
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x4282b8
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041dfd8
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4282ba
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e959
leave
ret
Function at 0x428944
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042331c
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x4289b3
cmp esi, dword [ebp - 4]
je 0x4289ae
cmp dword [ebp + 0xc], 0
je 0x4289ae
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42898b
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00428a0d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4289b5
xor eax, eax
inc eax
jmp 0x4289b5
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x428d9b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x455010]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x428de6
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00428f11
test al, al
jne 0x428de0
sub edx, 2
cmp edx, edi
jne 0x428dc6
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x428e08
lea eax, [edi + 2]
cmp edx, eax
je 0x428e08
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00428ce7
add esp, 0x10
jmp 0x428f02
push esi
lea ecx, [ebp - 0x255]
call fcn.00428f11
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x428e4b
push dword [ebp - 0x25c]
jmp 0x428df8
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x428e88
cmp word [ebp - 0x226], 0
je 0x428ea9
cmp word [ebp - 0x226], ax
jne 0x428e88
cmp word [ebp - 0x224], 0
je 0x428ea9
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00428ce7
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x428ef5
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x428e62
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x428edd
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor eax, eax
jmp 0x428f02
push 0x428f35
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00430200
add esp, 0x10
jmp 0x428ed2
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e959
leave
ret
Function at 0x4295da
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4295eb
pop esi
ret
push ebx
push edi
push esi
call fcn.00429628
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004254a6
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x429613
push ebx
push esi
push edi
call fcn.00411550
add esp, 0xc
push 0
call fcn.00422cb4
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x42965f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042966a
Function at 0x42c6be
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x457418]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42c6fe
cmp byte [ebx], 0xa
jne 0x42c6fe
or byte [edi + eax + 0x28], 4
jmp 0x42c703
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x42c802
mov dl, byte [eax]
cmp dl, 0x1a
je 0x42c7e5
inc eax
cmp dl, 0xd
je 0x42c72f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x42c755
cmp eax, ecx
jae 0x42c763
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x42c717
jmp 0x42c802
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x42c7e0
cmp dword [ebp - 0x10], 0
je 0x42c7e0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x457418]
test byte [eax + edi + 0x28], 0x48
je 0x42c7ba
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42c7a5
mov byte [esi], dl
jmp 0x42c7b6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x457418]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42c802
cmp byte [ebp - 1], 0xa
jne 0x42c7c9
cmp esi, ebx
jne 0x42c7c9
mov byte [esi], 0xa
jmp 0x42c801
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042cb9f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42c802
mov byte [esi], 0xd
jmp 0x42c801
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x457418]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42c7ff
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42c802
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42c80b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x457418]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42c851
cmp word [ebx], dx
jne 0x42c851
or byte [eax + edi + 0x28], 4
jmp 0x42c856
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x42c9b9
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x42c999
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x42c897
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42c8cd
cmp eax, edx
jae 0x42c8db
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x42c872
jmp 0x42c9b9
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x42c994
cmp dword [ebp - 0x18], 0
je 0x42c994
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x457418]
test byte [eax + edi + 0x28], 0x48
je 0x42c96a
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x42c92e
mov word [esi], cx
jmp 0x42c965
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x457418]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x457418]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x457418]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x42c9b9
pop eax
cmp word [ebp - 4], ax
jne 0x42c97a
cmp esi, ebx
jne 0x42c97a
mov word [esi], ax
jmp 0x42c9b6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042cb9f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x42c9b9
push 0xd
pop eax
jmp 0x42c975
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x457418]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x42c9b3
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x42c9b9
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4083c4
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.00408824
mov byte [esp], al
cmp byte [esp], 0
jne 0x40854e
test edi, edi
je 0x40854e
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40848e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408469
cmp edi, 0xffffffff
je 0x408429
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408429
mov byte [esp], 0
jmp 0x40854e
mov ebx, dword [esi]
cmp ebx, 1
jg 0x408469
test ebx, ebx
jne 0x40845b
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40845b
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40854e
lea eax, [esp + 0xc]
call fcn.004080a4
dec ebp
test ebp, ebp
jg 0x40840e
cmp edi, 0xffffffff
je 0x40848e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40848c
mov byte [esp], 0
jmp 0x40854e
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4083d2
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40848e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004085bc
mov edx, eax
mov ebx, dword [0x5f28fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4084f2
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4084f0
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4084f2
xor edi, edi
cmp byte [esp], 0
je 0x408518
mov ebx, dword [esi]
test bl, 1
jne 0x40852e
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4084f8
mov byte [esp + 1], 1
jmp 0x40852e
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408518
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4084a5
cmp byte [esp], 0
je 0x40854e
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 0x409390
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5f205c], 0
je 0x4093f7
cmp word [0x5f2348], 0xd7b2
jne 0x4093b9
cmp dword [0x5f2350], 0
jbe 0x4093b9
mov eax, 0x5f2344
call dword [0x5f2360]
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, 0x409424
call fcn.00409f44
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5ec032], 0
jne 0x409413
push 0
push 0x5ec9c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4095c0
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 [0x5ec034], 0
je 0x4095eb
mov edx, edi
mov eax, esi
call dword [0x5ec034]
mov ebx, eax
jmp 0x4095fc
mov eax, 8
call fcn.00406a24
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5f205d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409588
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 0x40962c
mov eax, ebx
call fcn.00406a40
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40bfbc
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 0x40c121
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409700
cmp si, word [0x5eca00]
jb 0x40c054
cmp si, word [0x5ecc00]
ja 0x40c054
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c054
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5eca00]
jae 0x40c02e
mov edi, ebx
dec edi
jmp 0x40c04f
cmp si, word [ebx*8 + 0x5eca00]
jbe 0x40c03e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c04f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5eca04]
call fcn.0040bedc
jmp 0x40c054
cmp edi, dword [ebp - 8]
jae 0x40c018
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c103
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c103
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.0040a2e4
push dword [ebp - 0x160]
push 0x40c13c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a2e4
push dword [ebp - 0x164]
push 0x40c14c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a2e4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a51c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c128
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409760
ret
Function at 0x40c2d4
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 0x40c3d8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5f4b8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5f4ba4]
jne 0x40c320
mov eax, esi
mov edx, 0x5f4ba6
mov ecx, 0x55
call fcn.0040a2e4
push 0x5f4b8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c3c2
push 0x5f4b8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409700
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c38f
cmp byte [0x5f4b88], 0
je 0x40c354
mov edx, esi
mov eax, ebx
call fcn.0040c1b8
jmp 0x40c38f
mov edx, esi
mov eax, ebx
call fcn.0040bfbc
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c38f
cmp dword [esi], 0
je 0x40c378
mov eax, esi
mov edx, 0x40c3f0
call fcn.0040a43c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040bfbc
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a43c
push 0x5f4b8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5f4ba4], bx
mov eax, dword [esi]
call fcn.0040a240
mov ecx, eax
mov eax, 0x5f4ba6
mov edx, 0xaa
call fcn.0040be3c
push 0x5f4b8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c3df
lea eax, [ebp - 4]
call fcn.00409700
ret
Function at 0x40c608
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.004097e4
xor eax, eax
push ebp
push 0x40c82d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c648
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c662
mov eax, dword [ebp - 4]
call fcn.0040a240
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040be3c
cmp word [ebp - 0x21a], 0
je 0x40c817
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c83c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c731
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c83c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c731
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c878
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c731
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c878
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c731
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c8ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c731
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c8e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c817
xor eax, eax
push ebp
push 0x40c810
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c418
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 0x40c7a0
mov eax, dword [ebp - 0x10]
call fcn.00406a24
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.0040a2a8
jmp 0x40c7eb
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c920
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c7eb
mov eax, dword [ebp - 0x10]
call fcn.00406a24
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c920
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a2a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c817
cmp dword [ebp - 8], 0
je 0x40c806
mov eax, dword [ebp - 8]
call fcn.00406a40
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 0x40c834
lea eax, [ebp - 4]
call fcn.00409700
ret
Function at 0x40cb1c
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.004097e4
xor eax, eax
push ebp
push 0x40cbdc
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.0040a2e4
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a494
mov eax, dword [ebx]
call fcn.0040c9e4
test al, al
jne 0x40cbb9
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a2e4
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a494
mov eax, dword [ebx]
call fcn.0040c9e4
test al, al
jne 0x40cbb9
mov eax, ebx
call fcn.00409700
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cbe3
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409760
lea eax, [ebp - 4]
call fcn.00409700
ret