joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401bf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionServerServerLevels
xor esi, esi
mov dword [ebp - 0xc], 0
push 0x80000002
mov dword [ebp - 0x10], 4
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401c62
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push str.NanoServer
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401c59
cmp dword [ebp - 8], 4
jne 0x401c59
mov eax, 1
cmp dword [ebp - 0xc], eax
cmove esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401ec0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x401f7c
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x401f7c
push esi
xor esi, esi
cmp dword [ebx], esi
jle 0x401f5a
nop dword [eax]
nop dword [eax + eax]
push 0x4455a4
push dword [eax + esi*4]
call fcn.0041ebf6
add esp, 8
test eax, eax
je 0x401f1f
mov eax, dword [ebp + 0x10]
push str._accepteula
push dword [eax + esi*4]
call fcn.0041ebf6
add esp, 8
test eax, eax
je 0x401f1f
xor edi, edi
jmp 0x401f24
mov edi, 1
mov ecx, dword [ebx]
mov dword [ebp + 0xc], edi
test edi, edi
jne 0x401f37
mov eax, dword [ebp + 0x10]
inc esi
cmp esi, ecx
jl 0x401ef0
jmp 0x401f5a
lea eax, [ecx - 1]
cmp esi, eax
jge 0x401f55
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + esi*4 + 4]
mov dword [edi + esi*4], eax
inc esi
mov ecx, dword [ebx]
lea eax, [ecx - 1]
cmp esi, eax
jl 0x401f41
mov edi, dword [ebp + 0xc]
lea eax, [ecx - 1]
mov dword [ebx], eax
push edi
push dword [ebp + 8]
call fcn.00402030
add esp, 8
mov ecx, 1
test eax, eax
cmovne edi, ecx
xor eax, eax
pop esi
test edi, edi
pop edi
setne al
pop ebx
pop ebp
ret
pop edi
pop ebx
mov dword [ebp + 0x10], 0
mov dword [ebp + 0xc], 0
pop ebp
jmp fcn.00402310

Function at 0x402000
Capabilities:
Terminate process

Disassembly:
push dword [0x44f0c4]
push 0x445680
call fcn.004024d0
push str.This_is_the_first_run_of_this_program._You_must_accept_EULA_to_continue._n
call fcn.004024d0
push str.Use__accepteula_to_accept_EULA._n_n
call fcn.004024d0
add esp, 0x10
push 1
call fcn.0041f2b0
int3
Function at 0x4025d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94c
mov eax, dword [0x44f0cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 8]
push esi
push eax
push 0x44578c
call fcn.00401050
push esi
lea eax, [ebp + 8]
push eax
push 0x44578c
call fcn.00401ec0
add esp, 0x18
test eax, eax
jne 0x402620
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040294b
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
push str.NtQueryDirectoryFile
push str.ntdll.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov dword [0x450cf8], eax
test eax, eax
je 0x402814
push str.RtlNtStatusToDosError
push str.ntdll.dll
call esi
push eax
call edi
mov dword [0x450cf4], eax
test eax, eax
je 0x402828
push ebx
push 0
push 0
push 3
push 0
push 7
push 0x80000000
push str..Pipe_
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4026ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Pipe_error
call fcn.00402550
add esp, 8
xor eax, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040294b
mov esp, ebp
pop ebp
ret
push str.Max_Instances
push str.Instances
push str.Pipe_Name
push 0x445898
call fcn.00402430
push str._____________
push str._________
push str._________
push 0x445898
call fcn.00402430
push 0x1000
call fcn.0041ebeb
add esp, 0x24
mov edi, eax
lea eax, [ebp - 0x94c]
push 1
push 0
push 0
push 1
push 0x1000
push edi
push eax
push 0
push 0
push 0
push ebx
call dword [0x450cf8]
test eax, eax
js 0x4027d7
nop dword [eax]
mov esi, edi
push dword [esi + 0x28]
lea eax, [ebp - 0x144]
push 0x4458e4
push eax
call fcn.004025a0
push dword [esi + 0x30]
lea eax, [ebp - 0xa4]
push str._d
push eax
call fcn.004025a0
mov eax, dword [esi + 0x3c]
shr eax, 1
push eax
lea eax, [esi + 0x40]
push eax
lea eax, [ebp - 0x944]
push eax
call fcn.0041f790
mov eax, dword [esi + 0x3c]
add esp, 0x24
and eax, 0xfffffffe
cmp eax, 0x800
jae 0x40280f
xor ecx, ecx
mov word [ebp + eax - 0x944], cx
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x944]
push eax
push str.__40s_14s_20s_n
call fcn.004024a0
mov eax, dword [esi]
add esp, 0x10
test eax, eax
je 0x4027ad
add esi, eax
jmp 0x402722
push 0
push 0
push 0
push 1
push 0x1000
push edi
lea eax, [ebp - 0x94c]
push eax
push 0
push 0
push 0
push ebx
call dword [0x450cf8]
test eax, eax
jns 0x402720
cmp eax, 0x80000006
je 0x4027ec
push eax
push str.Error_querying_pipe_directory:
call fcn.00402500
add esp, 8
push edi
call fcn.0041ef21
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0040294b
mov esp, ebp
pop ebp
ret
call fcn.00402a7d
push str._nCould_not_find_NtQueryDirectoryFile_entry_point_in_NTDLL.DLL_n
call fcn.00402430
add esp, 4
push 1
call fcn.0041f2b0
push str._nCould_not_find_RtlNtStatusToDosError_entry_point_in_NTDLL.DLL_n
call fcn.00402430
add esp, 4
push 1
call fcn.0041f2b0
int3
Function at 0x42b6a3
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042b42a

Function at 0x42d88f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042d069

Function at 0x42d89a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042d2a4
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219

Function at 0x433003
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00431219
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a004]
jne 0x40100a
repz ret
jmp fcn.0040173e

Function at 0x4051bb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403e8e
and dword [ebp - 0x14], 0
cmp dword [0x41c308], 0
mov dword [ebp - 0x18], eax
jne 0x40526e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405316
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405316
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41c308], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41c30c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41c310], eax
call edi
push eax
call esi
mov dword [0x41c318], eax
test eax, eax
je 0x40526e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41c314], eax
mov eax, dword [0x41c314]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4052c7
cmp dword [0x41c318], ecx
je 0x4052c7
push eax
call esi
push dword [0x41c318]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4052c7
test ebx, ebx
je 0x4052c7
call edi
test eax, eax
je 0x4052be
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4052be
test byte [ebp - 8], 1
jne 0x4052c7
or dword [ebp + 0x10], 0x200000
jmp 0x4052fa
mov eax, dword [0x41c30c]
cmp eax, dword [ebp - 0x18]
je 0x4052fa
push eax
call esi
test eax, eax
je 0x4052fa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4052fa
mov eax, dword [0x41c310]
cmp eax, dword [ebp - 0x18]
je 0x4052fa
push eax
call esi
test eax, eax
je 0x4052fa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41c308]
call esi
test eax, eax
je 0x405316
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405318
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x416470
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc2c
mov eax, dword [0x41a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0xc28], eax
cmp esi, 0x182
jne 0x4164aa
lea ecx, [ebp - 0xc20]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
jmp 0x4164c8
cmp esi, 0x19f
jne 0x4164c8
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor edi, edi
test esi, esi
jle 0x416571
push ebx
mov ebx, dword [ebp - 0xc28]
lea esp, [esp]
lea esi, [ebp - 0xc24]
mov dword [ebp - 0xc24], 0
call fcn.00416460
mov dl, byte [ebp - 0xc24]
mov eax, dword [ebp - 0xc28]
mov esi, dword [ebp + 0xc]
xor byte [eax + edi], dl
cmp esi, 0xf
jne 0x416567
lea eax, [ebp - 0xc2c]
push eax
lea ecx, [ebp - 0xc04]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push str.wepetejef
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push str.wujokinozalucawisuhej
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push 0
lea edx, [ebp - 0x804]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebx
push str.naxoj
push 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, esi
jl 0x4164e0
pop ebx
pop edi
cmp esi, 0x2d
pop esi
jne 0x41658c
mov dword [0x2767030], 0xa62e7790
mov dword [0x2767034], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x4165a0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x2767024]
push esi
push edi
mov edi, dword [0x2766d44]
mov esi, eax
cmp eax, 0x5dd
jne 0x4165c2
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov eax, dword [0x41adb8]
call fcn.00416430
cmp dword [0x2767024], 0x2f
jne 0x4165dd
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push esi
push edi
call fcn.00416470
add esp, 8
cmp dword [0x2767024], 0x568
pop edi
pop esi
jne 0x416607
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
ret
Function at 0x405048
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.0040742c
test esi, esi
jne 0x40507e
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.00407578
jmp 0x40509c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404f28
mov edi, eax
test esi, esi
je 0x40509c
cmp dword [ebx], 0
je 0x40509c
dec esi
jmp 0x405085
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4062cc
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.0040678c
mov byte [esp], al
cmp byte [esp], 0
jne 0x406455
test edi, edi
je 0x406455
mov byte [esp + 1], 0
test ebp, ebp
jle 0x406395
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x406370
cmp edi, 0xffffffff
je 0x406331
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406331
mov byte [esp], 0
jmp 0x406455
cmp dword [esi], 1
jg 0x406370
cmp dword [esi], 0
jne 0x406362
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x406362
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x406455
lea eax, [esp + 0xc]
call fcn.00405f64
dec ebp
test ebp, ebp
jg 0x406316
cmp edi, 0xffffffff
je 0x406395
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406393
mov byte [esp], 0
jmp 0x406455
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4062da
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406395
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004064d0
mov edx, eax
mov ebx, dword [0x42f8f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4063f9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4063f7
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4063f9
xor edi, edi
cmp byte [esp], 0
je 0x40641f
mov ebx, dword [esi]
test bl, 1
jne 0x406435
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4063ff
mov byte [esp + 1], 1
jmp 0x406435
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40641f
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4063ac
cmp byte [esp], 0
je 0x406455
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 0x407190
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x42f054], 0
je 0x4071f7
cmp word [0x42f344], 0xd7b2
jne 0x4071b9
cmp dword [0x42f34c], 0
jbe 0x4071b9
mov eax, 0x42f340
call dword [0x42f35c]
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, 0x407224
call fcn.00407a00
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x42d032], 0
jne 0x407213
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a2b0
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 0x40a417
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040742c
cmp si, word [0x42da00]
jb 0x40a348
cmp si, word [0x42dc00]
ja 0x40a348
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40a348
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x42da00]
jae 0x40a322
mov edi, ebx
dec edi
jmp 0x40a343
cmp si, word [ebx*8 + 0x42da00]
jbe 0x40a332
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40a343
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x42da04]
call fcn.0040a1d0
jmp 0x40a348
cmp edi, dword [ebp - 8]
jae 0x40a30c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40a3f7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a3f7
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.00407c14
push dword [ebp - 0x160]
push 0x40a434
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407c14
push dword [ebp - 0x164]
push 0x40a444
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407c14
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407de4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a41e
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040748c
pop eax
jmp eax
Function at 0x40a5cc
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 0x40a6d2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x431c10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x431c28]
jne 0x40a618
mov eax, esi
mov edx, 0x431c2a
mov ecx, 0x55
call fcn.00407c14
push 0x431c10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40a6ba
push 0x431c10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040742c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40a687
cmp byte [0x431c0c], 0
je 0x40a64c
mov edx, esi
mov eax, ebx
call fcn.0040a4b0
jmp 0x40a687
mov edx, esi
mov eax, ebx
call fcn.0040a2b0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40a687
cmp dword [esi], 0
je 0x40a670
mov eax, esi
mov edx, 0x40a6ec
call fcn.00407d04
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040a2b0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407d04
push 0x431c10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x431c28], bx
mov eax, dword [esi]
call fcn.00407b88
mov ecx, eax
mov eax, 0x431c2a
mov edx, 0xaa
call fcn.0040a130
push 0x431c10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a6d9
lea eax, [ebp - 4]
call fcn.0040742c
pop eax
jmp eax
Function at 0x40a914
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407520
xor eax, eax
push ebp
push 0x40ab3c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40a95a
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40a974
mov eax, dword [ebp - 4]
call fcn.00407b88
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040a130
cmp word [ebp - 0x21e], 0
je 0x40ab1f
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ab4c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40aa43
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ab4c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40aa43
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ab88
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40aa43
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40ab88
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40aa43
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40abbc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40aa43
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40abf0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40ab1f
xor eax, eax
push ebp
push 0x40ab18
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040a714
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40aaa6
mov eax, dword [ebp - 0x14]
call fcn.00404900
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.00407bd8
jmp 0x40aaf1
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40ac30
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40aaf1
mov eax, dword [ebp - 0x14]
call fcn.00404900
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40ac30
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.00407bd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ab1f
cmp dword [ebp - 0xc], 0
je 0x40ab0c
mov eax, dword [ebp - 0xc]
call fcn.0040491c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ab43
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040748c
pop eax
jmp eax