joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [0x40c6f8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40106f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x40106f
mov ecx, dword [0x40c6f8]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x14]
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x40106f
push 0
lea eax, [esp + 0x10]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40106f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x401080
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x40b008]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push edi
push 0x103
lea eax, [esp + 0xd]
push 0
push eax
mov edi, ecx
mov byte [esp + 0x14], 0
call fcn.00405aa0
push 0x103
lea ecx, [esp + 0x11d]
push 0
push ecx
mov byte [esp + 0x124], 0
call fcn.00405aa0
add esp, 0x18
lea edx, [esp + 8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x401156
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x401114
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0040133b
add esp, 0x20c
ret
lea eax, [esp + 8]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401120
mov ecx, dword [str.TEMP]
mov dx, word [0x409a0c]
mov dword [eax], ecx
mov word [eax + 4], dx
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x401156
push eax
lea ecx, [esp + 0xc]
push ecx
call esi
test eax, eax
je 0x4010fb
lea edx, [esp + 0x10c]
push edx
push 0
push str.SafeSignSetup
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x4010fb
lea ecx, [esp + 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea edx, [esp + 0x110]
push edx
call esi
test eax, eax
je 0x4010fb
lea eax, [esp + 0x10c]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4011a3
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4011b0
mov dx, word [0x409a10]
mov ecx, dword [esp + 0x210]
mov word [edi], dx
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.0040133b
add esp, 0x20c
ret
Function at 0x4011e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x160
mov eax, dword [0x40b008]
xor eax, esp
mov dword [esp + 0x15c], eax
push 0x40
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00405aa0
push 0x104
lea ecx, [esp + 0x68]
push 0
push ecx
mov dword [esp + 0x2c], 0x44
call fcn.00405aa0
add esp, 0x18
lea ecx, [esp + 0x58]
call fcn.00401080
lea eax, [esp + 0x58]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401230
mov edx, dword [str.SafeSign3.exe]
mov ecx, dword [0x409a28]
mov dword [eax], edx
mov edx, dword [0x409a2c]
mov dword [eax + 4], ecx
mov cx, word [0x409a30]
push str.IsWow64Process
mov dword [eax + 8], edx
push str.kernel32
mov word [eax + 0xc], cx
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40c6f0], eax
test eax, eax
je 0x401296
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x40c6f0]
cmp dword [esp], 0
push 0x409a34
je 0x4012ae
mov eax, dword [0x40c6f8]
push 0x8e
push eax
jmp 0x4012ba
mov edx, dword [0x40c6f8]
push 0x8d
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4012d1
lea ecx, [esp + 0x58]
push ecx
call fcn.00401000
add esp, 4
push esi
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x7c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
mov ecx, dword [esp + 0x160]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040133b
add esp, 0x160
ret 0x10

Function at 0x40133b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b008]
jne 0x401345
repz ret
jmp fcn.00401589
Function at 0x404503
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004025c0
and dword [ebp - 4], 0
cmp dword [0x40c5cc], 0
mov ebx, eax
jne 0x4045b4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x404665
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x404665
push eax
call fcn.0040254e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40c5cc], eax
call esi
push eax
call fcn.0040254e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40c5d0], eax
call esi
push eax
call fcn.0040254e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40c5d4], eax
call esi
push eax
call fcn.0040254e
pop ecx
mov dword [0x40c5dc], eax
test eax, eax
je 0x4045b4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040254e
pop ecx
mov dword [0x40c5d8], eax
mov eax, dword [0x40c5d8]
cmp eax, ebx
je 0x40460c
cmp dword [0x40c5dc], ebx
je 0x40460c
push eax
call fcn.004025c9
push dword [0x40c5dc]
mov esi, eax
call fcn.004025c9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40460c
test edi, edi
je 0x40460c
call esi
test eax, eax
je 0x404603
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x404603
test byte [ebp - 0xc], 1
jne 0x40460c
or dword [ebp + 0x10], 0x200000
jmp 0x404645
mov eax, dword [0x40c5d0]
cmp eax, ebx
je 0x404645
push eax
call fcn.004025c9
pop ecx
test eax, eax
je 0x404645
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x404645
mov eax, dword [0x40c5d4]
cmp eax, ebx
je 0x404645
push eax
call fcn.004025c9
pop ecx
test eax, eax
je 0x404645
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40c5cc]
call fcn.004025c9
pop ecx
test eax, eax
je 0x404665
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x404667
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
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
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x4f1b5a85
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x69b710f8
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x30003f0
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data_1
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x76a97798
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
add eax, reloc.ntdsapi.dll_DsBindWithCredA
nop
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
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
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x405ba4
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.00408bbc
test esi, esi
jne 0x405bda
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.00408d54
jmp 0x405bf8
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00405ae8
mov edi, eax
test esi, esi
je 0x405bf8
cmp dword [ebx], 0
je 0x405bf8
dec esi
jmp 0x405be1
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x407774
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.00407c34
mov byte [esp], al
cmp byte [esp], 0
jne 0x4078fd
test edi, edi
je 0x4078fd
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40783d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x407818
cmp edi, 0xffffffff
je 0x4077d9
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4077d9
mov byte [esp], 0
jmp 0x4078fd
cmp dword [esi], 1
jg 0x407818
cmp dword [esi], 0
jne 0x40780a
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40780a
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4078fd
lea eax, [esp + 0xc]
call fcn.00407430
dec ebp
test ebp, ebp
jg 0x4077be
cmp edi, 0xffffffff
je 0x40783d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40783b
mov byte [esp], 0
jmp 0x4078fd
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x407782
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40783d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00407978
mov edx, eax
mov ebx, dword [0x5a1900]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4078a1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40789f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4078a1
xor edi, edi
cmp byte [esp], 0
je 0x4078c7
mov ebx, dword [esi]
test bl, 1
jne 0x4078dd
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4078a7
mov byte [esp + 1], 1
jmp 0x4078dd
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4078c7
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x407854
cmp byte [esp], 0
je 0x4078fd
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 0x40858c
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x5a3ba0
cmp dword [ebp + 0xc], 2
jl 0x4085a0
mov ebx, 0x5a3bd0
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x4085d8
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x4038ac
mov dword [0x5a101c], eax
mov eax, 0x4038b4
mov dword [0x5a1020], eax
mov eax, ebx
call fcn.00408470
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x40860d
cmp al, 3
jge 0x40860d
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x40861e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x408629
call dword [ecx + eax*4]
cmp dword [0x5a1040], 0
jne 0x40863f
mov byte [0x5a1048], 1
fnstcw word [0x59b02c]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.004088ec
call fcn.00408520
ret 4

Function at 0x408854
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5a105c], 0
je 0x4088bb
cmp word [0x5a134c], 0xd7b2
jne 0x40887d
cmp dword [0x5a1354], 0
jbe 0x40887d
mov eax, 0x5a1348
call dword [0x5a1364]
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, 0x4088e8
call fcn.00409424
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x59b036], 0
jne 0x4088d7
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x408a7c
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 [0x59b038], 0
je 0x408aa7
mov edx, edi
mov eax, esi
call dword [0x59b038]
mov ebx, eax
jmp 0x408ab8
mov eax, 8
call fcn.004054a4
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5a105d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x408a44
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 0x408ae8
mov eax, ebx
call fcn.004054c0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c6ac
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 0x40c813
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00408bbc
cmp si, word [0x59ba18]
jb 0x40c744
cmp si, word [0x59bc18]
ja 0x40c744
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c744
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x59ba18]
jae 0x40c71e
mov edi, ebx
dec edi
jmp 0x40c73f
cmp si, word [ebx*8 + 0x59ba18]
jbe 0x40c72e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c73f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x59ba1c]
call fcn.0040c5cc
jmp 0x40c744
cmp edi, dword [ebp - 8]
jae 0x40c708
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c7f3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c7f3
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.0040970c
push dword [ebp - 0x160]
push 0x40c830
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040970c
push dword [ebp - 0x164]
push 0x40c840
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040970c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00409944
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c81a
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00408c1c
pop eax
jmp eax
Function at 0x40c9c8
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 0x40cace
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5a3c18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5a3c30]
jne 0x40ca14
mov eax, esi
mov edx, 0x5a3c32
mov ecx, 0x55
call fcn.0040970c
push 0x5a3c18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40cab6
push 0x5a3c18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00408bbc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ca83
cmp byte [0x5a3c14], 0
je 0x40ca48
mov edx, esi
mov eax, ebx
call fcn.0040c8ac
jmp 0x40ca83
mov edx, esi
mov eax, ebx
call fcn.0040c6ac
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40ca83
cmp dword [esi], 0
je 0x40ca6c
mov eax, esi
mov edx, 0x40cae8
call fcn.00409864
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c6ac
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00409864
push 0x5a3c18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5a3c30], bx
mov eax, dword [esi]
call fcn.00409670
mov ecx, eax
mov eax, 0x5a3c32
mov edx, 0xaa
call fcn.0040c52c
push 0x5a3c18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cad5
lea eax, [ebp - 4]
call fcn.00408bbc
pop eax
jmp eax
Function at 0x40cd10
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.00408cb0
xor eax, eax
push ebp
push 0x40cf38
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40cd56
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40cd70
mov eax, dword [ebp - 4]
call fcn.00409670
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040c52c
cmp word [ebp - 0x21e], 0
je 0x40cf1b
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40cf48
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ce3f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40cf48
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ce3f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40cf84
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ce3f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40cf84
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ce3f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40cfb8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40ce3f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40cfec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40cf1b
xor eax, eax
push ebp
push 0x40cf14
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040cb10
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 0x40cea2
mov eax, dword [ebp - 0x14]
call fcn.004054a4
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.004096d0
jmp 0x40ceed
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40d02c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40ceed
mov eax, dword [ebp - 0x14]
call fcn.004054a4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40d02c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.004096d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf1b
cmp dword [ebp - 0xc], 0
je 0x40cf08
mov eax, dword [ebp - 0xc]
call fcn.004054c0
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 0x40cf3f
lea eax, [ebp - 8]
mov edx, 2
call fcn.00408c1c
pop eax
jmp eax