joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000be60
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x1000be69
ret
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push ecx
push eax
call dword [sym.imp.kernel32.dll_CreateProcessA]
ret

Function at 0x1000c61e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10024140], 0
push esi
push edi
jne 0x1000c594
call fcn.1000c500
test eax, eax
je 0x1000c5d9
mov eax, dword [0x10024140]
cmp eax, 1
jne 0x1000c5b5
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x1000c5d9
jmp 0x1000c61b
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x1000c61b
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1000c5dd
xor eax, eax
jmp 0x1000c61b
mov eax, dword [esi]
push dword [0x10024140]
call edi
mov edi, eax
test edi, edi
je 0x1000c5ff
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x1000c61b
lea edi, [esi + 0xff0]
push esi
push dword [0x10024140]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1000c605
mov eax, esi
pop edi
pop esi
ret
jmp 0x1000c580

Function at 0x1000cc2a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10022cac]
jne 0x1000cc34
repz ret
jmp fcn.10010608

Function at 0x1001329e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x100132ad
pop dword [ebp - 0x30]
mov eax, 0x100132ad
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x37cf3
push 0
mov eax, 0x7848b220
add eax, 0x97b8ff90
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x6ea72916
add ecx, 0x915916a8
mov esi, eax
mov edi, 0x1002b200
add edi, dword [ebp - 0x30]
mov ebx, 0xb499d2d
sub ebx, 0x7032430
xor dword [ebp - 0xc], 0x3dc2ae9d
mov edx, dword [edi]
sub dword [ebp - 0x1c], 0x411e51db
sub edx, ebx
mov dword [ebp - 0x10], 0x1278356
mov dword [esi], edx
add dword [ebp - 0x14], edx
add esi, 0xaedf53a7
add esi, 0x5120ac5d
add edi, 4
loop 0x10013301
add eax, 0x4000a88
sub eax, 0x3ff18bd
mov ebx, eax
add eax, 5
mov ecx, 0xdbd0b9ab
sub ecx, 0xcbd0b9ab
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x401f30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x38
push ebp
lea eax, [esp + 4]
push edi
xor ebp, ebp
push eax
mov dword [esp + 0xc], ebp
call fcn.004013f0
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x401f56
pop edi
xor eax, eax
pop ebp
add esp, 0x38
ret
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
mov bl, 0x65
push ecx
push edx
mov byte [esp + 0x1c], 0x41
mov byte [esp + 0x1d], 0x64
mov byte [esp + 0x1e], 0x76
mov byte [esp + 0x1f], 0x61
mov byte [esp + 0x20], 0x70
mov byte [esp + 0x21], 0x69
mov byte [esp + 0x22], 0x33
mov byte [esp + 0x23], 0x32
mov byte [esp + 0x24], 0x2e
mov byte [esp + 0x25], 0x64
mov byte [esp + 0x26], 0x6c
mov byte [esp + 0x27], 0x6c
mov byte [esp + 0x28], 0
mov byte [esp + 0x2c], 0x44
mov byte [esp + 0x2d], bl
mov byte [esp + 0x2e], 0x6c
mov byte [esp + 0x2f], bl
mov byte [esp + 0x30], 0x74
mov byte [esp + 0x31], bl
mov byte [esp + 0x32], 0x53
mov byte [esp + 0x33], bl
mov byte [esp + 0x34], 0x72
mov byte [esp + 0x35], 0x76
mov byte [esp + 0x36], 0x69
mov byte [esp + 0x37], 0x63
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], 0
call fcn.004076c0
add esp, 8
cmp eax, ebp
je 0x401ffd
push edi
call eax
mov ebp, eax
lea eax, [esp + 0x34]
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x3c], 0x43
mov byte [esp + 0x3d], 0x6c
mov byte [esp + 0x3e], 0x6f
mov byte [esp + 0x3f], 0x73
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], 0x53
mov byte [esp + 0x42], bl
mov byte [esp + 0x43], 0x72
mov byte [esp + 0x44], 0x76
mov byte [esp + 0x45], 0x69
mov byte [esp + 0x46], 0x63
mov byte [esp + 0x47], bl
mov byte [esp + 0x48], 0x48
mov byte [esp + 0x49], 0x61
mov byte [esp + 0x4a], 0x6e
mov byte [esp + 0x4b], 0x64
mov byte [esp + 0x4c], 0x6c
mov byte [esp + 0x4d], bl
mov byte [esp + 0x4e], 0
call fcn.004076c0
mov esi, eax
add esp, 8
test esi, esi
je 0x40207a
push edi
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
pop esi
pop ebx
mov eax, ebp
pop edi
pop ebp
add esp, 0x38
ret
Function at 0x407510
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4114f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov al, 0x6e
mov dl, 0x6f
mov byte [ebp - 0x2e], al
mov byte [ebp - 0x29], al
mov al, 0x65
mov byte [ebp - 0x2c], dl
mov byte [ebp - 0x27], al
mov byte [ebp - 0x25], al
mov byte [ebp - 0x20], al
mov byte [ebp - 0x1a], al
mov byte [ebp - 0x17], al
mov byte [ebp - 0x15], al
mov eax, dword [ebp + 0xc]
mov byte [ebp - 0x2a], dl
mov byte [ebp - 0x1c], dl
mov bl, 0x2e
mov cl, 0x78
mov dl, 0x72
cmp eax, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x168], 0x128
mov byte [ebp - 0x30], 0x77
mov byte [ebp - 0x2f], 0x69
mov byte [ebp - 0x2d], 0x6c
mov byte [ebp - 0x2b], 0x67
mov byte [ebp - 0x28], bl
mov byte [ebp - 0x26], cl
mov byte [ebp - 0x24], 0
mov byte [ebp - 0x1f], cl
mov byte [ebp - 0x1e], 0x70
mov byte [ebp - 0x1d], 0x6c
mov byte [ebp - 0x1b], dl
mov byte [ebp - 0x19], dl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x14], 0
je 0x4075c2
lea eax, [ebp - 0x30]
mov dword [ebp - 0x3c], eax
jmp 0x4075c8
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x3c], ecx
xor ebx, ebx
cmp ebx, 0x12c
jge 0x407695
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea edx, [ebp - 0x168]
mov esi, eax
push edx
push esi
mov dword [ebp - 0x40], esi
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x407610
push esi
call fcn.00407760
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x144]
test eax, eax
je 0x40765b
mov ecx, dword [ebp - 0x3c]
lea edx, [ebp - 0x144]
push ecx
push edx
call fcn.0040a8c0
add esp, 8
test eax, eax
jne 0x40765b
mov ecx, dword [ebp - 0x160]
lea eax, [ebp - 0x38]
push eax
push ecx
call dword [0x419e3c]
cmp eax, edi
je 0x40765b
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x38]
cmp eax, edx
jne 0x40765b
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x34], eax
jmp 0x40766c
lea ecx, [ebp - 0x168]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x407610
cmp dword [ebp + 0xc], edi
jne 0x407695
cmp dword [ebp - 0x34], edi
jne 0x407695
push 0x64
call fcn.0040a80e
push esi
call fcn.00407760
add esp, 8
inc ebx
jmp 0x4075ca
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.00407760
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x34]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407760
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411500
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
mov al, 0x6c
push esi
mov cl, 0x65
push edi
mov byte [ebp - 0x27], al
mov byte [ebp - 0x22], al
mov byte [ebp - 0x21], al
mov byte [ebp - 0x1b], al
mov byte [ebp - 0x13], al
mov byte [ebp - 0x2b], cl
mov byte [ebp - 0x28], cl
mov byte [ebp - 0x18], cl
mov byte [ebp - 0x12], cl
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x2c]
xor ebx, ebx
mov dl, 0x64
push eax
push ecx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x2c], 0x4b
mov byte [ebp - 0x2a], 0x72
mov byte [ebp - 0x29], 0x6e
mov byte [ebp - 0x26], 0x33
mov byte [ebp - 0x25], 0x32
mov byte [ebp - 0x24], 0x2e
mov byte [ebp - 0x23], dl
mov byte [ebp - 0x20], bl
mov byte [ebp - 0x1c], 0x43
mov byte [ebp - 0x1a], 0x6f
mov byte [ebp - 0x19], 0x73
mov byte [ebp - 0x17], 0x48
mov byte [ebp - 0x16], 0x61
mov byte [ebp - 0x15], 0x6e
mov byte [ebp - 0x14], dl
mov byte [ebp - 0x11], bl
call fcn.004076c0
add esp, 8
cmp eax, ebx
je 0x407806
mov ecx, dword [ebp + 8]
cmp ecx, ebx
je 0x407806
cmp ecx, 0xffffffff
je 0x407806
push ecx
call eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407820
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push esi
push edi
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 0xc]
mov dword [esp + 8], 0
push eax
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x40785a
pop edi
mov eax, 1
pop esi
add esp, 0x128
ret
lea eax, [esp + 8]
mov dword [esp + 8], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4078aa
mov edi, dword [esp + 0x134]
mov eax, dword [esp + 0x10]
cmp edi, eax
je 0x407895
lea ecx, [esp + 8]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4078aa
cmp edi, dword [esp + 0x10]
jne 0x407880
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x128
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x128
ret
Function at 0x4078c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x24
mov al, 0x6c
mov cl, 0x72
mov byte [esp + 0xa], al
mov byte [esp + 0xb], al
mov al, 0x65
mov dl, 0x54
mov byte [esp + 0x15], al
mov byte [esp + 0x1a], al
mov byte [esp + 0x1f], al
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x16], cl
mov byte [esp + 0x1b], cl
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x11], dl
mov byte [esp + 0x1c], dl
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 8]
push edx
push eax
mov byte [esp + 0x10], 0x77
mov byte [esp + 0x11], 0x74
mov byte [esp + 0x12], 0x73
mov byte [esp + 0x13], 0x61
mov byte [esp + 0x14], 0x70
mov byte [esp + 0x15], 0x69
mov byte [esp + 0x16], 0x33
mov byte [esp + 0x17], 0x32
mov byte [esp + 0x18], 0x2e
mov byte [esp + 0x19], 0x64
mov byte [esp + 0x1c], 0
mov byte [esp + 0x20], 0x57
mov byte [esp + 0x22], 0x53
mov byte [esp + 0x23], 0x51
mov byte [esp + 0x24], 0x75
mov byte [esp + 0x27], 0x79
mov byte [esp + 0x28], 0x55
mov byte [esp + 0x29], 0x73
mov byte [esp + 0x2d], 0x6f
mov byte [esp + 0x2e], 0x6b
mov byte [esp + 0x30], 0x6e
mov byte [esp + 0x31], 0
call fcn.004076c0
add esp, 8
call eax
add esp, 0x24
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x405714
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x405756
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x405776
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00409fcc
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x4059cc
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.00408f98
test esi, esi
jne 0x405a02
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.00409120
jmp 0x405a20
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004058b0
mov edi, eax
test esi, esi
je 0x405a20
cmp dword [ebx], 0
je 0x405a20
dec esi
jmp 0x405a09
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x69d008], 0x8088405
inc edx
mov dword [ebx + 0x69d008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x407c48
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.004080c4
mov byte [esp], al
cmp byte [esp], 0
jne 0x407dd1
test edi, edi
je 0x407dd1
mov byte [esp + 1], 0
test ebp, ebp
jle 0x407d11
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x407cec
cmp edi, 0xffffffff
je 0x407cad
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407cad
mov byte [esp], 0
jmp 0x407dd1
cmp dword [esi], 1
jg 0x407cec
cmp dword [esi], 0
jne 0x407cde
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x407cde
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x407dd1
lea eax, [esp + 0xc]
call fcn.00407924
dec ebp
test ebp, ebp
jg 0x407c92
cmp edi, 0xffffffff
je 0x407d11
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407d0f
mov byte [esp], 0
jmp 0x407dd1
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x407c56
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407d11
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00407e40
mov edx, eax
mov ebx, dword [0x74b8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x407d75
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x407d73
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x407d75
xor edi, edi
cmp byte [esp], 0
je 0x407d9b
mov ebx, dword [esi]
test bl, 1
jne 0x407db1
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407d7b
mov byte [esp + 1], 1
jmp 0x407db1
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407d9b
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x407d28
cmp byte [esp], 0
je 0x407dd1
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 0x408c30
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x74b05c], 0
je 0x408c97
cmp word [0x74b348], 0xd7b2
jne 0x408c59
cmp dword [0x74b350], 0
jbe 0x408c59
mov eax, 0x74b344
call dword [0x74b360]
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, 0x408cc4
call fcn.004099ec
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x69d032], 0
jne 0x408cb3
push 0
push 0x69d9e2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408e58
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 [0x69d034], 0
je 0x408e83
mov edx, edi
mov eax, esi
call dword [0x69d034]
mov ebx, eax
jmp 0x408e94
mov eax, 8
call fcn.00405564
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x74b05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x408e20
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 0x408ec4
mov eax, ebx
call fcn.00405580
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40c3d0
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 0x40c535
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00408f98
cmp si, word [0x69da20]
jb 0x40c468
cmp si, word [0x69dc20]
ja 0x40c468
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c468
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x69da20]
jae 0x40c442
mov edi, ebx
dec edi
jmp 0x40c463
cmp si, word [ebx*8 + 0x69da20]
jbe 0x40c452
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c463
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x69da24]
call fcn.0040c2f0
jmp 0x40c468
cmp edi, dword [ebp - 8]
jae 0x40c42c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c517
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c517
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.00409fcc
push dword [ebp - 0x160]
push 0x40c550
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00409fcc
push dword [ebp - 0x164]
push 0x40c560
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409fcc
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a204
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c53c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00408ff8
ret
Function at 0x40c6e8
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 0x40c7ec
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x74db8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x74dba4]
jne 0x40c734
mov eax, esi
mov edx, 0x74dba6
mov ecx, 0x55
call fcn.00409fcc
push 0x74db8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c7d6
push 0x74db8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00408f98
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c7a3
cmp byte [0x74db88], 0
je 0x40c768
mov edx, esi
mov eax, ebx
call fcn.0040c5cc
jmp 0x40c7a3
mov edx, esi
mov eax, ebx
call fcn.0040c3d0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c7a3
cmp dword [esi], 0
je 0x40c78c
mov eax, esi
mov edx, 0x40c804
call fcn.0040a124
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c3d0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a124
push 0x74db8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x74dba4], bx
mov eax, dword [esi]
call fcn.00409f10
mov ecx, eax
mov eax, 0x74dba6
mov edx, 0xaa
call fcn.0040c250
push 0x74db8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c7f3
lea eax, [ebp - 4]
call fcn.00408f98
ret
Function at 0x40ca1c
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.0040907c
xor eax, eax
push ebp
push 0x40cc41
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40ca5c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40ca76
mov eax, dword [ebp - 4]
call fcn.00409f10
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c250
cmp word [ebp - 0x21a], 0
je 0x40cc2b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cc50
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cb45
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cc50
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cb45
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cc8c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cb45
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cc8c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cb45
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ccc0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cb45
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40ccf4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40cc2b
xor eax, eax
push ebp
push 0x40cc24
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c82c
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 0x40cbb4
mov eax, dword [ebp - 0x10]
call fcn.00405564
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.00409f78
jmp 0x40cbff
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40cd34
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40cbff
mov eax, dword [ebp - 0x10]
call fcn.00405564
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40cd34
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409f78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc2b
cmp dword [ebp - 8], 0
je 0x40cc1a
mov eax, dword [ebp - 8]
call fcn.00405580
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 0x40cc48
lea eax, [ebp - 4]
call fcn.00408f98
ret