joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b70
Capabilities:
Delete file

Disassembly:
sub esp, 0x258
mov eax, dword [0x411020]
xor eax, esp
mov dword [esp + 0x254], eax
mov eax, dword [esp + 0x25c]
push ebx
push ebp
push esi
mov esi, ecx
test esi, esi
push edi
mov dword [esp + 0x14], eax
jne 0x402ba7
mov dword [eax + 8], 4
xor eax, eax
jmp 0x402cd7
push esi
lea ecx, [esp + 0x15c]
mov eax, 3
call fcn.00401b10
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x15c]
push ecx
call edi
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
je 0x402c02
push eax
call ebx
lea edx, [esp + 0x158]
push edx
call ebp
test eax, eax
jne 0x402c02
mov eax, dword [esp + 0x14]
mov dword [eax + 8], 0x104
xor eax, eax
jmp 0x402cd7
lea ecx, [esp + 0x158]
push str..inf
push ecx
call fcn.00403997
mov byte [eax], 0
lea eax, [esp + 0x160]
add esp, 8
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x402c24
mov edx, dword [str..pnf]
mov cl, byte [0x40fc88]
mov dword [eax], edx
lea edx, [esp + 0x18]
mov byte [eax + 4], cl
push edx
lea eax, [esp + 0x15c]
push eax
call edi
cmp eax, 0xffffffff
je 0x402c71
push eax
call ebx
lea ecx, [esp + 0x158]
push ecx
call ebp
test eax, eax
jne 0x402c71
mov edx, dword [esp + 0x14]
mov dword [edx + 8], 0x104
jmp 0x402cd7
push esi
lea ecx, [esp + 0x15c]
mov eax, 4
call fcn.00401b10
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x15c]
push ecx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x402ccf
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x15c]
mov eax, 5
call fcn.00401b10
lea eax, [esp + 0x158]
push eax
call ebp
test eax, eax
jne 0x402ccf
push esi
call ebx
mov ecx, dword [esp + 0x14]
mov dword [ecx + 8], 0x104
xor eax, eax
jmp 0x402cd7
push esi
call ebx
mov eax, 1
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004031ea
add esp, 0x258
ret 4
Function at 0x402d00
Capabilities:
Delete file

Disassembly:
sub esp, 0x258
mov eax, dword [0x411020]
xor eax, esp
mov dword [esp + 0x254], eax
test edi, edi
mov eax, dword [esp + 0x25c]
push ebp
push esi
mov dword [esp + 0xc], eax
je 0x402e76
cmp ebx, 1
ja 0x402e76
test ebx, ebx
push edi
lea ecx, [esp + 0x154]
mov eax, 3
je 0x402d48
mov eax, 6
call fcn.00401b10
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x154]
push ecx
call esi
cmp eax, 0xffffffff
mov ebp, dword [sym.imp.KERNEL32.dll_FindClose]
je 0x402d92
push eax
call ebp
lea edx, [esp + 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402d92
mov eax, dword [esp + 0xc]
mov dword [eax + 8], 0x104
jmp 0x402e7d
test ebx, ebx
jne 0x402e6f
lea ecx, [esp + 0x150]
push str..inf
push ecx
call fcn.00403997
mov byte [eax], bl
lea eax, [esp + 0x158]
add esp, 8
add eax, 0xffffffff
jmp 0x402dc0
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x402dc0
mov edx, dword [str..pnf]
mov cl, byte [0x40fc88]
mov dword [eax], edx
lea edx, [esp + 0x10]
mov byte [eax + 4], cl
push edx
lea eax, [esp + 0x154]
push eax
call esi
cmp eax, 0xffffffff
je 0x402e11
push eax
call ebp
lea ecx, [esp + 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402e11
mov edx, dword [esp + 0xc]
mov dword [edx + 8], 0x104
jmp 0x402e7d
push edi
lea ecx, [esp + 0x154]
mov eax, 4
call fcn.00401b10
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x154]
push ecx
call esi
cmp eax, 0xffffffff
je 0x402e6f
push eax
call ebp
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x154]
mov eax, 5
call fcn.00401b10
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402e6f
mov ecx, dword [esp + 0xc]
mov dword [ecx + 8], 0x104
jmp 0x402e7d
mov eax, 1
jmp 0x402e7f
mov dword [eax + 8], 4
xor eax, eax
mov ecx, dword [esp + 0x25c]
pop esi
pop ebp
xor ecx, esp
call fcn.004031ea
add esp, 0x258
ret 4

Function at 0x4031ea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411020]
jne 0x4031f4
repz ret
jmp fcn.00403bcf
Function at 0x409fab
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00404759
xor ebx, ebx
cmp dword [0x4129f8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40a080
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x409feb
xor eax, eax
jmp 0x40a144
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x409fe4
push eax
call fcn.004046f6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4129f8], eax
call esi
push eax
call fcn.004046f6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4129fc], eax
call esi
push eax
call fcn.004046f6
mov dword [0x412a00], eax
lea eax, [ebp - 8]
push eax
call fcn.00405e8f
test eax, eax
pop ecx
pop ecx
je 0x40a04e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404d08
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40a080
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004046f6
cmp eax, ebx
pop ecx
mov dword [0x412a08], eax
je 0x40a080
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004046f6
pop ecx
mov dword [0x412a04], eax
mov eax, dword [0x412a04]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40a0f9
cmp dword [0x412a08], esi
je 0x40a0f9
push eax
call fcn.00404762
pop ecx
call eax
cmp eax, ebx
je 0x40a0c6
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x412a08]
call fcn.00404762
pop ecx
call eax
test eax, eax
je 0x40a0c6
test byte [ebp - 0x18], 1
jne 0x40a0f9
lea eax, [ebp - 0xc]
push eax
call fcn.00405ec6
test eax, eax
pop ecx
je 0x40a0e1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404d08
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40a0f0
or dword [ebp + 0x10], 0x200000
jmp 0x40a12a
or dword [ebp + 0x10], 0x40000
jmp 0x40a12a
mov eax, dword [0x4129fc]
cmp eax, esi
je 0x40a12a
push eax
call fcn.00404762
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40a12a
mov eax, dword [0x412a00]
cmp eax, esi
je 0x40a12a
push dword [ebp - 4]
push eax
call fcn.00404762
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4129f8]
call fcn.00404762
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407438
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 0x40747a
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 0x40749a
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040b0a8
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x4076f8
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.0040a52c
test esi, esi
jne 0x40772e
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.0040a6b4
jmp 0x40774c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004075d8
mov edi, eax
test esi, esi
je 0x40774c
cmp dword [ebx], 0
je 0x40774c
dec esi
jmp 0x407735
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x409138
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.004095f8
mov byte [esp], al
cmp byte [esp], 0
jne 0x4092c1
test edi, edi
je 0x4092c1
mov byte [esp + 1], 0
test ebp, ebp
jle 0x409201
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4091dc
cmp edi, 0xffffffff
je 0x40919d
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40919d
mov byte [esp], 0
jmp 0x4092c1
cmp dword [esi], 1
jg 0x4091dc
cmp dword [esi], 0
jne 0x4091ce
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4091ce
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4092c1
lea eax, [esp + 0xc]
call fcn.00408de8
dec ebp
test ebp, ebp
jg 0x409182
cmp edi, 0xffffffff
je 0x409201
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4091ff
mov byte [esp], 0
jmp 0x4092c1
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x409146
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409201
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040933c
mov edx, eax
mov ebx, dword [0x8a58fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x409265
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x409263
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x409265
xor edi, edi
cmp byte [esp], 0
je 0x40928b
mov ebx, dword [esi]
test bl, 1
jne 0x4092a1
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40926b
mov byte [esp + 1], 1
jmp 0x4092a1
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40928b
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x409218
cmp byte [esp], 0
je 0x4092c1
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 0x40a188
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x8a505c], 0
je 0x40a1ef
cmp word [0x8a5348], 0xd7b2
jne 0x40a1b1
cmp dword [0x8a5350], 0
jbe 0x40a1b1
mov eax, 0x8a5344
call dword [0x8a5360]
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, 0x40a21c
call fcn.0040ad24
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x87f036], 0
jne 0x40a20b
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x40a3ec
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 [0x87f038], 0
je 0x40a417
mov edx, edi
mov eax, esi
call dword [0x87f038]
mov ebx, eax
jmp 0x40a428
mov eax, 8
call fcn.004071f0
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x8a505d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a3b4
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 0x40a458
mov eax, ebx
call fcn.0040720c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40ddcc
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 0x40df33
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a52c
cmp si, word [0x87fa10]
jb 0x40de64
cmp si, word [0x87fc10]
ja 0x40de64
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40de64
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x87fa10]
jae 0x40de3e
mov edi, ebx
dec edi
jmp 0x40de5f
cmp si, word [ebx*8 + 0x87fa10]
jbe 0x40de4e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40de5f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x87fa14]
call fcn.0040dce8
jmp 0x40de64
cmp edi, dword [ebp - 8]
jae 0x40de28
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40df13
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40df13
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.0040b0a8
push dword [ebp - 0x160]
push 0x40df50
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040b0a8
push dword [ebp - 0x164]
push 0x40df60
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040b0a8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040b2e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40df3a
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a58c
pop eax
jmp eax
Function at 0x40e0e8
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 0x40e1ee
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x8a7c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x8a7c2c]
jne 0x40e134
mov eax, esi
mov edx, 0x8a7c2e
mov ecx, 0x55
call fcn.0040b0a8
push 0x8a7c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40e1d6
push 0x8a7c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a52c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e1a3
cmp byte [0x8a7c10], 0
je 0x40e168
mov edx, esi
mov eax, ebx
call fcn.0040dfcc
jmp 0x40e1a3
mov edx, esi
mov eax, ebx
call fcn.0040ddcc
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40e1a3
cmp dword [esi], 0
je 0x40e18c
mov eax, esi
mov edx, 0x40e208
call fcn.0040b200
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040ddcc
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040b200
push 0x8a7c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x8a7c2c], bx
mov eax, dword [esi]
call fcn.0040aff0
mov ecx, eax
mov eax, 0x8a7c2e
mov edx, 0xaa
call fcn.0040dc48
push 0x8a7c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e1f5
lea eax, [ebp - 4]
call fcn.0040a52c
pop eax
jmp eax
Function at 0x40e420
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.0040a610
xor eax, eax
push ebp
push 0x40e649
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e460
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40e47a
mov eax, dword [ebp - 4]
call fcn.0040aff0
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040dc48
cmp word [ebp - 0x21a], 0
je 0x40e631
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40e658
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e549
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40e658
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e549
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40e694
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e549
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40e694
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e549
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40e6c8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e549
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40e6fc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e631
xor eax, eax
push ebp
push 0x40e62a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040e230
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 0x40e5b8
mov eax, dword [ebp - 0x10]
call fcn.004071f0
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.0040b054
jmp 0x40e603
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40e73c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e603
mov eax, dword [ebp - 0x10]
call fcn.004071f0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40e73c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040b054
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e631
cmp dword [ebp - 8], 0
je 0x40e61e
mov eax, dword [ebp - 8]
call fcn.0040720c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e650
lea eax, [ebp - 4]
call fcn.0040a52c
pop eax
jmp eax
Function at 0x40e95c
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.0040a610
xor eax, eax
push ebp
push 0x40ea1e
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.0040b0a8
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b258
mov eax, dword [ebx]
call fcn.0040e804
test al, al
jne 0x40e9f9
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040b0a8
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040b258
mov eax, dword [ebx]
call fcn.0040e804
test al, al
jne 0x40e9f9
mov eax, ebx
call fcn.0040a52c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ea25
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a58c
lea eax, [ebp - 4]
call fcn.0040a52c
pop eax
jmp eax

Function at 0x410700
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 0x428334
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 0x428464
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 0x42843c
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 0x428425
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.0040b0a8
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040b524
test eax, eax
jle 0x428425
mov eax, dword [ebp - 4]
test eax, eax
je 0x4283d9
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x4283e7
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.0040b3c8
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.0040b054
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040b258
jmp 0x42843c
add ebx, 2
cmp word [ebx], 0
jne 0x428422
add ebx, 4
test ebx, ebx
je 0x428436
cmp word [ebx], 0
jne 0x428386
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42846b
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.0040a58c
lea eax, [ebp - 4]
call fcn.0040a52c
pop eax
jmp eax
Function at 0x428560
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc4
push ebx
xor ebx, ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], 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 0x4287a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.0040a52c
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
mov ebx, eax
test ebx, ebx
jne 0x428637
cmp dword [ebp - 0x14], 0
jne 0x428637
xor edx, edx
mov eax, 6
call fcn.00431388
test al, al
je 0x428637
push 2
push 0x104
lea eax, [ebp - 0x224]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFinalPathNameByHandleW
test eax, eax
jbe 0x428637
lea eax, [ebp - 0x22c]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040b0a8
mov eax, dword [ebp - 0x22c]
lea edx, [ebp - 0x228]
call fcn.00428334
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 8]
call fcn.0040a90c
mov byte [ebp - 9], 1
jmp 0x428783
test ebx, ebx
jne 0x428645
cmp dword [ebp - 0x14], 0
je 0x428737
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 0x428737
xor eax, eax
push ebp
push 0x428730
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 0x428717
xor eax, eax
push ebp
push 0x428710
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.0041a8b8
test eax, eax
jbe 0x4286f7
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x224]
mov ecx, 0x106
call fcn.0040b0a8
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x230]
call fcn.00428334
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 8]
call fcn.0040a90c
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428717
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428737
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
pop eax
jmp eax
cmp byte [ebp - 9], 0
jne 0x428783
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 4]
call fcn.00428474
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 8]
call fcn.0040a90c
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x428783
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00428334
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 8]
call fcn.0040a90c
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4287aa
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.0040a58c
pop eax
jmp eax