joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4351a0
Capabilities:
Log keystrokes via polling

Disassembly:
mov ecx, dword [0x588178]
mov edx, 0x210
push ebx
push esi
push edi
call fcn.004109c0
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
cmp byte [eax], 0
je 0x43523a
mov ecx, dword [0x588178]
mov edx, 0x210
call fcn.00402b80
cmp byte [eax + 8], 0
jne 0x43523a
push 0xa0
call ebx
shr eax, 0xf
test al, 1
jne 0x43523a
cmp dword [0x588178], 0
jne 0x435205
push 0x10a9
push str.C:Users_samesDesktopprojectsVerahook_Loaderproimgui_masterimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call edi
add esp, 0xc
mov esi, dword [0x588178]
cmp byte [esi + 0x3771], 0
je 0x435226
push 0
push 0x210
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.00403270
mov dword [esi + 0x33c], 0x210
mov dword [esi + 0x8fc], 0xa0
mov ecx, dword [0x588178]
mov edx, 0x214
call fcn.004109c0
cmp byte [eax], 0
je 0x4352c5
mov ecx, dword [0x588178]
mov edx, 0x214
call fcn.00402b80
cmp byte [eax + 8], 0
jne 0x4352c5
push 0xa1
call ebx
shr eax, 0xf
test al, 1
jne 0x4352c5
cmp dword [0x588178], 0
jne 0x435290
push 0x10a9
push str.C:Users_samesDesktopprojectsVerahook_Loaderproimgui_masterimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call edi
add esp, 0xc
mov esi, dword [0x588178]
cmp byte [esi + 0x3771], 0
je 0x4352b1
push 0
push 0x214
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.00403270
mov dword [esi + 0x340], 0x214
mov dword [esi + 0x90c], 0xa1
mov ecx, dword [0x588178]
mov edx, 0x212
call fcn.004109c0
cmp byte [eax], 0
je 0x43534d
mov ecx, dword [0x588178]
mov edx, 0x212
call fcn.00402b80
cmp byte [eax + 8], 0
jne 0x43534d
push 0x5b
call ebx
shr eax, 0xf
test al, 1
jne 0x43534d
cmp dword [0x588178], 0
jne 0x435318
push 0x10a9
push str.C:Users_samesDesktopprojectsVerahook_Loaderproimgui_masterimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call edi
add esp, 0xc
mov esi, dword [0x588178]
cmp byte [esi + 0x3771], 0
je 0x435339
push 0
push 0x212
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.00403270
mov dword [esi + 0x228], 0x212
mov dword [esi + 0x904], 0x5b
mov ecx, dword [0x588178]
mov edx, 0x216
call fcn.004109c0
cmp byte [eax], 0
je 0x4353d6
mov ecx, dword [0x588178]
mov edx, 0x216
call fcn.00402b80
cmp byte [eax + 8], 0
jne 0x4353d6
push 0x5c
call ebx
shr eax, 0xf
test al, 1
jne 0x4353d6
mov esi, dword [0x588178]
test esi, esi
jne 0x4353a7
push 0x10a9
push str.C:Users_samesDesktopprojectsVerahook_Loaderproimgui_masterimgui.cpp
push str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call edi
mov esi, dword [0x588178]
add esp, 0xc
cmp byte [esi + 0x3771], 0
je 0x4353c2
push 0
push 0x216
xorps xmm3, xmm3
lea ecx, [esi + 8]
call fcn.00403270
mov dword [esi + 0x22c], 0x216
mov dword [esi + 0x914], 0x5c
pop edi
pop esi
pop ebx
ret
Function at 0x43c594
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43c5d3
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43c5d3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43c5d3
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43c5d3
cmp dword [ecx + 0x74], 0xe
jbe 0x43c5d3
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10048a5
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x1009008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1009320]
test eax, eax
jne 0x1004962
push 0x11c
push eax
lea eax, [ebp - 0x328]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x328]
push eax
mov dword [ebp - 0x328], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1004954
cmp dword [ebp - 0x318], 2
jne 0x100494a
cmp dword [ebp - 0x324], 6
jae 0x100494a
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x1009324]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1004954
push 0
push 8
lea eax, [ebp - 0x20c]
push eax
call fcn.01006a55
cmp eax, dword [0x1009324]
mov dword [0x1009320], eax
jne 0x1004954
push eax
call fcn.01006683
jmp 0x1004954
mov eax, dword [0x1009324]
mov dword [0x1009320], eax
mov eax, dword [0x1009320]
test eax, eax
jne 0x1004962
mov eax, dword [0x1009324]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01005c74
leave
ret

Function at 0x1004997
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0xc]
push eax
push 0x20006
push 0
push dword [ebp + 0xc]
mov esi, 0x80004005
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10049e9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, 2
jne 0x10049d0
xor eax, eax
test eax, eax
jle 0x10049de
and eax, 0xffff
or eax, 0x80070000
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x10049f5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp + 8]
push eax
push 0x20019
xor edi, edi
push edi
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004a5a
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x10013d0
push dword [ebp + 8]
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004a51
cmp dword [ebp - 8], 4
jne 0x1004a51
cmp dword [ebp - 0xc], edi
sete al
inc eax
mov edi, eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret 4
Function at 0x1004a66
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor eax, eax
cmp dword [ebp + 8], eax
push esi
push edi
je 0x1004b33
cmp dword [ebp + 8], 0xffffffff
je 0x1004b33
mov ebx, dword [ebp + 0xc]
cmp ebx, eax
je 0x1004b33
cmp ebx, 0xffffffff
je 0x1004b33
mov edi, dword [ebp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp + 0xc]
push ecx
push eax
lea ecx, [ebp + 0x10]
push ecx
push eax
push edi
push ebx
call esi
test eax, eax
jne 0x1004b10
push dword [ebp + 0xc]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 4], eax
jne 0x1004aca
mov esi, 0x8007000e
jmp 0x1004b38
lea ecx, [ebp + 0xc]
push ecx
push eax
lea eax, [ebp + 0x10]
push eax
push 0
push edi
push ebx
call esi
xor esi, esi
cmp eax, esi
jne 0x1004af7
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp + 0x10]
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
je 0x1004b05
jle 0x1004b03
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push dword [ebp - 4]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x1004b38
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, 2
jne 0x1004b21
xor eax, eax
test eax, eax
jle 0x1004b2f
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x1004b38
mov esi, 0x80070006
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1004b46
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x1004c3a
push ebx
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
mov ebx, 0x80070000
jne 0x1004bcb
push 0x10013f8
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.01004a66
push 0x10013e8
push dword [ebp - 8]
mov edi, eax
push dword [ebp - 4]
call fcn.01004a66
cmp edi, esi
jl 0x1004bc0
mov edi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1004bd6
jle 0x1004bd4
and eax, 0xffff
or eax, ebx
mov edi, eax
cmp edi, esi
jl 0x1004c29
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1004c29
cmp dword [ebp - 0xc], esi
jne 0x1004c29
cmp dword [ebp - 0x10], esi
jne 0x1004c29
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, esi
jle 0x1004c27
and eax, 0xffff
or eax, ebx
mov edi, eax
cmp dword [ebp - 4], esi
pop ebx
je 0x1004c48
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1004c48
jle 0x1004c46
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x1004e47
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1009008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push 0x1001408
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.01004de6
add esp, 0x10
test eax, eax
jl 0x1004ec0
lea eax, [ebp - 0x20c]
push eax
call fcn.010049f5
test eax, eax
je 0x1004ea0
cmp eax, 2
je 0x1004ea0
lea eax, [ebp - 0x20c]
push eax
call fcn.01004b46
jmp 0x1004ec0
lea eax, [ebp - 0x20c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jle 0x1004ec0
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01005c74
leave
ret 4
Function at 0x100517d
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xfbc
mov eax, dword [0x1009008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1009328], 0xffffffff
je 0x1005344
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x1005343
push edi
mov edi, 0x3e8
push edi
lea eax, [ebp - 0x7d4]
push esi
push eax
mov dword [ebp - 0xfac], esi
call sub.msvcrt.dll_memset
push dword [ebp + 8]
lea eax, [ebp - 0x7d4]
push 0x100157c
push 0x1f4
push eax
call fcn.01004de6
add esp, 0x1c
test eax, eax
jl 0x1005342
push 0x7d0
lea eax, [ebp - 0xfa4]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x7d4]
push eax
push edi
lea eax, [ebp - 0xfa4]
push eax
call fcn.010050f3
test eax, eax
jl 0x1005342
push ebx
lea eax, [ebp - 0xfbc]
push eax
mov word [ebp - 0x194], si
mov word [ebp - 0xcc], si
mov word [ebp - 0x3ec], si
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x64
lea eax, [ebp - 0x194]
push eax
push esi
lea eax, [ebp - 0xfbc]
push eax
mov ebx, 0x40000000
push ebx
add edi, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
test eax, eax
je 0x10052f2
push 0x64
lea eax, [ebp - 0xcc]
push eax
push esi
lea eax, [ebp - 0xfbc]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
test eax, eax
je 0x10052f2
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x194]
push eax
push 0x1001568
mov edi, 0x12c
lea eax, [ebp - 0x3ec]
push edi
push eax
call fcn.01004de6
add esp, 0x14
test eax, eax
jl 0x10052f2
lea eax, [ebp - 0xfa8]
push eax
push edi
lea eax, [ebp - 0x3ec]
push eax
mov dword [ebp - 0xfa8], esi
call fcn.0100512f
test eax, eax
jl 0x10052f2
push esi
lea eax, [ebp - 0xfac]
push eax
push dword [ebp - 0xfa8]
lea eax, [ebp - 0x3ec]
push eax
push dword [0x1009328]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0xfa8]
push eax
push 0x3e8
lea eax, [ebp - 0xfa4]
push eax
mov dword [ebp - 0xfa8], esi
call fcn.0100512f
test eax, eax
pop ebx
jl 0x1005342
push esi
lea eax, [ebp - 0xfac]
push eax
push dword [ebp - 0xfa8]
lea eax, [ebp - 0xfa4]
push eax
push dword [0x1009328]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [0x1009328]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01005c74
leave
ret
Function at 0x1005355
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x1009008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebp - 0x62c], eax
lea eax, [ebp - 0x620]
push eax
push 0x1004758
push 1
xor edi, edi
push edi
push 0x1004778
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x1005515
mov eax, dword [ebp - 0x620]
mov ecx, dword [eax]
lea edx, [ebp - 0x624]
push edx
push 0x1004768
push eax
call dword [ecx]
test eax, eax
jl 0x1005509
mov eax, dword [ebp - 0x624]
mov ecx, dword [eax]
push 2
push ebx
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x10054fd
mov eax, dword [ebp - 0x620]
mov ecx, dword [eax]
push 1
push edi
push eax
call dword [ecx + 0x4c]
test eax, eax
jl 0x10054fd
push esi
push ebx
push 0x10015ec
call fcn.0100517d
mov eax, dword [ebp - 0x620]
pop ecx
pop ecx
push 2
push edi
mov esi, 0x104
push esi
lea edx, [ebp - 0x61c]
push edx
mov word [ebp - 0x61c], di
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x10054fc
lea eax, [ebp - 0x61c]
push eax
push dword [ebp - 0x62c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10054fc
mov eax, dword [ebp - 0x620]
lea edx, [ebp - 0x628]
push edx
push esi
lea edx, [ebp - 0x20c]
push edx
mov word [ebp - 0x20c], di
mov dword [ebp - 0x628], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
test eax, eax
jl 0x10054fc
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
mov word [ebp - 0x414], di
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x102
ja 0x10054fc
cmp word [ebp - 0x20c], di
je 0x10054b1
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x62c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10054fc
push dword [ebp - 0x628]
mov eax, dword [ebp - 0x620]
mov ecx, dword [eax]
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [ecx + 0x44]
test eax, eax
jl 0x10054fc
mov eax, dword [ebp - 0x624]
mov ecx, dword [eax]
push 1
push ebx
push eax
call dword [ecx + 0x18]
push edi
push ebx
push 0x1005
push 0x2000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push ebx
push 0x10015a8
call fcn.0100517d
pop ecx
pop ecx
pop esi
mov eax, dword [ebp - 0x624]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x620]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.01005c74
leave
ret 8
Function at 0x1005888
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1009008]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [0x1009328], 0xffffffff
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
xor esi, esi
push 0x104
mov word [ebp - 0x20c], si
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1005923
push 0x10019b8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x1005923
push esi
push 0x20
push 4
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x1009328], eax
je 0x1005923
push 2
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x1001928
call fcn.0100517d
mov dword [esp], 0x10018e8
call fcn.0100517d
pop ecx
push edi
call fcn.0100552a
mov esi, eax
mov eax, dword [0x1009328]
cmp eax, 0xffffffff
je 0x100593c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01005c74
leave
ret 4
Function at 0x1005c65
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1007790
call fcn.01006114
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1009694
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1005a17
cmp eax, esi
jne 0x1005a0a
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1005a1a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10059f1
xor esi, esi
inc esi
mov eax, dword [0x1009690]
cmp eax, esi
jne 0x1005a2d
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1005a5c
mov eax, dword [0x1009690]
test eax, eax
jne 0x1005a56
mov dword [0x1009690], esi
push 0x10011b4
push 0x10011a8
call fcn.01005953
pop ecx
pop ecx
test eax, eax
je 0x1005a5c
jmp 0x1005b80
mov dword [0x1009348], esi
mov eax, dword [0x1009690]
cmp eax, esi
jne 0x1005a80
push 0x10011a4
push 0x100119c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1009690], 2
cmp dword [ebp - 0x20], ebx
jne 0x1005a8d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100969c], ebx
je 0x1005aae
push 0x100969c
call fcn.0100608b
pop ecx
test eax, eax
je 0x1005aae
push ebx
push 2
push ebx
call dword [0x100969c]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1005b80
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1005b18
cmp cx, bx
je 0x1005ad3
cmp dword [ebp - 0x1c], ebx
jne 0x1005b18
movzx ecx, word [eax]
cmp cx, bx
je 0x1005ae8
cmp cx, 0x20
ja 0x1005ae8
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1005ad3
test byte [ebp - 0x40], 1
je 0x1005af4
movzx ecx, word [ebp - 0x3c]
jmp 0x1005af7
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1009344], eax
cmp dword [0x1009338], ebx
jne 0x1005b5d
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1005b29
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1005abd
cmp dword [0x1009348], ebx
jne 0x1005b6b
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1009344]
jmp 0x1005b8c
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01006159
ret
call fcn.0100625e
jmp 0x10059b4

Function at 0x1006000
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1006013
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100600f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x1006040
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x100607f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1006075
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1006081
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1006065
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100661a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1009008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100666e
push 3
lea eax, [ebp - 0x44]
push 0x1001f38
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffff800
add esi, 0xc04
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.01005c74
leave
ret

Function at 0x1006694
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1009008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x10066ed
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x11c]
xor eax, eax
dec ecx
pop esi
je 0x1006741
dec ecx
jne 0x1006764
cmp edx, 5
jne 0x1006739
mov ecx, dword [ebp - 0x118]
sub ecx, eax
je 0x1006735
dec ecx
je 0x100672a
dec ecx
je 0x100671b
push 0x14
jmp 0x100678c
cmp word [ebp - 0xc], 1
jb 0x1006725
push 0x10
pop eax
or eax, 4
jmp 0x1006764
cmp word [ebp - 0xc], 2
jb 0x1006725
push 8
jmp 0x1006724
push 4
jmp 0x100678c
cmp edx, 4
ja 0x1006770
push 2
pop eax
cmp edx, 4
jne 0x1006764
cmp dword [ebp - 0x118], 0
je 0x1006761
cmp dword [ebp - 0x118], 0xa
je 0x1006761
cmp dword [ebp - 0x118], 0x5a
jne 0x1006764
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01005c74
leave
ret
cmp edx, 6
jne 0x100678f
cmp dword [ebp - 0x118], 0
jne 0x100678f
cmp dword [ebp - 0x114], 0x1554
jae 0x100678f
push 0x40
pop eax
jmp 0x1006764
push 0x20
jmp 0x100678c
Function at 0x10068bf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1009008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp word [0x100967c], si
jne 0x1006957
lea eax, [ebp - 0x10]
push eax
push 1
push esi
push 0x1001e68
push 0x80000002
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1006957
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x1001f20
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x1006957
push 3
push dword [esi*8 + 0x1001cb8]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x1006949
inc esi
cmp esi, 0x1c
jb 0x1006928
jmp 0x1006957
mov ax, word [esi*8 + 0x1001cbc]
mov word [0x100967c], ax
mov ecx, dword [ebp - 4]
mov ax, word [0x100967c]
xor ecx, ebp
pop esi
call fcn.01005c74
leave
ret