joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101e48f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
imul eax, dword [ebp + 8], 0x2c
add eax, dword [0x1033733c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 5
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x101e4937
mov eax, dword [ebp - 0x10]
sub eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
add eax, 2
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 0x40
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x101e4959
mov eax, 0xa
jmp 0x101e4a40
cmp dword [ebp + 0xc], 0
je 0x101e49a6
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov byte [eax], 0xe9
mov eax, dword [ebp - 0x10]
add eax, 5
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
sub edx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 1], edx
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x101e49a4
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov byte [eax], 0xeb
mov eax, dword [ebp - 0x18]
mov byte [eax + 1], 0xf9
jmp 0x101e49e2
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x101e49cd
push 7
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.100e7155
add esp, 0xc
jmp 0x101e49e2
push 5
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.100e7155
add esp, 0xc
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, byte [ebp + 0xc]
and al, 1
shl al, 1
mov ecx, dword [ebp - 4]
mov dl, byte [ecx + 0x14]
and dl, 0xfd
or dl, al
mov eax, dword [ebp - 4]
mov byte [eax + 0x14], dl
mov al, byte [ebp + 0xc]
and al, 1
shl al, 2
mov ecx, dword [ebp - 4]
mov dl, byte [ecx + 0x14]
and dl, 0xfb
or dl, al
mov eax, dword [ebp - 4]
mov byte [eax + 0x14], dl
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101e4b10
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
push 0
push 4
call fcn.100e1c4b
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x101e4c48
mov dword [ebp - 0x20], 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.100e148a
test eax, eax
je 0x101e4c3e
cmp dword [ebp - 0x20], 0x10
jb 0x101e4c22
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x101e4c22
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x101e4c22
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x101e4bb2
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0x80
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 2
push ecx
push 0
mov edx, dword [0x10337338]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x101e4bb0
jmp 0x101e4c3e
jmp 0x101e4c02
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
cmp edx, dword [ecx + 4]
jb 0x101e4c02
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 1
shl ecx, 2
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x10337338]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x101e4bec
jmp 0x101e4c3e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov edx, dword [ebp - 0x18]
mov dword [eax + ecx*4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
add ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 8], ecx
mov dword [ebp - 0x20], 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.100de4b5
test eax, eax
jne 0x101e4b4b
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101e4e10
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov eax, dword [ebp + 8]
push eax
call fcn.101e4b10
add esp, 4
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x101e4eb0
mov dword [ebp - 4], 0
jmp 0x101e4e5c
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 8]
jae 0x101e4eb0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
mov eax, dword [ecx + edx*4]
push eax
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x101e4eae
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.101e4f00
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x101e4e53
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x101e51e0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x101e5258
mov dword [ebp - 4], 0
jmp 0x101e5203
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 8]
jae 0x101e5243
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
mov eax, dword [ecx + edx*4]
push eax
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x101e5241
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x101e51fa
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x10337338]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x101e64a0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x101e64ec
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
cmp eax, 0x90
je 0x101e64ec
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
cmp eax, 0xcc
je 0x101e64ec
xor eax, eax
jmp 0x101e652d
mov dword [ebp - 4], 1
jmp 0x101e64fe
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x101e6528
mov eax, dword [ebp + 8]
add eax, dword [ebp - 4]
movzx ecx, byte [eax]
mov edx, 1
imul eax, edx, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + eax]
cmp ecx, eax
je 0x101e6526
xor eax, eax
jmp 0x101e652d
jmp 0x101e64f5
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101f2dd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 0x38], 1
push 0
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
push ecx
push 0x100dfa27
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x102136a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.102138b0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1021376d
mov edx, dword [ebp - 4]
cmp edx, dword [0x1032cdc4]
jb 0x102136ea
mov eax, dword [ebp - 4]
cmp eax, dword [0x1032cdc8]
ja 0x102136ea
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x102136ba
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100e22a4
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10213710
jmp 0x1021376d
cmp dword [ebp - 0x14], 0x10000
jne 0x10213753
cmp dword [ebp - 0x18], 0x10000
jb 0x10213753
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10213746
mov eax, dword [ebp - 8]
jmp 0x1021376f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10213768
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.102138b0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x102136ba
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x102137b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.102138e0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10213875
mov edx, dword [ebp - 4]
cmp edx, dword [0x1032cdc4]
jb 0x102137f5
mov eax, dword [ebp - 4]
cmp eax, dword [0x1032cdc8]
ja 0x102137f5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x102137c5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100e22a4
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1021381b
jmp 0x10213875
cmp dword [ebp - 0x14], 0x10000
jne 0x1021385e
cmp dword [ebp - 0x18], 0x10000
jb 0x1021385e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10213851
mov eax, dword [ebp - 8]
jmp 0x10213877
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10213870
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.102138e0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x102137c5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10216ed0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x1033823c], 0
je 0x10216ee6
xor eax, eax
jmp 0x10217102
cmp dword [0x10338238], 0
je 0x10216ef9
mov eax, dword [0x10338238]
jmp 0x10217102
push 0x24
push 0
push 0x1033820c
call fcn.100e22a4
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x1033820c], eax
push 0
push 0
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x10338210], eax
cmp dword [0x10338210], 0
jne 0x10216f9e
mov dword [0x1033823c], 1
cmp dword [0x10338210], 0
je 0x10216f51
mov eax, dword [0x10338210]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x10338214], 0
mov dword [0x10338218], 0
mov dword [0x1033821c], 0
mov dword [0x10338220], 0
mov dword [0x10338224], 0
mov dword [0x10338228], 0
mov dword [0x1033822c], 0
xor eax, eax
jmp 0x10217102
push str.ImagehlpApiVersionEx
mov ecx, dword [0x10338210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10338214], eax
push str.SymInitialize
mov edx, dword [0x10338210]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10338218], eax
push str.SymSetOptions
mov eax, dword [0x10338210]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1033821c], eax
push str.SymGetOptions
mov ecx, dword [0x10338210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10338220], eax
push str.SymLoadModule64
mov edx, dword [0x10338210]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10338224], eax
push str.SymGetModuleInfo64
mov eax, dword [0x10338210]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10338228], eax
push str.SymFromName
mov ecx, dword [0x10338210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1033822c], eax
push 8
push 0
lea edx, [ebp - 0xc]
push edx
call fcn.100e22a4
add esp, 0xc
mov eax, 0xc
mov word [ebp - 0xc], ax
cmp dword [0x10338214], 0
je 0x10217083
cmp dword [0x10338218], 0
je 0x10217083
cmp dword [0x10338224], 0
je 0x10217083
cmp dword [0x10338228], 0
je 0x10217083
cmp dword [0x1033822c], 0
jne 0x10217088
jmp 0x10216f32
lea ecx, [ebp - 0xc]
push ecx
call dword [0x10338214]
movzx edx, word [ebp - 0xc]
cmp edx, 0xc
jge 0x102170a0
jmp 0x10216f32
push 0
push 0
mov eax, dword [0x1033820c]
push eax
call dword [0x10338218]
test eax, eax
jne 0x102170b9
jmp 0x10216f32
cmp dword [0x10338220], 0
je 0x102170f3
cmp dword [0x1033821c], 0
je 0x102170f3
call dword [0x10338220]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
and ecx, 0xfffffff8
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
or edx, 0x2704
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
call dword [0x1033821c]
mov dword [0x10338238], 0x1033820c
mov eax, dword [0x10338238]
mov esp, ebp
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp int.00401219
Function at 0x404560
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406ae0
test esi, esi
jne 0x404598
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.00406c1c
jmp 0x4045b6
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044a4
mov edi, eax
test esi, esi
je 0x4045b6
cmp dword [ebx], 0
je 0x4045b6
dec esi
jmp 0x40459f
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4045e8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4c0008], 0x8088405
inc edx
mov dword [ebx + 0x4c0008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x405f60
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c3050], 0
je 0x405fc1
cmp word [0x4c332c], 0xd7b2
jne 0x405f89
cmp dword [0x4c3334], 0
jbe 0x405f89
mov eax, 0x4c3328
call dword [0x4c3344]
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 0x405fec
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4c0030], 0
jne 0x405fdd
push 0
push 0x4c079c
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40614c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4c0034], 0
je 0x406172
mov edx, esi
mov eax, ebx
call dword [0x4c0034]
jmp 0x406181
mov eax, 8
call fcn.004041ec
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4c3051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406114
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4088b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408a17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406ae0
cmp si, word [0x4c07e4]
jb 0x40894a
cmp si, word [0x4c09e4]
ja 0x40894a
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40894a
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4c07e4]
jae 0x408924
mov edi, ebx
dec edi
jmp 0x408945
cmp si, word [ebx*8 + 0x4c07e4]
jbe 0x408934
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408945
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4c07e8]
call fcn.004087c0
jmp 0x40894a
cmp edi, dword [ebp - 0xc]
jae 0x40890e
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4089f9
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4089f9
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406cc8
push dword [ebp - 0x164]
push 0x408a34
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406cc8
push dword [ebp - 0x168]
push 0x408a44
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406cc8
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407080
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a1e
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406ad8
ret
Function at 0x408bd0
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 0x408cd5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4c5b58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4c5b70]
jne 0x408c1c
mov eax, esi
mov edx, 0x4c5b74
mov ecx, 0x55
call fcn.00406cc8
push 0x4c5b58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408cbf
push 0x4c5b58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406ae0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408c8d
cmp byte [0x4c5b54], 0
je 0x408c52
mov edx, esi
mov eax, ebx
call fcn.00408ab0
jmp 0x408c8d
mov edx, esi
mov eax, ebx
call fcn.004088b0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408c8d
cmp dword [esi], 0
je 0x408c76
mov eax, esi
mov edx, 0x408cf0
call fcn.00406edc
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004088b0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406edc
push 0x4c5b58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4c5b70], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406b6c
push eax
push 0x4c5b74
call sub.kernel32.dll_lstrcpynW
push 0x4c5b58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408cdc
lea eax, [ebp - 4]
call fcn.00406ad0
ret
Function at 0x408f14
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.00406ac8
xor eax, eax
push ebp
push 0x4090f9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408f54
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408f6e
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406b6c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4090e3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409108
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408ffd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409108
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408ffd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40913c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408ffd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409170
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4090e3
xor eax, eax
push ebp
push 0x4090dc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408d18
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 0x40906c
mov eax, dword [ebp - 0x10]
call fcn.004041ec
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.00406c8c
jmp 0x4090b7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4091b0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4090b7
mov eax, dword [ebp - 0x10]
call fcn.004041ec
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4091b0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406c8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4090e3
cmp dword [ebp - 8], 0
je 0x4090d2
mov eax, dword [ebp - 8]
call fcn.00404208
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 0x409100
lea eax, [ebp - 4]
call fcn.00406ad0
ret