joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423a8a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
jne 0x423aa8
xor eax, eax
jmp 0x423c16
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4314c0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x423adb
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00426280
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x423bad
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edi
jbe 0x423be8
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
mov dword [ebp - 8], edi
cmp ecx, dword [ebp + 0x10]
jae 0x423b36
mov edx, dword [ebp - 0xc]
inc dword [ebp - 0xc]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x423b27
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 8]
mov byte [eax], dl
inc eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x400
jl 0x423b0a
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x423b76
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
cmp eax, edi
jl 0x423b7f
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x423afb
jmp 0x423b81
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
xor edi, edi
mov eax, dword [ebp - 0x10]
cmp eax, edi
jne 0x423c11
cmp dword [ebp - 4], edi
je 0x423be8
push 5
pop esi
cmp dword [ebp - 4], esi
jne 0x423bda
call fcn.0041f442
mov dword [eax], 9
call fcn.0041f44b
mov dword [eax], esi
jmp 0x423be3
push edi
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x423bcf
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], eax
jmp 0x423b81
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x423b81
push dword [ebp - 4]
call fcn.0041f454
pop ecx
or eax, 0xffffffff
jmp 0x423c14
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x423bfd
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x423bfd
xor eax, eax
jmp 0x423c14
call fcn.0041f442
mov dword [eax], 0x1c
call fcn.0041f44b
mov dword [eax], edi
jmp 0x423be3
sub eax, dword [ebp - 0x14]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x4270d7
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041c620
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
call fcn.0042396b
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4271f6
push 2
push esi
push dword [ebp + 8]
call fcn.0042396b
add esp, 0xc
cmp eax, ebx
je 0x4271f6
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x427199
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1008]
push esi
push eax
call fcn.004235a0
push 0x8000
push dword [ebp + 8]
call fcn.00427661
add esp, 0x14
mov dword [ebp - 8], eax
cmp edi, ebx
mov eax, ebx
jge 0x427152
mov eax, edi
push eax
lea eax, [ebp - 0x1008]
push eax
push dword [ebp + 8]
call fcn.00423a8a
add esp, 0xc
cmp eax, 0xffffffff
je 0x427172
sub edi, eax
test edi, edi
jg 0x42714a
jmp 0x42718a
call fcn.0041f44b
cmp dword [eax], 5
jne 0x427187
call fcn.0041f442
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00427661
pop ecx
pop ecx
jmp 0x4271e1
jge 0x4271e1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042396b
push dword [ebp + 8]
call fcn.00425a59
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4271e1
call fcn.0041f442
mov dword [eax], 0xd
call fcn.0041f44b
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0042396b
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4271f8
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x4271fc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4273c2
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4314c0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4273c2
test cl, 0x48
je 0x427262
mov al, byte [eax + 5]
cmp al, 0xa
je 0x427262
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4272b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x42729c
call fcn.0041f442
mov dword [eax], 9
call fcn.0041f44b
mov dword [eax], esi
jmp 0x4272ac
cmp eax, 0x6d
je 0x4273c2
push eax
call fcn.0041f454
pop ecx
or eax, 0xffffffff
jmp 0x4273c4
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x4273bd
test edx, edx
je 0x4272d7
cmp byte [ebx], 0xa
jne 0x4272d7
or al, 4
jmp 0x4272d9
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4273b7
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4273a7
cmp al, 0xd
je 0x42730d
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x427399
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x427327
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x427322
add dword [ebp + 0x10], 2
jmp 0x42737b
mov dword [ebp + 0x10], eax
jmp 0x427395
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42734f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x427395
cmp dword [ebp - 0xc], 0
je 0x427395
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x427370
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x42737b
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x427398
cmp ebx, dword [ebp + 0xc]
jne 0x427380
cmp byte [ebp - 1], 0xa
jne 0x427380
mov byte [ebx], 0xa
jmp 0x427398
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042396b
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x427399
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4272f1
jmp 0x4273b7
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x4273b7
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4273c4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4278c9
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x1c]
push ebx
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], bl
call fcn.004235a0
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xc], 2
jne 0x42791c
cmp dword [ebp - 0x18], 5
jb 0x427933
jmp 0x42792f
cmp dword [ebp - 0xc], 1
jne 0x427933
cmp dword [ebp - 0x18], 4
ja 0x42792f
jne 0x427933
cmp dword [ebp - 0x14], ebx
jbe 0x427933
mov byte [esi + 0xc], 1
lea eax, [esi + 0x18]
push eax
mov dword [esi + 0x10], 0x700
mov dword [esi + 0x14], 0x42e0f8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
pop ebx
add ebp, 0x78
leave
ret
Function at 0x404a24
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.00408da4
test esi, esi
jne 0x404a5a
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.00408f2c
jmp 0x404a78
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404908
mov edi, eax
test esi, esi
je 0x404a78
cmp dword [ebx], 0
je 0x404a78
dec esi
jmp 0x404a61
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x407ae4
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.00407edc
mov byte [esp], al
cmp byte [esp], 0
jne 0x407c70
test edi, edi
je 0x407c70
mov byte [esp + 1], 0
test ebp, ebp
jle 0x407ba7
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x407b82
cmp edi, 0xffffffff
je 0x407b43
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407b43
mov byte [esp], 0
jmp 0x407c70
mov ebx, dword [esi]
cmp ebx, 1
jg 0x407b82
test ebx, ebx
jne 0x407b78
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402864
test eax, eax
jne 0x407b78
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x407c70
call 0x408000
dec ebp
test ebp, ebp
jg 0x407b28
cmp edi, 0xffffffff
je 0x407ba7
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407ba5
mov byte [esp], 0
jmp 0x407c70
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x407af2
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402864
cmp ebx, eax
jne 0x407ba7
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00407ce0
mov edx, eax
mov ebx, dword [reloc.gdi32.dll_CreateBrushIndirect]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x407c0e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x407c0c
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x407c0e
xor edi, edi
cmp byte [esp], 0
je 0x407c37
mov ebx, dword [esi]
test bl, 1
jne 0x407c50
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402864
cmp ebx, eax
jne 0x407c14
mov byte [esp + 1], 1
jmp 0x407c50
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402864
cmp ebx, eax
jne 0x407c37
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x407bc1
cmp byte [esp], 0
je 0x407c70
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 0x408a00
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x7a8058], 0
je 0x408a67
cmp word [0x7a8344], 0xd7b2
jne 0x408a29
cmp dword [reloc.user32.dll_GetWindowThreadProcessId], 0
jbe 0x408a29
mov eax, 0x7a8340
call dword [0x7a835c]
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, 0x408a94
call fcn.00409834
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x798032], 0
jne 0x408a83
push 0
push 0x7989d2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x408c60
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 [0x798034], 0
je 0x408c8b
mov edx, edi
mov eax, esi
call dword [0x798034]
mov ebx, eax
jmp 0x408c9c
mov eax, 8
call fcn.00404644
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x7a8059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x408c28
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 0x408cd1
mov edx, 8
mov eax, ebx
call fcn.00404660
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40b834
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 0x40b999
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00408da4
cmp si, word [0x798a10]
jb 0x40b8cc
cmp si, word [0x798c10]
ja 0x40b8cc
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40b8cc
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x798a10]
jae 0x40b8a6
mov edi, ebx
dec edi
jmp 0x40b8c7
cmp si, word [ebx*8 + 0x798a10]
jbe 0x40b8b6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40b8c7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x798a14]
call fcn.0040b744
jmp 0x40b8cc
cmp edi, dword [ebp - 8]
jae 0x40b890
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40b97b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40b97b
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.00409cc8
push dword [ebp - 0x160]
push 0x40b9b4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00409cc8
push dword [ebp - 0x164]
push 0x40b9c4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00409cc8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00409f00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b9a0
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00408e04
ret
Function at 0x40bb4c
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 0x40bc4f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x7aab88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x7aaba0]
jne 0x40bb98
mov eax, esi
mov edx, 0x7aaba2
mov ecx, 0x55
call fcn.00409cc8
push 0x7aab88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40bc39
push 0x7aab88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00408da4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bc07
cmp byte [0x7aab84], 0
je 0x40bbcc
mov edx, esi
mov eax, ebx
call fcn.0040ba30
jmp 0x40bc07
mov edx, esi
mov eax, ebx
call fcn.0040b834
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40bc07
cmp dword [esi], 0
je 0x40bbf0
mov eax, esi
mov edx, 0x40bc68
call fcn.00409e20
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040b834
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00409e20
push 0x7aab88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x7aaba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.00409c0c
push eax
push 0x7aaba2
call sub.kernel32.dll_lstrcpynW
push 0x7aab88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc56
lea eax, [ebp - 4]
call fcn.00408da4
ret
Function at 0x40be84
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.00408e88
xor eax, eax
push ebp
push 0x40c0a9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40bec4
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40bede
push 0x105
mov eax, dword [ebp - 4]
call fcn.00409c0c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40c093
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c0b8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bfad
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c0b8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bfad
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c0f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bfad
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c0f4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bfad
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c128
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40bfad
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c15c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c093
xor eax, eax
push ebp
push 0x40c08c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040bc90
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 0x40c01c
mov eax, dword [ebp - 0x10]
call fcn.00404644
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.00409c74
jmp 0x40c067
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c19c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c067
mov eax, dword [ebp - 0x10]
call fcn.00404644
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c19c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00409c74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c093
cmp dword [ebp - 8], 0
je 0x40c082
mov eax, dword [ebp - 8]
call fcn.00404660
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 0x40c0b0
lea eax, [ebp - 4]
call fcn.00408da4
ret
Function at 0x40c38c
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00408e88
xor eax, eax
push ebp
push 0x40c44c
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409cc8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409e78
mov eax, dword [ebx]
call fcn.0040c254
test al, al
jne 0x40c429
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00409cc8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00409e78
mov eax, dword [ebx]
call fcn.0040c254
test al, al
jne 0x40c429
mov eax, ebx
call fcn.00408da4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c453
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00408e04
lea eax, [ebp - 4]
call fcn.00408da4
ret

Function at 0x420d4c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x420e75
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetLogicalDriveStringsW
mov esi, eax
test esi, esi
jle 0x420e4f
lea ebx, [ebp - 0x218]
lea eax, [ebx + 4]
mov word [eax], 0
push 0x104
lea eax, [ebp - 0x424]
push eax
push ebx
call sub.kernel32.dll_QueryDosDeviceW
mov esi, eax
test esi, esi
jle 0x420e38
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.00409cc8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a194
test eax, eax
jle 0x420e38
mov eax, dword [ebp - 4]
test eax, eax
je 0x420dec
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x420dfa
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x428]
push eax
mov ecx, edi
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.00409fe8
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.00409c74
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.00409e78
jmp 0x420e4f
add ebx, 2
cmp word [ebx], 0
jne 0x420e35
add ebx, 4
test ebx, ebx
je 0x420e49
cmp word [ebx], 0
jne 0x420d9e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420e7c
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.00408e04
lea eax, [ebp - 4]
call fcn.00408da4
ret