joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4978f9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4d5948]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49793f
cmp word [ebx], dx
jne 0x49793f
or byte [eax + edi + 0x28], 4
jmp 0x497944
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x497aa7
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x497a87
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x497985
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4979bb
cmp eax, edx
jae 0x4979c9
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x497960
jmp 0x497aa7
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x497a82
cmp dword [ebp - 0x18], 0
je 0x497a82
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4d5948]
test byte [eax + edi + 0x28], 0x48
je 0x497a58
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x497a1c
mov word [esi], cx
jmp 0x497a53
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4d5948]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4d5948]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4d5948]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x497aa7
pop eax
cmp word [ebp - 4], ax
jne 0x497a68
cmp esi, ebx
jne 0x497a68
mov word [esi], ax
jmp 0x497aa4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004018fc
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x497aa7
push 0xd
pop eax
jmp 0x497a63
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4d5948]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x497aa1
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x497aa7
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49f7b7
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d2040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49f802
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049fc6f
test al, al
jne 0x49f7fc
sub edx, 2
cmp edx, edi
jne 0x49f7e2
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49f824
lea eax, [edi + 2]
cmp edx, eax
je 0x49f824
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049f3b0
add esp, 0x10
jmp 0x49f91e
push esi
lea ecx, [ebp - 0x255]
call fcn.0049fc6f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49f867
push dword [ebp - 0x25c]
jmp 0x49f814
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49f8a4
cmp word [ebp - 0x226], 0
je 0x49f8c5
cmp word [ebp - 0x226], ax
jne 0x49f8a4
cmp word [ebp - 0x224], 0
je 0x49f8c5
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049f3b0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49f911
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49f87e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49f8f9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49f91e
push 0x49ed98
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040542f
add esp, 0x10
jmp 0x49f8ee
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402fea
leave
ret

Function at 0x4a5280
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040421e
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4a52ef
cmp esi, dword [ebp - 4]
je 0x4a52ea
cmp dword [ebp + 0xc], 0
je 0x4a52ea
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a52c7
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004a4ca8
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4a52f1
xor eax, eax
inc eax
jmp 0x4a52f1
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x404598
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 0x4045da
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 0x4045fa
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.004079d8
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x40487c
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.00406f7c
test esi, esi
jne 0x4048b2
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.004070e4
jmp 0x4048d0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404760
mov edi, eax
test esi, esi
je 0x4048d0
cmp dword [ebx], 0
je 0x4048d0
dec esi
jmp 0x4048b9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x405d28
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.00406114
mov byte [esp], al
cmp byte [esp], 0
jne 0x405eb1
test edi, edi
je 0x405eb1
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405de8
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405dc3
cmp edi, 0xffffffff
je 0x405d87
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405d87
mov byte [esp], 0
jmp 0x405eb1
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405dc3
test ebx, ebx
jne 0x405dbc
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402594
test eax, eax
jne 0x405dbc
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405eb1
pause
dec ebp
test ebp, ebp
jg 0x405d6c
cmp edi, 0xffffffff
je 0x405de8
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405de6
mov byte [esp], 0
jmp 0x405eb1
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405d36
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402594
cmp ebx, eax
jne 0x405de8
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405f24
mov edx, eax
mov ebx, dword [0x5488c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405e4f
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405e4d
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405e4f
xor edi, edi
cmp byte [esp], 0
je 0x405e78
mov ebx, dword [esi]
test bl, 1
jne 0x405e91
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402594
cmp ebx, eax
jne 0x405e55
mov byte [esp + 1], 1
jmp 0x405e91
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402594
cmp ebx, eax
jne 0x405e78
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405e02
cmp byte [esp], 0
je 0x405eb1
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 0x406c2c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x548050], 0
je 0x406c8d
cmp word [0x54832c], 0xd7b2
jne 0x406c55
cmp dword [0x548334], 0
jbe 0x406c55
mov eax, 0x548328
call dword [0x548344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push 0x542792
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 0x406cb8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x542028], 0
jne 0x406ca9
push 0
push 0x54278c
push 0x542792
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406e38
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 [0x54202c], 0
je 0x406e63
mov edx, edi
mov eax, esi
call dword [0x54202c]
mov ebx, eax
jmp 0x406e74
mov eax, 8
call fcn.004043e0
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x548051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406e00
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 0x406ea9
mov edx, 8
mov eax, ebx
call fcn.004043fc
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x409084
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 0x4091e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406f7c
cmp si, word [0x5427dc]
jb 0x40911c
cmp si, word [0x5429dc]
ja 0x40911c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40911c
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5427dc]
jae 0x4090f6
mov edi, ebx
dec edi
jmp 0x409117
cmp si, word [ebx*8 + 0x5427dc]
jbe 0x409106
inc ebx
mov dword [ebp - 8], ebx
jmp 0x409117
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x5427e0]
call fcn.00408f94
jmp 0x40911c
cmp edi, dword [ebp - 8]
jae 0x4090e0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4091cb
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4091cb
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.004079d8
push dword [ebp - 0x160]
push 0x409204
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004079d8
push dword [ebp - 0x164]
push 0x409214
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004079d8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407c10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4091f0
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406fdc
ret
Function at 0x40939c
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 0x40949f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x54ab51
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x54ab6a]
jne 0x4093e8
mov eax, esi
mov edx, 0x54ab6c
mov ecx, 0x55
call fcn.004079d8
push 0x54ab51
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409489
push 0x54ab51
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406f7c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409457
cmp byte [0x54ab50], 0
je 0x40941c
mov edx, esi
mov eax, ebx
call fcn.00409280
jmp 0x409457
mov edx, esi
mov eax, ebx
call fcn.00409084
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409457
cmp dword [esi], 0
je 0x409440
mov eax, esi
mov edx, 0x4094b8
call fcn.00407b30
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409084
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407b30
push 0x54ab51
call sub.kernel32.dll_EnterCriticalSection
mov word [0x54ab6a], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040793c
push eax
push 0x54ab6c
call sub.kernel32.dll_lstrcpynW
push 0x54ab51
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4094a6
lea eax, [ebp - 4]
call fcn.00406f7c
ret
Function at 0x4096d4
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.00407060
xor eax, eax
push ebp
push 0x4098f9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409714
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40972e
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040793c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4098e3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409908
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4097fd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409908
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4097fd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409944
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4097fd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409944
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4097fd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409978
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4097fd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4099ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4098e3
xor eax, eax
push ebp
push 0x4098dc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004094e0
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 0x40986c
mov eax, dword [ebp - 0x10]
call fcn.004043e0
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.0040799c
jmp 0x4098b7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4099ec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4098b7
mov eax, dword [ebp - 0x10]
call fcn.004043e0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4099ec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040799c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4098e3
cmp dword [ebp - 8], 0
je 0x4098d2
mov eax, dword [ebp - 8]
call fcn.004043fc
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 0x409900
lea eax, [ebp - 4]
call fcn.00406f7c
ret
Function at 0x409c38
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.00407060
xor eax, eax
push ebp
push 0x409cf8
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.004079d8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407b88
mov eax, dword [ebx]
call fcn.00409b00
test al, al
jne 0x409cd5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004079d8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407b88
mov eax, dword [ebx]
call fcn.00409b00
test al, al
jne 0x409cd5
mov eax, ebx
call fcn.00406f7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409cff
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406fdc
lea eax, [ebp - 4]
call fcn.00406f7c
ret

Function at 0x40a5e4
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 0x41c8e4
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 0x41ca0d
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 0x41c9e7
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 0x41c9d0
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.004079d8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00407e64
test eax, eax
jle 0x41c9d0
mov eax, dword [ebp - 4]
test eax, eax
je 0x41c984
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x41c992
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.00407cf8
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.0040799c
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.00407b88
jmp 0x41c9e7
add ebx, 2
cmp word [ebx], 0
jne 0x41c9cd
add ebx, 4
test ebx, ebx
je 0x41c9e1
cmp word [ebx], 0
jne 0x41c936
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ca14
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.00406fdc
lea eax, [ebp - 4]
call fcn.00406f7c
ret
Function at 0x41cb00
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 0x41ccbc
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.00406f7c
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 0x41cb64
cmp dword [ebp - 0x14], 0
je 0x41cc52
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 0x41cc52
xor eax, eax
push ebp
push 0x41cc4b
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 0x41cc34
xor eax, eax
push ebp
push 0x41cc2d
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.0040d520
test eax, eax
jbe 0x41cc16
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.004079d8
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.0041c8e4
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 8]
call fcn.0040733c
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41cc34
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 0x41cc52
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
cmp byte [ebp - 9], 0
jne 0x41cc9e
lea edx, [ebp - 0x230]
mov eax, dword [ebp - 4]
call fcn.0041ca1c
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.0040733c
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x41cc9e
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0041c8e4
mov edx, dword [ebp - 0x234]
mov eax, dword [ebp - 8]
call fcn.0040733c
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ccc3
lea eax, [ebp - 0x234]
mov edx, 4
call fcn.00406fdc
ret