joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436ad0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x463683
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00457554
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x135f878
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x135e8e8
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x465044]
push eax
mov ecx, edi
call fcn.0045cbed
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0045e109
test eax, eax
je 0x436bec
mov ecx, dword [esp + 0x3c]
call fcn.0045cc1a
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x4654dc]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x436bb0
push edi
mov ecx, esi
call fcn.0045a27e
mov ecx, esi
call fcn.00436d50
cmp dword [esp + 0x38], 1
jne 0x436be5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0045a3b9
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x439610
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x439643
push esi
call fcn.0043c700
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43963c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4396c9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4396b2
mov eax, dword [esi + 8]
test eax, eax
je 0x439667
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4396ae
cmp eax, 2
je 0x4396b2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43965a
cmp eax, 3
je 0x43968d
cmp eax, 1
jne 0x43965a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43965a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43965a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004396f0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4396d8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004396f0
add esp, 4
pop esi
ret
Function at 0x401000
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa1c
push edi
mov eax, dword [ebp + 0x10]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
lea ecx, [ebp - 0x308]
call fcn.00401ad0
mov byte [ebp - 0x614], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x613]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x614]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [ebp - 0x614]
push edx
lea ecx, [ebp - 0x308]
call fcn.00401a90
mov eax, dword [str.GameNew.exe]
mov dword [ebp - 0x718], eax
mov ecx, dword [0x404034]
mov dword [ebp - 0x714], ecx
mov edx, dword [0x404038]
mov dword [ebp - 0x710], edx
mov ecx, 0x3d
xor eax, eax
lea edi, [ebp - 0x70c]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x308]
call fcn.00401b60
cmp eax, 1
jne 0x4010c5
push 0x100
lea eax, [ebp - 0x718]
push eax
lea ecx, [ebp - 0x308]
call fcn.00401c10
push eax
lea ecx, [ebp - 0x718]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov byte [ebp - 0x40c], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x40b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [ebp - 0x718]
push edx
lea eax, [ebp - 0x614]
push eax
push 0x40403c
push 0xff
lea ecx, [ebp - 0x40c]
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
mov byte [ebp - 0x100], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [ebp - 0x614]
push edx
push 0x404044
push 0xff
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
mov byte [ebp - 0x818], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x817]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
push ecx
push 0x404048
push 0xff
lea edx, [ebp - 0x818]
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
push str.config.ini
lea eax, [ebp - 0x614]
push eax
push 0x404058
push 0x103
lea ecx, [ebp - 0x510]
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea edx, [ebp - 0x510]
push edx
push 0
push str.QQFlags
push str.option
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x618], eax
xor eax, eax
cmp dword [ebp - 0x618], 1
sete al
mov dword [ebp - 0x30c], eax
cmp dword [ebp - 0x30c], 0
je 0x401231
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00401435
mov dword [ebp - 0x81c], eax
cmp dword [ebp - 0x81c], 0
je 0x401231
mov ecx, dword [ebp - 0x81c]
push ecx
push 0x404070
push 0x200
lea edx, [ebp - 0xa1c]
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
push 0
push 0x4040a4
lea eax, [ebp - 0xa1c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x401250
lea ecx, [ebp - 0x100]
push ecx
lea edx, [ebp - 0x818]
push edx
lea eax, [ebp - 0x40c]
push eax
call fcn.004012bd
add esp, 0xc
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4012bd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push edi
mov dword [ebp - 0x68], 0x44
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
push str.YXD_TCLS2.0_PROXY_QUIT_EVENT
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4012f8
xor al, al
jmp 0x401378
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x68]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x401333
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x401378
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
push 0xffffffffffffffff
push 0
lea edx, [ebp - 8]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x401b60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov dword [ebp - 0x110], ecx
cmp dword [ebp - 0x110], 0
jne 0x401b7f
xor eax, eax
jmp 0x401c03
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
mov ecx, dword [ebp - 0x110]
push ecx
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 4], eax
mov ecx, 0x104
sub ecx, dword [ebp - 4]
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 0x10c]
push edx
push str.Config.ini
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.MSVCRT.dll_strncat]
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
push 0
push str.TestServer
push str.OPTION
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esp, ebp
pop ebp
ret
Function at 0x1a02800
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x144d000]
push edi
or ebp, 0xffffffff
jmp 0x1a02822
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1a02829
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1a02818
mov eax, 1
add ebx, ebx
jne 0x1a0283b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1a0284c
jne 0x1a0286b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1a0286b
dec eax
add ebx, ebx
jne 0x1a02858
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1a02830
add ebx, ebx
jne 0x1a02867
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1a028bd
xor ecx, ecx
sub eax, 3
jb 0x1a02883
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1a028f2
sar eax, 1
mov ebp, eax
jmp 0x1a0288e
add ebx, ebx
jne 0x1a0288e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1a0285c
inc ecx
add ebx, ebx
jne 0x1a0289c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1a0285c
add ebx, ebx
jne 0x1a028a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1a0289e
jne 0x1a028ba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1a0289e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1a028dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1a028ce
jmp 0x1a0281e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1a028dc
add edi, ecx
jmp 0x1a0281e
pop esi
mov edi, esi
mov ecx, 0x4ca7b1
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x1a02917
cmp byte [edi], 0x25
jne 0x1a028fc
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x1a028fa
lea edi, [esi + 0x15c6000]
mov eax, dword [edi]
or eax, eax
je 0x1a0295f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2567cd4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2567e04]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1a0291d
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2567e0c]
or eax, eax
je 0x1a02959
mov dword [ebx], eax
add ebx, 4
jmp 0x1a0293a
call dword [esi + 0x2567e08]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1a02990
cmp al, 0xef
ja 0x1a02983
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1a02965
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1a02972
mov ebp, dword [esi + 0x2567e10]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1a029c4
sub esp, 0xffffff80
jmp 0x92006c
Function at 0x404ab0
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.00406dfc
test esi, esi
jne 0x404ae6
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.00406f84
jmp 0x404b04
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004049f4
mov edi, eax
test esi, esi
je 0x404b04
cmp dword [ebx], 0
je 0x404b04
dec esi
jmp 0x404aed
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405e68
mov byte [esp], al
cmp byte [esp], 0
jne 0x405c05
test edi, edi
je 0x405c05
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405b3c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405b17
cmp edi, 0xffffffff
je 0x405adb
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405adb
mov byte [esp], 0
jmp 0x405c05
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405b17
test ebx, ebx
jne 0x405b10
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402924
test eax, eax
jne 0x405b10
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405c05
pause
dec ebp
test ebp, ebp
jg 0x405ac0
cmp edi, 0xffffffff
je 0x405b3c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405b3a
mov byte [esp], 0
jmp 0x405c05
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405a8a
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402924
cmp ebx, eax
jne 0x405b3c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405c78
mov edx, eax
mov ebx, dword [0x5b58cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405ba3
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405ba1
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405ba3
xor edi, edi
cmp byte [esp], 0
je 0x405bcc
mov ebx, dword [esi]
test bl, 1
jne 0x405be5
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402924
cmp ebx, eax
jne 0x405ba9
mov byte [esp + 1], 1
jmp 0x405be5
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402924
cmp ebx, eax
jne 0x405bcc
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405b56
cmp byte [esp], 0
je 0x405c05
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406a60
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5b5054], 0
je 0x406ac1
cmp word [0x5b5330], 0xd7b2
jne 0x406a89
cmp dword [0x5b5338], 0
jbe 0x406a89
mov eax, 0x5b532c
call dword [0x5b5348]
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
push 0x406aec
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5ae028], 0
jne 0x406add
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406cb8
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 [0x5ae02c], 0
je 0x406ce3
mov edx, edi
mov eax, esi
call dword [0x5ae02c]
mov ebx, eax
jmp 0x406cf4
mov eax, 8
call fcn.00404728
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5b5055], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406c80
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 0x406d29
mov edx, 8
mov eax, ebx
call fcn.00404744
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x409860
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 0x4099c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406dfc
cmp si, word [0x5ae7dc]
jb 0x4098f8
cmp si, word [0x5ae9dc]
ja 0x4098f8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4098f8
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5ae7dc]
jae 0x4098d2
mov edi, ebx
dec edi
jmp 0x4098f3
cmp si, word [ebx*8 + 0x5ae7dc]
jbe 0x4098e2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4098f3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5ae7e0]
call fcn.00409770
jmp 0x4098f8
cmp edi, dword [ebp - 8]
jae 0x4098bc
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4099a7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4099a7
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.00407cd0
push dword [ebp - 0x160]
push 0x4099e0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407cd0
push dword [ebp - 0x164]
push 0x4099f0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407cd0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407f08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4099cc
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406e5c
ret
Function at 0x409b78
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 0x409c7b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5b7b55
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5b7b6e]
jne 0x409bc4
mov eax, esi
mov edx, 0x5b7b70
mov ecx, 0x55
call fcn.00407cd0
push 0x5b7b55
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409c65
push 0x5b7b55
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406dfc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409c33
cmp byte [0x5b7b54], 0
je 0x409bf8
mov edx, esi
mov eax, ebx
call fcn.00409a5c
jmp 0x409c33
mov edx, esi
mov eax, ebx
call fcn.00409860
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409c33
cmp dword [esi], 0
je 0x409c1c
mov eax, esi
mov edx, 0x409c94
call fcn.00407e28
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409860
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407e28
push 0x5b7b55
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5b7b6e], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407c34
push eax
push 0x5b7b70
call sub.kernel32.dll_lstrcpynW
push 0x5b7b55
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409c82
lea eax, [ebp - 4]
call fcn.00406dfc
ret
Function at 0x409eb0
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.00406ee0
xor eax, eax
push ebp
push 0x40a0d5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409ef0
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409f0a
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407c34
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40a0bf
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a0e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409fd9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a0e4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409fd9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a120
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409fd9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a120
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409fd9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a154
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409fd9
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40a188
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40a0bf
xor eax, eax
push ebp
push 0x40a0b8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409cbc
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 0x40a048
mov eax, dword [ebp - 0x10]
call fcn.00404728
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.00407c94
jmp 0x40a093
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40a1c8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40a093
mov eax, dword [ebp - 0x10]
call fcn.00404728
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40a1c8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407c94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a0bf
cmp dword [ebp - 8], 0
je 0x40a0ae
mov eax, dword [ebp - 8]
call fcn.00404744
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 0x40a0dc
lea eax, [ebp - 4]
call fcn.00406dfc
ret