joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477030
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4770d3
test eax, eax
jbe 0x4770d3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4770d3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x47707e
xor esi, esi
jmp 0x477084
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4770af
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0047a7d0
add esi, eax
push esi
mov ebx, esi
call fcn.0047a7d0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x477090
pop ebp
test edi, edi
pop edi
jne 0x4770d3
test ebx, ebx
je 0x4770d3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00495e20
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x477230
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x47734d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47734d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00488e65
mov esi, eax
test esi, esi
je 0x47734d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x47734d
mov ecx, esi
call fcn.004771c0
cmp edi, eax
jge 0x47734d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4772d3
mov dword [esp + 0x34], 1
jmp 0x47732e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x47734d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00476730
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x47b1d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4ade1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
lea eax, [esp + 0x14]
push esi
xor esi, esi
push eax
push 0x104
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x104
jae 0x47b2b0
lea ecx, [esp + 0x18]
lea edx, [esp + 0x18]
push ecx
push esi
push 0x50613c
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
cmp eax, esi
je 0x47b2b0
lea eax, [esp + 0x18]
push 0x1001
push eax
lea ecx, [esp + 0xc]
call fcn.00487a08
mov dword [esp + 0x128], esi
mov esi, dword [esp + 0x134]
push str.lt_
push 0x506130
mov ecx, esi
call fcn.00484555
push str.gt_
push 0x506124
mov ecx, esi
call fcn.00484555
mov esi, dword [esi]
lea ecx, [esp + 4]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00487cbc
lea ecx, [esp + 4]
call fcn.00487d80
mov esi, dword [esp + 0x130]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.004873bd
lea ecx, [esp + 4]
mov dword [esp + 0x128], 0xffffffff
call fcn.00487aa8
jmp 0x47b2c3
mov esi, dword [esp + 0x130]
push 0x524380
mov ecx, esi
call fcn.004873bd
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x128
ret

Function at 0x47e373
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x14], edi
mov ebx, ecx
je 0x47e3b1
call fcn.00490bb8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x47e3b1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x47e3c8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push 1
test edi, edi
pop eax
je 0x47e3c8
push dword [esp + 0x18]
mov eax, dword [ebx]
mov ecx, ebx
push edi
push dword [esp + 0x18]
call dword [eax + 0x1c]
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x48980a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x489842
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004877f6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004877ce
jmp 0x48984e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48aefc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48af3e
call fcn.00490bb8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48af3e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48af35
xor eax, eax
jmp 0x48af46
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048af4c
pop edi
pop esi
pop ebx
ret 4
Function at 0x4a6da8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x507cd4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0049b913
mov dword [ebp - 0x14], eax
cmp dword [0x5271ec], esi
jne 0x4a6e9b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4a6e28
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4a6f7b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4a6f7b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a6f7b
push eax
call ebx
push 0x4e9dbc
push edi
mov dword [0x5271ec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4e9dcc
push edi
mov dword [0x5271f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5271f4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5271fc], eax
test eax, eax
je 0x4a6e98
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5271f8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4a6ec0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4a6eb3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4a6ed5
push 4
pop eax
jmp 0x4a6f7d
cmp dword [ebp - 0x14], esi
je 0x4a6ed5
push dword [0x5271ec]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4a6eba
mov eax, dword [0x5271f8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4a6f33
cmp dword [0x5271fc], edi
je 0x4a6f33
push eax
call ebx
push dword [0x5271fc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4a6f33
test eax, eax
je 0x4a6f33
call ecx
test eax, eax
je 0x4a6f28
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4a6f28
test byte [ebp - 8], 1
jne 0x4a6f33
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4a6f63
mov eax, dword [0x5271f0]
cmp eax, edi
je 0x4a6f60
push eax
call ebx
test eax, eax
je 0x4a6f60
call eax
mov esi, eax
test esi, esi
je 0x4a6f60
mov eax, dword [0x5271f4]
cmp eax, edi
je 0x4a6f60
push eax
call ebx
test eax, eax
je 0x4a6f60
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5271ec]
call ebx
test eax, eax
je 0x4a6f7b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4a6f7d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049ee99
mov esp, ebp
pop ebp
ret
Function at 0x402093
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push 0x1040
xor eax, eax
push 1
push eax
push eax
push eax
push eax
push 1
push dword [ebp + 8]
lea ecx, [ebp + 0x10]
push 0xffffffffffffffff
call dword [sym.imp.qt_mt312.dll_Ordinal_3380]
push eax
lea eax, [ebp + 8]
push eax
call dword [sym.imp.qt_mt312.dll_Ordinal_5758]
add esp, 0xc
lea ecx, [ebp - 0x98]
push eax
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.qt_mt312.dll_Ordinal_603]
lea ecx, [ebp + 8]
call dword [sym.imp.qt_mt312.dll_Ordinal_1453]
call fcn.00405520
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.qt_mt312.dll_Ordinal_681]
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x98]
push eax
call dword [sym.imp.qt_mt312.dll_Ordinal_10627]
lea ecx, [ebp - 0x10]
call dword [sym.imp.qt_mt312.dll_Ordinal_1411]
lea ecx, [ebp - 0x98]
call dword [sym.imp.qt_mt312.dll_Ordinal_5334]
push 1
call fcn.0041ef70
Function at 0x4240b9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42ece0
cmp edx, dword [eax]
je 0x4240db
add eax, 8
inc ecx
cmp eax, 0x42ed70
jl 0x4240cc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42ece0]
jne 0x424209
mov eax, dword [0x430548]
cmp eax, 1
je 0x4241e3
test eax, eax
jne 0x42410c
cmp dword [0x42c684], 1
je 0x4241e3
cmp edx, 0xfc
je 0x424209
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x424143
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041fa50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041e9a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x424186
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041e9a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x427f1c
push edi
call fcn.00424dd0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041fa50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041fa60
lea eax, [ebp - 0xa0]
push 0x427efc
push eax
call fcn.0041fa60
push dword [esi + 0x42ece4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041fa60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00425e66
add esp, 0x2c
pop edi
jmp 0x424209
lea eax, [ebp + 8]
lea esi, [esi + 0x42ece4]
push 0
push eax
push dword [esi]
call fcn.0041e9a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x405bb8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x44404c], 0
je 0x405c19
cmp word [0x444328], 0xd7b2
jne 0x405be1
cmp dword [0x444330], 0
jbe 0x405be1
mov eax, 0x444324
call dword [0x444340]
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
push 0x405c44
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x442030], 0
jne 0x405c35
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40804c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4081b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406540
cmp si, word [0x4427c4]
jb 0x4080e6
cmp si, word [0x4429c4]
ja 0x4080e6
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4080e6
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4427c4]
jae 0x4080c0
mov edi, ebx
dec edi
jmp 0x4080e1
cmp si, word [ebx*8 + 0x4427c4]
jbe 0x4080d0
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4080e1
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4427c8]
call fcn.00407f5c
jmp 0x4080e6
cmp edi, dword [ebp - 0xc]
jae 0x4080aa
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408195
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408195
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406728
push dword [ebp - 0x164]
push 0x4081d0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406728
push dword [ebp - 0x168]
push 0x4081e0
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406728
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406ad4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4081ba
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406538
ret
Function at 0x4081e4
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x4083ca
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x446b54
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x446b6c]
cmp ax, word [ebp - 2]
jne 0x40823c
mov eax, dword [ebp - 6]
mov edx, 0x446b70
mov ecx, 0x55
call fcn.00406728
push 0x446b54
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4083b4
push 0x446b54
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.00406540
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40837c
cmp byte [0x446b50], 0
je 0x408332
call dword [0x446b48]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x446b4c]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x40832b
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x446b44]
test al, al
je 0x408304
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.00404180
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x446b44]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x4082f9
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x4082f5
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x4082e2
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.004066ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40837c
movzx eax, word [ebp - 0x16]
push eax
call dword [0x446b4c]
cmp dword [ebp - 0x10], 0
je 0x40832a
mov eax, dword [ebp - 0x10]
call fcn.0040419c
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.0040804c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x40837c
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x408361
mov eax, dword [ebp - 6]
mov edx, 0x4083e4
call fcn.00406930
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.0040804c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00406930
mov eax, dword [ebp - 6]
push 0x446b54
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x446b6c], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.004065cc
push eax
push 0x446b70
call sub.kernel32.dll_lstrcpynW
push 0x446b54
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4083d1
lea eax, [ebp - 0x1c]
call fcn.00406530
ret
Function at 0x408608
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.00406528
xor eax, eax
push ebp
push 0x4087ed
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408648
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408662
push 0x105
mov eax, dword [ebp - 4]
call fcn.004065cc
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4087d7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4087fc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4086f1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4087fc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4086f1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408830
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4086f1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408864
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4087d7
xor eax, eax
push ebp
push 0x4087d0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040840c
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 0x408760
mov eax, dword [ebp - 0x10]
call fcn.00404180
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.004066ec
jmp 0x4087ab
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4088a4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4087ab
mov eax, dword [ebp - 0x10]
call fcn.00404180
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4088a4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004066ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4087d7
cmp dword [ebp - 8], 0
je 0x4087c6
mov eax, dword [ebp - 8]
call fcn.0040419c
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 0x4087f4
lea eax, [ebp - 4]
call fcn.00406530
ret
Function at 0x408ab8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00406528
mov eax, dword [ebp - 0x21c]
call fcn.00406528
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x408c57
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406540
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004065cc
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x408b58
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x408b6a
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x408b55
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x408c23
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x408b93
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00408608
cmp dword [ebp - 0x220], 0
je 0x408bcb
push ebp
mov eax, dword [ebp - 0x220]
call fcn.004089ac
pop ecx
mov ebx, eax
jmp 0x408c23
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.004081e4
mov eax, dword [ebp - 0x224]
call fcn.004089ac
pop ecx
mov ebx, eax
test bl, bl
jne 0x408c16
cmp byte [0x446b50], 0
jne 0x408c16
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.004081e4
mov eax, dword [ebp - 0x228]
call fcn.004089ac
pop ecx
mov ebx, eax
test bl, bl
jne 0x408c23
push ebp
call fcn.00408a5c
pop ecx
mov ebx, eax
test bl, bl
je 0x408c39
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406728
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c5e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406538
ret

Function at 0x4093a0
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret