joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460110
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x479be0]
cmp dword [eax + 0x30], 0
je 0x4601ba
cmp dword [ebx + 0x94], 0
jne 0x4601b4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4600a0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4601b4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46017a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4601b4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004181a8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x460189
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x460d1c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x460d51
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004044a0
jmp 0x460d5e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404404
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x461db0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x461df1
mov eax, esi
call fcn.004484b4
test al, al
je 0x461df1
mov eax, dword [ebx + 0x84]
call fcn.004481b0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x461df1
push 0
mov eax, dword [ebx + 0x84]
call fcn.004481b0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x463abc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x463d1c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x463b1f
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00463584
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040c788
cmp al, 1
jne 0x463b1f
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0046389c
test al, al
je 0x463cab
cmp dword [ebp - 8], 0
jge 0x463b3d
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00463584
mov eax, dword [ebp - 0x210]
call fcn.00404670
cmp ebx, eax
jge 0x463b87
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00463584
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x478958]
and eax, 0xff
bt dword [edx], eax
jae 0x463b87
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x463b9b
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00463a98
cmp ebx, dword [ebp - 8]
je 0x463c9d
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x463bc7
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0040385c
and eax, 0x7f
movzx eax, word [eax*2 + 0x477f98]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x463c8a
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0040385c
and eax, 0x7f
movzx eax, word [eax*2 + 0x477f98]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.004481b0
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0040385c
and eax, 0x7f
movzx eax, word [eax*2 + 0x477f98]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.004481b0
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463c91
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x463cfe
cmp dword [ebp - 8], 0
jge 0x463cb6
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00463584
mov eax, dword [ebp - 0x218]
call fcn.00404670
cmp eax, dword [ebp - 8]
jg 0x463cf0
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00463584
mov eax, dword [ebp - 0x21c]
call fcn.00404670
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00463a98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463d23
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.004043d4
ret
Function at 0x451032f0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x45103356
mov eax, dword [esi + 0xc]
push ebx
mov ebx, dword [ebp + 0xc]
cmp dword [eax], edi
je 0x45103329
push dword [eax]
mov ecx, ebx
call fcn.4510fa17
mov eax, dword [esi + 0xc]
inc edi
lea eax, [eax + edi*4]
cmp dword [eax], 0
jne 0x45103314
push ebx
push dword [ebx + 0x10]
lea ecx, [ebp - 8]
call fcn.45103298
push ebx
push dword [ebx + 0xc]
lea ecx, [ebp - 0x10]
call fcn.45103298
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.451032cb
add esp, 0x10
pop ebx
pop edi
pop esi
leave
ret

Function at 0x4510620e
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov ecx, dword [ecx + 4]
jmp 0x45111283
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x4512b304]
xor eax, ebp
mov dword [ebp + 0x84], eax
push 0x100
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x451112b6
xor eax, eax
jmp 0x451112e7
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x451112b2
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [ebp - 0x80]
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
push dword [ebp - 0x80]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
call fcn.45115eb4
add ebp, 0x88
leave
ret
Function at 0x4510fff2
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x451179b1
call fcn.45115ec3
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [esi + 0x14]
mov dword [esi], vtable.ProtoTaskThreadImp.0
mov dword [esi + 4], eax
call fcn.4510f3e2
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 1
call fcn.4510f414
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 2
call fcn.451122cb
push 4
mov byte [ebp - 4], 3
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
mov dword [ebp + 8], ecx
mov byte [ebp - 4], 4
test ecx, ecx
je 0x45110053
call sym.sesscomm.dll_public:_void___thiscall_ProtoMutex::constructor_void_
jmp 0x45110055
xor eax, eax
push 4
mov byte [ebp - 4], 3
mov dword [esi + 8], eax
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
mov dword [ebp + 8], ecx
mov byte [ebp - 4], 5
test ecx, ecx
je 0x45110078
call sym.sesscomm.dll_public:_void___thiscall_ProtoMutex::constructor_void_
jmp 0x4511007a
xor eax, eax
push esi
push 0
push 0x4510ffe4
mov dword [esi + 0xc], eax
call dword [sym.imp.MSVCR90.dll__beginthread]
add esp, 0xc
push 1
push eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, esi
call fcn.45115f2c
ret 4

Function at 0x45111283
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov ecx, dword [ecx + 4]
jmp 0x45111283
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x4512b304]
xor eax, ebp
mov dword [ebp + 0x84], eax
push 0x100
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x451112b6
xor eax, eax
jmp 0x451112e7
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x451112b2
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [ebp - 0x80]
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
push dword [ebp - 0x80]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
call fcn.45115eb4
add ebp, 0x88
leave
ret
Function at 0x45111bfc
Capabilities:
Resolve dns

Disassembly:
push 0x54
mov eax, 0x45117c10
call fcn.45115ec3
lea ecx, [ebp - 0x44]
call fcn.4510f3e2
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
cmp edi, esi
je 0x45111c40
mov eax, dword [edi + 0xc]
xor ebx, ebx
jmp 0x45111c3c
push dword [eax]
lea ecx, [ebp - 0x44]
call fcn.4510fa17
mov eax, dword [edi + 0xc]
inc ebx
lea eax, [eax + ebx*4]
cmp dword [eax], esi
jne 0x45111c2b
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x38]
test eax, 0xfffffffc
jne 0x45111c63
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.45112465
mov al, bl
call fcn.45115f2c
ret
push esi
call dword [sym.imp.MSVCR90.dll__time64]
mov edi, eax
pop ecx
mov ebx, edx
add edi, 1
adc ebx, esi
mov esi, dword [ebp - 0x34]
sub esi, dword [ebp - 0x38]
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0x14]
sar esi, 2
call fcn.45103298
push 0
push esi
push ebx
push edi
call fcn.45116030
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.4510f209
lea ecx, [ebp - 0x1c]
call fcn.45111bce
push dword [eax]
lea eax, [ebp - 0x60]
push eax
call sym.sesscomm.dll_public:_static_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_ProtoHelper::IPToString_unsigned_int_
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
push eax
mov byte [ebp - 4], 1
call dword [0x4511a0d8]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [ebp - 0x10], 2
dec dword [ebp - 0x10]
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x44]
add edi, 1
adc ebx, 0
sub esi, dword [ebp - 0x38]
push eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0x24]
sar esi, 2
call fcn.45103298
push 0
push esi
push ebx
push edi
call fcn.45116030
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
call fcn.4510f209
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], eax
call fcn.45111bce
mov ecx, dword [ebp + 0x10]
push eax
call fcn.4510fa17
cmp dword [ebp - 0x10], 0
jne 0x45111cda
mov bl, 1
jmp 0x45111c4f
Function at 0x45115b78
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4512b890], 0
push esi
jne 0x45115aeb
call fcn.45115a11
test eax, eax
je 0x45115b2e
mov eax, dword [0x4512b890]
cmp eax, 1
jne 0x45115b0c
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x45115b2e
pop esi
ret
push eax
call dword [0x4512b898]
test eax, eax
jne 0x45115b76
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x45115b32
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4512b890]
call dword [0x4512b898]
mov edi, eax
test edi, edi
je 0x45115b57
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x45115b73
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4512b890]
call dword [0x4512b894]
add edi, 0x10
cmp edi, esi
jb 0x45115b5f
mov eax, edi
pop edi
pop esi
ret
jmp 0x45115ad8

Function at 0x45115eb4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4512b304]
jne 0x45115ebe
repz ret
jmp fcn.451165d0
Function at 0x4083d8
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.00408838
mov byte [esp], al
cmp byte [esp], 0
jne 0x408562
test edi, edi
je 0x408562
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4084a2
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40847d
cmp edi, 0xffffffff
je 0x40843d
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40843d
mov byte [esp], 0
jmp 0x408562
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40847d
test ebx, ebx
jne 0x40846f
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40846f
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408562
lea eax, [esp + 0xc]
call fcn.004080b8
dec ebp
test ebp, ebp
jg 0x408422
cmp edi, 0xffffffff
je 0x4084a2
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4084a0
mov byte [esp], 0
jmp 0x408562
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4083e6
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4084a2
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004085d0
mov edx, eax
mov ebx, dword [0x5fc8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408506
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408504
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408506
xor edi, edi
cmp byte [esp], 0
je 0x40852c
mov ebx, dword [esi]
test bl, 1
jne 0x408542
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40850c
mov byte [esp + 1], 1
jmp 0x408542
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40852c
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4084b9
cmp byte [esp], 0
je 0x408562
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 0x4093a4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5fc05c], 0
je 0x40940b
cmp word [0x5fc348], 0xd7b2
jne 0x4093cd
cmp dword [0x5fc350], 0
jbe 0x4093cd
mov eax, 0x5fc344
call dword [0x5fc360]
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, 0x409438
call fcn.00409f58
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5f6032], 0
jne 0x409427
push 0
push 0x5f69c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4095d4
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 [0x5f6034], 0
je 0x4095ff
mov edx, edi
mov eax, esi
call dword [0x5f6034]
mov ebx, eax
jmp 0x409610
mov eax, 8
call fcn.00406a24
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5fc05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40959c
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 0x409640
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 0x40bfd0
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 0x40c135
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409714
cmp si, word [0x5f6a00]
jb 0x40c068
cmp si, word [0x5f6c00]
ja 0x40c068
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c068
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5f6a00]
jae 0x40c042
mov edi, ebx
dec edi
jmp 0x40c063
cmp si, word [ebx*8 + 0x5f6a00]
jbe 0x40c052
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c063
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5f6a04]
call fcn.0040bef0
jmp 0x40c068
cmp edi, dword [ebp - 8]
jae 0x40c02c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c117
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c117
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.0040a2f8
push dword [ebp - 0x160]
push 0x40c150
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a2f8
push dword [ebp - 0x164]
push 0x40c160
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a2f8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a530
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c13c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409774
ret
Function at 0x40c2e8
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 0x40c3ec
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5feb8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5feba4]
jne 0x40c334
mov eax, esi
mov edx, 0x5feba6
mov ecx, 0x55
call fcn.0040a2f8
push 0x5feb8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c3d6
push 0x5feb8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409714
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c3a3
cmp byte [0x5feb88], 0
je 0x40c368
mov edx, esi
mov eax, ebx
call fcn.0040c1cc
jmp 0x40c3a3
mov edx, esi
mov eax, ebx
call fcn.0040bfd0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c3a3
cmp dword [esi], 0
je 0x40c38c
mov eax, esi
mov edx, 0x40c404
call fcn.0040a450
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040bfd0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a450
push 0x5feb8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5feba4], bx
mov eax, dword [esi]
call fcn.0040a254
mov ecx, eax
mov eax, 0x5feba6
mov edx, 0xaa
call fcn.0040be50
push 0x5feb8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c3f3
lea eax, [ebp - 4]
call fcn.00409714
ret
Function at 0x40c61c
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.004097f8
xor eax, eax
push ebp
push 0x40c841
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c65c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c676
mov eax, dword [ebp - 4]
call fcn.0040a254
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040be50
cmp word [ebp - 0x21a], 0
je 0x40c82b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c850
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c745
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c850
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c745
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c88c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c745
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c88c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c745
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c8c0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c745
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c8f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c82b
xor eax, eax
push ebp
push 0x40c824
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c42c
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 0x40c7b4
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.0040a2bc
jmp 0x40c7ff
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c934
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c7ff
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 0x40c934
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a2bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c82b
cmp dword [ebp - 8], 0
je 0x40c81a
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 0x40c848
lea eax, [ebp - 4]
call fcn.00409714
ret
Function at 0x40cb30
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.004097f8
xor eax, eax
push ebp
push 0x40cbf0
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.0040a2f8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a4a8
mov eax, dword [ebx]
call fcn.0040c9f8
test al, al
jne 0x40cbcd
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a2f8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a4a8
mov eax, dword [ebx]
call fcn.0040c9f8
test al, al
jne 0x40cbcd
mov eax, ebx
call fcn.00409714
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cbf7
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409774
lea eax, [ebp - 4]
call fcn.00409714
ret