joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c72a4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc4], 0
je 0x5c7301
cmp byte [ebx + 0xeb], 0
jne 0x5c7301
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x188]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00409ea0
mov eax, dword [esi]
test eax, eax
je 0x5c72ee
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x5c730e
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040a0f8
jmp 0x5c730e
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040a0f8
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5c8c44
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x5c8cb5
mov eax, esi
call fcn.00525690
test al, al
je 0x5c8cb5
mov eax, dword [ebx + 0x98]
call fcn.005252bc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5c8cb5
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x134]
test al, al
je 0x5c8ca6
push 0
mov eax, dword [ebx + 0x98]
call fcn.005252bc
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x98]
xor edx, edx
call fcn.0051bd74
jmp 0x5c8cb5
mov edx, dword [ebx + 0x88]
mov cl, 1
mov eax, ebx
call fcn.005c8a50
pop esi
pop ebx
ret
Function at 0x5cfaf8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x8c], 0
jne 0x5cfb76
mov eax, dword [ebx + 8]
call fcn.005252bc
mov ecx, eax
mov dl, 1
mov eax, dword [0x5328cc]
call fcn.0051f428
mov dword [ebx + 0x8c], eax
mov esi, dword [ebx + 0x8c]
xor edx, edx
mov eax, esi
call fcn.00538124
mov dword [esi + 0x2cc], ebx
mov dword [esi + 0x2c8], 0x5cf3c8
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x8c]
call fcn.005252bc
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x8c]
call fcn.005252bc
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x9c], 0
jne 0x5cfbf0
mov eax, dword [ebx + 8]
call fcn.005252bc
mov ecx, eax
mov dl, 1
mov eax, dword [0x5328cc]
call fcn.0051f428
mov dword [ebx + 0x9c], eax
mov esi, dword [ebx + 0x9c]
mov dl, 1
mov eax, esi
call fcn.00538124
mov dword [esi + 0x2cc], ebx
mov dword [esi + 0x2c8], 0x5cf414
push 8
push 0
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x9c]
call fcn.005252bc
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x9c]
call fcn.005252bc
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x94], 0
jne 0x5cfc5e
mov eax, dword [ebx + 8]
call fcn.005252bc
mov ecx, eax
mov dl, 1
mov eax, dword [0x533368]
call fcn.0051f428
mov dword [ebx + 0x94], eax
mov eax, dword [ebx + 0x94]
mov byte [eax + 0x2a0], 1
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x94]
call fcn.005252bc
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x94]
call fcn.005252bc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x607184
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffdc
mov ebx, eax
mov eax, ebx
call fcn.00409d18
mov dword [esp], 0xf
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x6071b5
lea edx, [esp + 4]
mov eax, ebx
mov ecx, dword [esp]
call fcn.00409ea0
add esp, 0x24
pop ebx
ret

Function at 0x60d66c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
mov eax, esi
mov edx, dword [0x60b99c]
call fcn.00408198
test al, al
je 0x60d785
mov edx, dword [ebx + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [ebx + 0x54]
mov eax, dword [esi + 0x54]
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [esi + 8]
mov edx, dword [ebx + 8]
call fcn.0040a0f8
lea eax, [esi + 0x10]
mov edx, dword [ebx + 0x10]
call fcn.0040a0f8
lea eax, [esi + 0x14]
mov edx, dword [ebx + 0x14]
call fcn.0040a0f8
lea eax, [esi + 0x18]
mov edx, dword [ebx + 0x18]
call fcn.0040a0f8
lea eax, [esi + 0x1c]
mov edx, dword [ebx + 0x1c]
call fcn.0040a0f8
lea eax, [esi + 0x20]
mov edx, dword [ebx + 0x20]
call fcn.0040a0f8
lea eax, [esi + 0x4c]
mov edx, dword [ebx + 0x4c]
call fcn.0040a0f8
lea eax, [esi + 0x50]
mov edx, dword [ebx + 0x50]
call fcn.0040a0f8
mov eax, dword [ebx + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [ebx + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [ebx + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [ebx + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [ebx + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [ebx + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [ebx + 0x40]
mov dword [esi + 0x40], eax
mov eax, dword [ebx + 0x44]
mov dword [esi + 0x44], eax
lea eax, [esi + 0x48]
mov edx, dword [ebx + 0x48]
call fcn.0040a0f8
mov eax, dword [ebx + 0x58]
mov dword [esi + 0x58], eax
mov eax, dword [ebx + 0x5c]
mov dword [esi + 0x5c], eax
lea eax, [esi + 0x68]
mov edx, dword [ebx + 0x68]
call fcn.0040a0f8
mov eax, dword [ebx + 0x60]
mov dword [esi + 0x60], eax
mov eax, dword [ebx + 0x64]
mov dword [esi + 0x64], eax
mov eax, dword [ebx + 0x70]
mov dword [esi + 0x70], eax
mov eax, dword [ebx + 0x74]
mov dword [esi + 0x74], eax
lea eax, [esi + 0x78]
mov edx, dword [ebx + 0x78]
call fcn.0040a0f8
movzx eax, byte [ebx + 0x7c]
mov byte [esi + 0x7c], al
lea eax, [esi + 0x80]
mov edx, dword [ebx + 0x80]
call fcn.0040a0f8
pop esi
pop ebx
ret
mov edx, esi
mov eax, ebx
call fcn.004ace70
pop esi
pop ebx
ret
Function at 0x631100
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x631108
push ecx
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x6312bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 4]
mov edx, 0x6312d8
call fcn.0040aa28
push esi
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
mov eax, dword [ebx + 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
movzx ecx, word [ebx + 0x30]
mov eax, dword [ebx + 0x1c]
xor edx, edx
call fcn.0062ecd8
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0x11
lea edx, [ebp - 0x14]
mov ecx, 1
mov eax, 0x6312ec
call fcn.005d97a0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x631183
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x6311c4
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebx + 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
movzx ecx, word [ebx + 0x30]
mov eax, dword [ebx + 0xc]
xor edx, edx
call fcn.0062ecd8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x631354
call fcn.005d97a0
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.0040a9d0
mov eax, esi
mov edx, 0x631380
call fcn.0040a9d0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x6311dc
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x63124a
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x631394
call fcn.005d97a0
mov edx, dword [ebp - 0x2c]
mov eax, esi
call fcn.0040a9d0
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x631213
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x63123e
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x6313c4
call fcn.005d97a0
mov edx, dword [ebp - 0x30]
mov eax, esi
call fcn.0040a9d0
mov eax, esi
mov edx, 0x631380
call fcn.0040a9d0
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x631256
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x631281
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x6313f0
call fcn.005d97a0
mov edx, dword [ebp - 0x34]
mov eax, esi
call fcn.0040a9d0
mov eax, esi
mov edx, 0x631380
call fcn.0040a9d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6312c4
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.00409d78
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00409d78
lea eax, [ebp - 4]
call fcn.00409d18
ret
Function at 0x65d668
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x22
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2a]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x65d69d
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x2a]
mov ecx, 0x11
call fcn.0040a878
jmp 0x65d6ae
mov esi, 0x65d6b4
lea edi, [ebp - 0x2a]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x65d6d8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x65d730
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0xc
lea eax, [ebp - 0x28]
push eax
push 0x65d74c
call sub.kernel32.dll_GetVolumeInformationW
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
mov edx, dword [ebp - 4]
mov eax, 8
call fcn.00423674
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x65d742
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x65d754
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x65d7d8
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4ec3fc]
call fcn.004ed548
mov dword [ebp - 4], eax
mov edx, 0x80000001
mov eax, dword [ebp - 4]
call fcn.004ed630
xor ecx, ecx
mov edx, 0x65d7f0
mov eax, dword [ebp - 4]
call fcn.004ed788
lea edx, [ebp - 8]
xor eax, eax
call fcn.0040720c
mov ecx, dword [ebp - 8]
mov edx, 0x65d858
mov eax, dword [ebp - 4]
call fcn.004ee0e0
mov eax, dword [ebp - 4]
call fcn.004ed600
mov eax, dword [ebp - 4]
call fcn.00407eac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65d7df
lea eax, [ebp - 8]
call fcn.00409d18
ret

Function at 0x65dc54
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x65dcd5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409d18
call sub.user32.dll_GetForegroundWindow
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x65dcbf
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_GetWindowTextLengthW
inc eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.0040a950
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040a7bc
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_GetWindowTextW
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.004229f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65dcdc
lea eax, [ebp - 0x10]
call fcn.00409d18
ret
Function at 0x406a60
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.0040932c
test esi, esi
jne 0x406a96
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.004094b4
jmp 0x406ab4
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004069a4
mov edi, eax
test esi, esi
je 0x406ab4
cmp dword [ebx], 0
je 0x406ab4
dec esi
jmp 0x406a9d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5f2008], 0x8088405
inc edx
mov dword [ebx + 0x5f2008], edx
fld qword [ebx + 0x5f2790]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret
Function at 0x408098
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.0040847c
mov byte [esp], al
cmp byte [esp], 0
jne 0x408222
test edi, edi
je 0x408222
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408162
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40813d
cmp edi, 0xffffffff
je 0x4080fd
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4080fd
mov byte [esp], 0
jmp 0x408222
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40813d
test ebx, ebx
jne 0x40812f
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40812f
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408222
lea eax, [esp + 0xc]
call fcn.00407d78
dec ebp
test ebp, ebp
jg 0x4080e2
cmp edi, 0xffffffff
je 0x408162
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408160
mov byte [esp], 0
jmp 0x408222
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4080a6
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408162
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408290
mov edx, eax
mov ebx, dword [0x5f88fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4081c6
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4081c4
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4081c6
xor edi, edi
cmp byte [esp], 0
je 0x4081ec
mov ebx, dword [esi]
test bl, 1
jne 0x408202
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4081cc
mov byte [esp + 1], 1
jmp 0x408202
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4081ec
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408179
cmp byte [esp], 0
je 0x408222
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 0x408fc8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5f805c], 0
je 0x40902f
cmp word [0x5f8348], 0xd7b2
jne 0x408ff1
cmp dword [0x5f8350], 0
jbe 0x408ff1
mov eax, 0x5f8344
call dword [0x5f8360]
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, 0x40905c
call fcn.00409b70
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5f2032], 0
jne 0x40904b
push 0
push 0x5f29ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4091ec
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 [0x5f2034], 0
je 0x409217
mov edx, edi
mov eax, esi
call dword [0x5f2034]
mov ebx, eax
jmp 0x409228
mov eax, 8
call fcn.004066e0
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5f805d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4091b4
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 0x409258
mov eax, ebx
call fcn.004066fc
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40b9e4
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 0x40bb49
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040932c
cmp si, word [0x5f2a08]
jb 0x40ba7c
cmp si, word [0x5f2c08]
ja 0x40ba7c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40ba7c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x5f2a08]
jae 0x40ba56
mov edi, ebx
dec edi
jmp 0x40ba77
cmp si, word [ebx*8 + 0x5f2a08]
jbe 0x40ba66
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40ba77
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5f2a0c]
call fcn.0040b904
jmp 0x40ba7c
cmp edi, dword [ebp - 8]
jae 0x40ba40
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40bb2b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bb2b
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.00409f14
push dword [ebp - 0x160]
push 0x40bb64
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00409f14
push dword [ebp - 0x164]
push 0x40bb74
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409f14
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a14c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bb50
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040938c
ret
Function at 0x40bcfc
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 0x40be00
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5fab8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x5faba4]
jne 0x40bd48
mov eax, esi
mov edx, 0x5faba6
mov ecx, 0x55
call fcn.00409f14
push 0x5fab8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40bdea
push 0x5fab8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040932c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bdb7
cmp byte [0x5fab88], 0
je 0x40bd7c
mov edx, esi
mov eax, ebx
call fcn.0040bbe0
jmp 0x40bdb7
mov edx, esi
mov eax, ebx
call fcn.0040b9e4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40bdb7
cmp dword [esi], 0
je 0x40bda0
mov eax, esi
mov edx, 0x40be18
call fcn.0040a06c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040b9e4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a06c
push 0x5fab8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x5faba4], bx
mov eax, dword [esi]
call fcn.00409e70
mov ecx, eax
mov eax, 0x5faba6
mov edx, 0xaa
call fcn.0040b864
push 0x5fab8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40be07
lea eax, [ebp - 4]
call fcn.0040932c
ret
Function at 0x40c030
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.00409410
xor eax, eax
push ebp
push 0x40c255
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c070
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c08a
mov eax, dword [ebp - 4]
call fcn.00409e70
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040b864
cmp word [ebp - 0x21a], 0
je 0x40c23f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c264
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c159
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c264
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c159
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c2a0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c159
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c2a0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c159
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c2d4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c159
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c308
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c23f
xor eax, eax
push ebp
push 0x40c238
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040be40
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 0x40c1c8
mov eax, dword [ebp - 0x10]
call fcn.004066e0
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.00409ed8
jmp 0x40c213
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c348
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c213
mov eax, dword [ebp - 0x10]
call fcn.004066e0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c348
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409ed8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c23f
cmp dword [ebp - 8], 0
je 0x40c22e
mov eax, dword [ebp - 8]
call fcn.004066fc
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 0x40c25c
lea eax, [ebp - 4]
call fcn.0040932c
ret