joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7b7d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x7b7d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x7b7d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x7b7d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x7b7d94
push eax
push esi
call fcn.007ba20b
add esp, 8
pop esi
ret 0x10

Function at 0x7b7da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7b7e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x7b7e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x7d0320
push ecx
mov dword [esp + 0x1c], 4
call fcn.007b9dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x7b7dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x7b7e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7b7ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x7b7eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x7d0320
push ecx
mov dword [esp + 0x1c], 4
call fcn.007b9dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x7b7eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x7b7e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x7b8000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x7b8131
push esi
call fcn.007bb145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.007aa080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x7b8131
push 0
push ebp
call fcn.007aa3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.007aa260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x7b808b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.007aa2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x7b8121
push 0x7d0918
push edi
call fcn.007b93f0
push eax
push ebx
push esi
call fcn.007b7f60
push 0x7d08f8
push edi
call fcn.007b93f0
push eax
push ebx
push esi
call fcn.007b7f60
push 0x7d08d8
push edi
call fcn.007b93f0
push eax
push ebx
push esi
call fcn.007b7f60
push 0x7d08c0
push edi
call fcn.007b93f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.007b7f60
push 0x7d08a0
push edi
call fcn.007b93f0
push eax
push ebx
push esi
call fcn.007b7f60
push 0x7d0888
push edi
call fcn.007b93f0
push eax
push ebx
push esi
call fcn.007b7f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x7b91b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.007b9140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.007b9140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.007b9140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.007b9140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x7b9230
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x20c
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x218]
push esi
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7b92d6
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push eax
push edx
call edi
mov esi, eax
test esi, esi
jne 0x7b92ae
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.007b9230
mov esi, eax
add esp, 8
test esi, esi
jne 0x7b92ae
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call edi
mov esi, eax
test esi, esi
je 0x7b927e
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
pop edi
je 0x7b92ce
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret

Function at 0x7b9bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x7b9c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x7cb87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x7b9c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x7b9c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x404748
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.00406eb8
test esi, esi
jne 0x40477e
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.00407020
jmp 0x40479c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040468c
mov edi, eax
test esi, esi
je 0x40479c
cmp dword [ebx], 0
je 0x40479c
dec esi
jmp 0x404785
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405c18
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.00406004
mov byte [esp], al
cmp byte [esp], 0
jne 0x405da1
test edi, edi
je 0x405da1
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405cd8
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405cb3
cmp edi, 0xffffffff
je 0x405c77
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405c77
mov byte [esp], 0
jmp 0x405da1
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405cb3
test ebx, ebx
jne 0x405cac
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004025a8
test eax, eax
jne 0x405cac
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405da1
pause
dec ebp
test ebp, ebp
jg 0x405c5c
cmp edi, 0xffffffff
je 0x405cd8
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405cd6
mov byte [esp], 0
jmp 0x405da1
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405c26
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004025a8
cmp ebx, eax
jne 0x405cd8
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405e14
mov edx, eax
mov ebx, dword [0x5328c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405d3f
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405d3d
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405d3f
xor edi, edi
cmp byte [esp], 0
je 0x405d68
mov ebx, dword [esi]
test bl, 1
jne 0x405d81
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004025a8
cmp ebx, eax
jne 0x405d45
mov byte [esp + 1], 1
jmp 0x405d81
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004025a8
cmp ebx, eax
jne 0x405d68
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405cf2
cmp byte [esp], 0
je 0x405da1
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 0x406b1c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x532050], 0
je 0x406b7d
cmp word [0x53232c], 0xd7b2
jne 0x406b45
cmp dword [0x532334], 0
jbe 0x406b45
mov eax, 0x532328
call dword [0x532344]
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 0x406ba8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x52e028], 0
jne 0x406b99
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406d74
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 [0x52e02c], 0
je 0x406d9f
mov edx, edi
mov eax, esi
call dword [0x52e02c]
mov ebx, eax
jmp 0x406db0
mov eax, 8
call fcn.004043c0
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x532051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406d3c
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 0x406de5
mov edx, 8
mov eax, ebx
call fcn.004043dc
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x4093dc
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 0x409541
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406eb8
cmp si, word [0x52e7dc]
jb 0x409474
cmp si, word [0x52e9dc]
ja 0x409474
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x409474
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x52e7dc]
jae 0x40944e
mov edi, ebx
dec edi
jmp 0x40946f
cmp si, word [ebx*8 + 0x52e7dc]
jbe 0x40945e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40946f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x52e7e0]
call fcn.004092ec
jmp 0x409474
cmp edi, dword [ebp - 8]
jae 0x409438
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x409523
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409523
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.00407be8
push dword [ebp - 0x160]
push 0x40955c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407be8
push dword [ebp - 0x164]
push 0x40956c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407be8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407e20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409548
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406f18
ret
Function at 0x4096f4
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 0x4097f7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x534b51
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x534b6a]
jne 0x409740
mov eax, esi
mov edx, 0x534b6c
mov ecx, 0x55
call fcn.00407be8
push 0x534b51
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4097e1
push 0x534b51
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406eb8
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4097af
cmp byte [0x534b50], 0
je 0x409774
mov edx, esi
mov eax, ebx
call fcn.004095d8
jmp 0x4097af
mov edx, esi
mov eax, ebx
call fcn.004093dc
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4097af
cmp dword [esi], 0
je 0x409798
mov eax, esi
mov edx, 0x409810
call fcn.00407d40
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004093dc
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407d40
push 0x534b51
call sub.kernel32.dll_EnterCriticalSection
mov word [0x534b6a], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407b34
push eax
push 0x534b6c
call sub.kernel32.dll_lstrcpynW
push 0x534b51
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4097fe
lea eax, [ebp - 4]
call fcn.00406eb8
ret
Function at 0x409a2c
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.00406f9c
xor eax, eax
push ebp
push 0x409c51
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409a6c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409a86
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407b34
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409c3b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409c60
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409b55
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409c60
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409b55
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409c9c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409b55
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409c9c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409b55
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409cd0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409b55
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409d04
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409c3b
xor eax, eax
push ebp
push 0x409c34
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409838
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 0x409bc4
mov eax, dword [ebp - 0x10]
call fcn.004043c0
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.00407b94
jmp 0x409c0f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409d44
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409c0f
mov eax, dword [ebp - 0x10]
call fcn.004043c0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409d44
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407b94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409c3b
cmp dword [ebp - 8], 0
je 0x409c2a
mov eax, dword [ebp - 8]
call fcn.004043dc
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 0x409c58
lea eax, [ebp - 4]
call fcn.00406eb8
ret
Function at 0x409f90
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.00406f9c
xor eax, eax
push ebp
push 0x40a050
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
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.00407be8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407d98
mov eax, dword [ebx]
call fcn.00409e58
test al, al
jne 0x40a02d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407be8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407d98
mov eax, dword [ebx]
call fcn.00409e58
test al, al
jne 0x40a02d
mov eax, ebx
call fcn.00406eb8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a057
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406f18
lea eax, [ebp - 4]
call fcn.00406eb8
ret

Function at 0x40a93c
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

Function at 0x41bb08
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 0x41bc31
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 0x41bc0b
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 0x41bbf4
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.00407be8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004080d4
test eax, eax
jle 0x41bbf4
mov eax, dword [ebp - 4]
test eax, eax
je 0x41bba8
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x41bbb6
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.00407f68
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.00407b94
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.00407d98
jmp 0x41bc0b
add ebx, 2
cmp word [ebx], 0
jne 0x41bbf1
add ebx, 4
test ebx, ebx
je 0x41bc05
cmp word [ebx], 0
jne 0x41bb5a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41bc38
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.00406f18
lea eax, [ebp - 4]
call fcn.00406eb8
ret
Function at 0x41bd24
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdcc
push ebx
xor ebx, ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41bee0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.00406eb8
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileSize_1
test eax, eax
jne 0x41bd88
cmp dword [ebp - 0x14], 0
je 0x41be76
push 0
push 1
push 0
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3ee
je 0x41be76
xor eax, eax
push ebp
push 0x41be6f
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41be58
xor eax, eax
push ebp
push 0x41be51
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
call sub.kernel32.dll_GetCurrentProcess
lea ecx, [ebp - 0x224]
mov edx, dword [ebp - 0x18]
call fcn.0040d960
test eax, eax
jbe 0x41be3a
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.00407be8
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.0041bb08
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 8]
call fcn.00407278
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41be58
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41be76
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
cmp byte [ebp - 9], 0
jne 0x41bec2
lea edx, [ebp - 0x230]
mov eax, dword [ebp - 4]
call fcn.0041bc40
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.00407278
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x41bec2
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0041bb08
mov edx, dword [ebp - 0x234]
mov eax, dword [ebp - 8]
call fcn.00407278
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41bee7
lea eax, [ebp - 0x234]
mov edx, 4
call fcn.00406f18
ret