joyce8/EMBER2024-capa huggingface dataset:
Function at 0x521ce0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x9c
call fcn.005b1b50
mov eax, dword [0x637bb0]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xb0]
push ebx
mov ebx, dword [esp + 0xac]
push ebp
mov ebp, dword [esp + 0xac]
push esi
mov esi, dword [esp + 0xac]
push edi
mov edi, dword [esp + 0xbc]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
mov dword [esp + 0x10], 0
test edi, edi
je 0x521d4d
cmp edi, eax
je 0x521d41
test ebp, ebp
je 0x521dc0
test ebx, ebx
js 0x521dc0
mov dword [esp + 0x10], 1
mov dword [esi], edi
jmp 0x521d53
test eax, eax
je 0x521dc0
mov edi, eax
push edi
call fcn.004972c0
add esp, 4
test al, 2
jne 0x521dc0
test ebp, ebp
je 0x521ecb
push edi
mov dword [esp + 0x14], 1
call fcn.004b6850
add esp, 4
cmp eax, 0x90
jg 0x521dc0
cmp eax, ebx
jge 0x521ddb
push dword [esp + 0x14]
push edi
push dword [esi + 4]
call fcn.004bd150
add esp, 0xc
test eax, eax
je 0x521dc0
push ebx
push ebp
push dword [esi + 4]
call fcn.004bd300
add esp, 0xc
test eax, eax
je 0x521dc0
lea ebp, [esi + 0x10]
push ebp
lea eax, [esi + 0x14]
push eax
push dword [esi + 4]
call fcn.004bd0b0
add esp, 0xc
test eax, eax
jne 0x521df7
xor eax, eax
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005b0bf7
add esp, 0x9c
ret
cmp ebx, 0x90
ja 0x521dc0
push ebx
lea eax, [esi + 0x14]
push ebp
push eax
call sub.VCRUNTIME140.dll_memcpy
lea ebp, [esi + 0x10]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x90
je 0x521e1a
mov eax, 0x90
sub eax, ecx
push eax
lea eax, [esi + 0x14]
add eax, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov ebx, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x14]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x90
jl 0x521e20
mov ebp, dword [esp + 0x14]
push ebp
push edi
push dword [esi + 8]
call fcn.004bd150
add esp, 0xc
test eax, eax
je 0x521ed8
push edi
call fcn.004b6850
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 8]
call fcn.004bd300
add esp, 0x10
test eax, eax
je 0x521ed8
xor ecx, ecx
nop dword [eax]
mov al, byte [esi + ecx + 0x14]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x90
jl 0x521e70
push ebp
push edi
push dword [esi + 0xc]
call fcn.004bd150
add esp, 0xc
test eax, eax
je 0x521ed8
push edi
call fcn.004b6850
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 0xc]
call fcn.004bd300
add esp, 0x10
test eax, eax
je 0x521ed8
push dword [esi + 8]
push dword [esi + 4]
call fcn.004bd490
xor ebp, ebp
add esp, 8
test eax, eax
mov ecx, 1
cmovne ebp, ecx
jmp 0x521eda
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x521eaf
jmp 0x521e1e
xor ebp, ebp
test ebx, ebx
je 0x521ef0
lea eax, [esp + 0x18]
push 0x90
push eax
call fcn.00401320
add esp, 8
mov eax, ebp
jmp 0x521dc2

Function at 0x55e4b0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x55e4c4
mov dword [esp + 0x18], fcn.0055cc90
jmp fcn.005561f0
mov dword [esp + 0x18], fcn.0055bf30
jmp fcn.00555ef0
Function at 0x5a2fa0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.005b1b50
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x18]
inc ebp
push edi
mov edi, dword [esp + 0x20]
mov eax, dword [esi + 4]
mov ecx, dword [edi + 8]
mov eax, dword [eax + 0x64]
test byte [eax + 0x30], 1
je 0x5a302a
mov edx, dword [esp + 0x24]
lea eax, [edx + ebp]
cmp eax, ecx
ja 0x5a302e
add dword [edi + 0x14], edx
sub ecx, edx
add dword [edi + 0x18], edx
sub dword [edi + 0xc], edx
mov dword [edi + 8], ecx
mov eax, dword [edi + 0x14]
push ebx
push dword [esi + 0x3cc]
mov al, byte [eax + ecx - 1]
movzx ebx, al
mov byte [esp + 0x30], al
mov dword [esp + 0x24], ebx
call fcn.004bac10
push eax
call fcn.004b6860
mov esi, dword [edi + 8]
add esp, 8
mov dword [esp + 0x18], esi
and eax, 0x200000
je 0x5a3037
sub esi, ebx
mov eax, 1
dec esi
pop ebx
mov dword [edi + 8], esi
pop edi
pop esi
pop ebp
add esp, 0xc
ret
cmp ebp, ecx
jbe 0x5a2fe2
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
lea ecx, [ebx + ebp]
mov eax, esi
mov ebx, esi
xor eax, ecx
sub ebx, ecx
xor ebx, ecx
or ebx, eax
mov eax, 0x100
xor ebx, esi
shr ebx, 0x1f
dec ebx
cmp esi, eax
cmovb eax, esi
xor ebp, ebp
mov dword [esp + 0x10], eax
test eax, eax
je 0x5a30b3
mov edx, dword [esp + 0x20]
dec esi
mov edi, dword [edi + 0x14]
shr edx, 0x1f
add edi, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], edx
mov eax, esi
lea edi, [edi - 1]
sub eax, ebp
mov ecx, ebp
shr ecx, 0x1f
inc ebp
shr eax, 0x1f
xor al, cl
xor cl, dl
or al, cl
movzx ecx, byte [esp + 0x2c]
dec al
movzx edx, al
movzx eax, byte [edi + 1]
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
mov edx, dword [esp + 0x14]
cmp ebp, dword [esp + 0x10]
jb 0x5a3075
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
not ebx
movzx ecx, bl
inc eax
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub esi, eax
mov dword [edi + 8], esi
mov dword [esp + 0x2c], ecx
not ecx
pop ebx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
and ecx, 1
pop edi
pop esi
or eax, ecx
pop ebp
add esp, 0xc
ret
Function at 0x401000
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
push edi
mov eax, 0x400000
or eax, 0x148c
mov dword [ebp + 4], eax
push str.TalonTech_Consulting_LLC._n_nProcess_Viewer_v1.3_n_n
call sub.MSVCRT.dll_printf
add esp, 4
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0xffffffff
jne 0x401052
push str.CreateToolhelp32Snapshot__of_processes_
call fcn.004013d1
add esp, 4
xor eax, eax
jmp 0x4011da
mov dword [ebp - 0x12c], 0x128
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x401094
push str.Process32First
call fcn.004013d1
add esp, 4
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4011da
push str._n_n
call sub.MSVCRT.dll_printf
add esp, 4
lea eax, [ebp - 0x108]
push eax
push str._nPROCESS_NAME:___s
call sub.MSVCRT.dll_printf
add esp, 8
push str._n_______________________________________________________
call sub.MSVCRT.dll_printf
add esp, 4
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x124]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
jne 0x4010fb
push str.OpenProcess
call fcn.004013d1
add esp, 4
jmp 0x40112b
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40111e
push str.GetPriorityClass
call fcn.004013d1
add esp, 4
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x124]
push ecx
push str._n__Process_ID_________0x_08X
call sub.MSVCRT.dll_printf
add esp, 8
mov edx, dword [ebp - 0x118]
push edx
push str._n__Thread_count________d
call sub.MSVCRT.dll_printf
add esp, 8
mov eax, dword [ebp - 0x114]
push eax
push str._n__Parent_process_ID__0x_08X
call sub.MSVCRT.dll_printf
add esp, 8
mov ecx, dword [ebp - 0x110]
push ecx
push str._n__Priority_base_______d
call sub.MSVCRT.dll_printf
add esp, 8
cmp dword [ebp - 4], 0
je 0x401192
mov edx, dword [ebp - 4]
push edx
push str._n__Priority_class______d
call sub.MSVCRT.dll_printf
add esp, 8
mov eax, dword [ebp - 0x124]
push eax
call fcn.004011e1
add esp, 4
mov ecx, dword [ebp - 0x124]
push ecx
call fcn.0040130c
add esp, 4
lea edx, [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x134]
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401094
mov ecx, dword [ebp - 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4011e1
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x401219
push str.CreateToolhelp32Snapshot__of_modules_
call fcn.004013d1
add esp, 4
xor eax, eax
jmp 0x401308
mov dword [ebp - 0x228], 0x224
lea ecx, [ebp - 0x228]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Module32First
test eax, eax
jne 0x401255
push str.Module32First
call fcn.004013d1
add esp, 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x401308
lea ecx, [ebp - 0x208]
push ecx
push str._n_n_____MODULE_NAME:______s
call sub.MSVCRT.dll_printf
add esp, 8
lea edx, [ebp - 0x108]
push edx
push str._n_____Executable_______s
call sub.MSVCRT.dll_printf
add esp, 8
mov eax, dword [ebp - 0x220]
push eax
push str._n_____Process_ID______0x_08X
call sub.MSVCRT.dll_printf
add esp, 8
mov ecx, dword [ebp - 0x21c]
push ecx
push str._n_____Ref_count__g____0x_04X
call sub.MSVCRT.dll_printf
add esp, 8
mov edx, dword [ebp - 0x218]
push edx
push str._n_____Ref_count__p____0x_04X
call sub.MSVCRT.dll_printf
add esp, 8
mov eax, dword [ebp - 0x214]
push eax
push str._n_____Base_address____0x_08X
call sub.MSVCRT.dll_printf
add esp, 8
mov ecx, dword [ebp - 0x210]
push ecx
push str._n_____Base_size________d
call sub.MSVCRT.dll_printf
add esp, 8
lea edx, [ebp - 0x228]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x401255
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x40130c
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0xffffffff
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x401332
xor eax, eax
jmp 0x4013cd
mov dword [ebp - 0x20], 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x401365
push str.Thread32First
call fcn.004013d1
add esp, 4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4013cd
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 8]
jne 0x4013ad
mov ecx, dword [ebp - 0x18]
push ecx
push str._n_n_____THREAD_ID_______0x_08X
call sub.MSVCRT.dll_printf
add esp, 8
mov edx, dword [ebp - 0x10]
push edx
push str._n_____Base_priority____d
call sub.MSVCRT.dll_printf
add esp, 8
mov eax, dword [ebp - 0xc]
push eax
push str._n_____Delta_priority___d
call sub.MSVCRT.dll_printf
add esp, 8
push 0x403384
call sub.MSVCRT.dll_printf
add esp, 4
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x401365
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x401594
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402080
push 0x4016d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x403400], 0xffffffff
or dword [0x403404], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4033fc]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4033f8]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x403408], eax
call fcn.004016c5
cmp dword [0x4033e4], 0
jne 0x401617
push 0x4016c2
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.004016b0
push 0x40300c
push 0x403008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4033f4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4033f0]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x403004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call section..text
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x4071fc
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.00409cd4
test esi, esi
jne 0x407232
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.00409e5c
jmp 0x407250
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00407140
mov edi, eax
test esi, esi
je 0x407250
cmp dword [ebx], 0
je 0x407250
dec esi
jmp 0x407239
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408924
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.00408de4
mov byte [esp], al
cmp byte [esp], 0
jne 0x408aad
test edi, edi
je 0x408aad
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4089ed
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4089c8
cmp edi, 0xffffffff
je 0x408989
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408989
mov byte [esp], 0
jmp 0x408aad
cmp dword [esi], 1
jg 0x4089c8
cmp dword [esi], 0
jne 0x4089ba
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4089ba
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408aad
lea eax, [esp + 0xc]
call fcn.004085e0
dec ebp
test ebp, ebp
jg 0x40896e
cmp edi, 0xffffffff
je 0x4089ed
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4089eb
mov byte [esp], 0
jmp 0x408aad
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408932
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4089ed
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408b28
mov edx, eax
mov ebx, dword [0x6558fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408a51
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408a4f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408a51
xor edi, edi
cmp byte [esp], 0
je 0x408a77
mov ebx, dword [esi]
test bl, 1
jne 0x408a8d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408a57
mov byte [esp + 1], 1
jmp 0x408a8d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408a77
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408a04
cmp byte [esp], 0
je 0x408aad
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 0x40996c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x65505c], 0
je 0x4099d3
cmp word [0x655348], 0xd7b2
jne 0x409995
cmp dword [0x655350], 0
jbe 0x409995
mov eax, 0x655344
call dword [0x655360]
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, 0x409a00
call fcn.0040a4c4
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x614032], 0
jne 0x4099ef
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409b94
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 [0x614034], 0
je 0x409bbf
mov edx, edi
mov eax, esi
call dword [0x614034]
mov ebx, eax
jmp 0x409bd0
mov eax, 8
call fcn.00406e7c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x65505d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409b5c
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 0x409c00
mov eax, ebx
call fcn.00406e98
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c8b8
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 0x40ca1d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409cd4
cmp si, word [0x614a08]
jb 0x40c950
cmp si, word [0x614c08]
ja 0x40c950
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c950
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x614a08]
jae 0x40c92a
mov edi, ebx
dec edi
jmp 0x40c94b
cmp si, word [ebx*8 + 0x614a08]
jbe 0x40c93a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c94b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x614a0c]
call fcn.0040c7d8
jmp 0x40c950
cmp edi, dword [ebp - 8]
jae 0x40c914
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c9ff
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c9ff
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.0040a810
push dword [ebp - 0x160]
push 0x40ca38
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a810
push dword [ebp - 0x164]
push 0x40ca48
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a810
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040aa48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca24
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409d34
ret
Function at 0x40cbd0
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 0x40ccd4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x657c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x657c2c]
jne 0x40cc1c
mov eax, esi
mov edx, 0x657c2e
mov ecx, 0x55
call fcn.0040a810
push 0x657c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40ccbe
push 0x657c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409cd4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40cc8b
cmp byte [0x657c10], 0
je 0x40cc50
mov edx, esi
mov eax, ebx
call fcn.0040cab4
jmp 0x40cc8b
mov edx, esi
mov eax, ebx
call fcn.0040c8b8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40cc8b
cmp dword [esi], 0
je 0x40cc74
mov eax, esi
mov edx, 0x40ccec
call fcn.0040a968
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c8b8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a968
push 0x657c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x657c2c], bx
mov eax, dword [esi]
call fcn.0040a770
mov ecx, eax
mov eax, 0x657c2e
mov edx, 0xaa
call fcn.0040c738
push 0x657c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ccdb
lea eax, [ebp - 4]
call fcn.00409cd4
ret
Function at 0x40cf04
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.00409db8
xor eax, eax
push ebp
push 0x40d129
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40cf44
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40cf5e
mov eax, dword [ebp - 4]
call fcn.0040a770
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c738
cmp word [ebp - 0x21a], 0
je 0x40d113
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d138
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d02d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d138
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d02d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d174
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d02d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d174
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d02d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d1a8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40d02d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d1dc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40d113
xor eax, eax
push ebp
push 0x40d10c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040cd14
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 0x40d09c
mov eax, dword [ebp - 0x10]
call fcn.00406e7c
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.0040a7d4
jmp 0x40d0e7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40d21c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40d0e7
mov eax, dword [ebp - 0x10]
call fcn.00406e7c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40d21c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a7d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d113
cmp dword [ebp - 8], 0
je 0x40d102
mov eax, dword [ebp - 8]
call fcn.00406e98
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 0x40d130
lea eax, [ebp - 4]
call fcn.00409cd4
ret