joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a5400
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b317b
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x100c7034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x144]
push 0
push eax
call fcn.100a5aa0
add esp, 8
cmp byte [0x100cf8a1], 0
mov dword [ebp - 4], 0
je 0x100a5525
push 0x103
lea eax, [ebp - 0x113]
mov byte [ebp - 0x114], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [esi + 0x14], 0x10
jb 0x100a5490
mov ecx, dword [esi]
jmp 0x100a5492
mov ecx, esi
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
push ecx
cmovae eax, dword [ebp - 0x144]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x12c]
push str.__d._d._s._s___s_n
push eax
call fcn.100a60b0
add esp, 0x1c
lea eax, [ebp - 0x12c]
cmp dword [ebp - 0x118], 0x10
cmovae eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0x118], 0x10
jb 0x100a550a
push dword [ebp - 0x12c]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
mov eax, dword [0x100cf8a8]
test eax, eax
jne 0x100a5555
push 0x18
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [0x100cf8a8], eax
xorps xmm0, xmm0
movdqu xmmword [eax], xmm0
push eax
movq qword [eax + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [0x100cf8a8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.100ab710
lea ecx, [ebp - 0x144]
push ecx
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x20]
call eax
test eax, eax
jne 0x100a557f
push eax
push eax
call fcn.100a5060
add esp, 8
push dword [0x100cf8a8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.100ab710
cmp dword [esi + 0x10], 0
mov edi, eax
je case.default.0x100a55ad
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 0xc]
call edx
mov ecx, dword [ebp + 8]
cmp ecx, eax
jg case.default.0x100a55ad
cmp ecx, 3
ja case.default.0x100a55ad
jmp dword [ecx*4 + 0x100a560c]
push esi
mov ecx, edi
call fcn.100ab1f0
jmp case.default.0x100a55ad
push esi
mov ecx, edi
call fcn.100ab7e0
jmp case.default.0x100a55ad
push esi
mov ecx, edi
call fcn.100abcb0
jmp case.default.0x100a55ad
push esi
mov ecx, edi
call fcn.100ab530
cmp dword [ebp - 0x130], 0x10
jb 0x100a55f1
push dword [ebp - 0x144]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b010b
mov esp, ebp
pop ebp
ret
Function at 0x100a5ea0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b32b0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100c7034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
call fcn.100a6a20
add esp, 4
cmp dword [ebp + 0x18], 0
jle 0x100a607c
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.10001750
call fcn.100a62e0
add esp, 0x18
test al, al
je 0x100a5f1f
mov bl, 1
jmp 0x100a607e
call fcn.100a6650
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100082a0
mov esi, eax
add esp, 0xc
lea eax, [ebp + 8]
cmp eax, esi
je 0x100a5f6c
cmp dword [ebp + 0x1c], 8
jb 0x100a5f4f
push dword [ebp + 8]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
push esi
lea ecx, [ebp + 8]
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
call fcn.10004740
cmp dword [ebp - 0x14], 8
jb 0x100a5f7d
push dword [ebp - 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
lea eax, [ebp + 8]
push eax
call fcn.100a64f0
mov ecx, dword [ebp + 0x18]
mov esi, 1
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add esp, 4
cmp ecx, esi
jbe 0x100a602d
cmp ecx, esi
jbe 0x100a6071
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
cmp word [eax + esi*2], 0x5c
jne 0x100a6024
push esi
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 8]
call fcn.10007d10
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x28]
push eax
call fcn.10001750
call fcn.100a62e0
add esp, 0x18
test al, al
jne 0x100a600c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call edi
cmp dword [ebp - 0x14], 8
mov byte [ebp - 4], 0
jb 0x100a6021
push dword [ebp - 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp + 0x18]
inc esi
cmp ecx, esi
ja 0x100a5fa7
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push eax
call edi
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.10001750
call fcn.100a62e0
add esp, 0x18
test al, al
je 0x100a607c
mov bl, 1
jmp 0x100a607e
push str.invalid_string_position
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xout_of_range_char_const__]
xor bl, bl
cmp dword [ebp + 0x1c], 8
jb 0x100a608f
push dword [ebp + 8]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100b010b
mov esp, ebp
pop ebp
ret
Function at 0x100a62e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b3348
mov eax, dword fs:[0]
push eax
push ebx
mov eax, dword [0x100c7034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
call fcn.100a64f0
add esp, 4
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
cmp dword [ebp + 0x1c], 8
jb 0x100a633e
push dword [ebp + 8]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100addf0
Capabilities:
Get number of processors
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b3f09
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100c7034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
call fcn.10006500
push 0xffffffffffffffff
lea ecx, [esi + 0x18]
mov dword [ebp - 4], 0
mov dword [ecx + 0x14], 0xf
push 0
push dword [ebp + 0xc]
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.10006500
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
mov dword [ecx + 0x14], 0xf
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.10006500
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x48], eax
lea eax, [esi + 0x4c]
push eax
mov byte [ebp - 4], 2
call fcn.100b0090
add esp, 4
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 3
call fcn.100afe00
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x100af8e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push dword [0x100cf99c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x100af934
push esi
push 0x10
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x100af90a
mov ecx, eax
call fcn.100af0a0
mov esi, eax
jmp 0x100af90c
xor esi, esi
push dword [0x100cf99c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100af924
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push esi
push dword [0x100cf99c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop esi
ret
Function at 0x401000
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov edx, ecx
test eax, eax
jne 0x401013
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp + 0xc], 0
test ecx, ecx
jne 0x401044
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
push 0
push 1
push 0
push edx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov esp, ebp
pop ebp
ret 8
push esi
lea esi, [ebp + 0xc]
push esi
lea esi, [ebp - 4]
push esi
push eax
push ecx
push 1
push 0
push edx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x401870
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20119
push esi
push esi
push esi
push 0x43b3c8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4018d0
push esi
push esi
lea ecx, [ebp - 8]
push ecx
push esi
push str.zi_id
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x4018c7
mov eax, 1
cmp dword [ebp - 8], eax
cmove esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4018e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20119
push esi
push esi
push esi
push 0x43b3c8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x401941
push esi
push esi
lea ecx, [ebp - 8]
push ecx
push esi
push str.zi_inf
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x401938
cmp dword [ebp - 8], 3
mov eax, 1
cmove esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ecx + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x20119
push 0x43b3c8
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x14]
mov dword [esi], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call fcn.004027e0
mov edi, dword [ebp - 0x14]
test eax, eax
jne 0x4019cf
mov eax, dword [esi]
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.zi_tt
push edi
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4019cf
cmp dword [ebp - 8], 4
jne 0x4019cf
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov esi, 1
jmp 0x4019d1
xor esi, esi
test edi, edi
je 0x4019dc
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x401be0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x103
push 0
push 0
push 0
push 0x43b3c8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x401c69
push 0
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push str.zi_id
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x401c3f
cmp dword [ebp - 8], 1
je 0x401c60
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push 1
push 0
push str.zi_id
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401c86
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x401c90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x102
push 0
push 0
push 0
push 0x43b3c8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x401ce4
push dword [ebp + 0xc]
push dword [ebp + 8]
push 3
push 0
push str.zi_inf
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8
Function at 0x402760
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
mov dword [edi], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4027d1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40279f
cmp eax, 2
jne 0x4027bb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x4027cb
test ecx, ecx
je 0x4027c6
test cl, 1
jne 0x4027bb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4027cb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
mov dword [edi], ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4034f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403505
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403544
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x403540
lea ebx, [ebx]
cmp esi, edx
jae 0x403544
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x403530
cmp esi, edx
jb 0x403549
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x404020
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x404052
push str.ZeoBITPCKeeper
push 0x104
push dword [ebp + 8]
call fcn.00420af1
add esp, 0xc
xor eax, eax
pop ebp
ret 4

Function at 0x404060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431e10
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x448090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4041c1
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4041c1
lea eax, [ebp + 8]
push eax
push 0x400000
mov dword [ebx], 0
xor edi, edi
push 6
mov dword [esi], 0
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x40417e
push str.PUBLICKEY
push 0x3f0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40417e
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
test eax, eax
je 0x40417e
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40417e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40417e
mov dword [ebp - 4], 0
push dword [esi]
call fcn.00420b5d
add esp, 4
mov dword [ebx], eax
mov ecx, dword [esi]
push ecx
push dword [ebp - 0x14]
push ecx
push eax
call fcn.0041fe58
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x4041a1
mov eax, 0x80040104
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test eax, eax
jle 0x4041c6
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, 0x80004003
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4041e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x448090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push pe_nt_image_headers32
lea eax, [ebp - 0x124]
push 0
push eax
mov edi, edx
mov esi, ecx
call fcn.00421940
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x128], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x124]
cmp eax, 6
ja 0x404248
jne 0x404244
cmp dword [ebp - 0x120], 0
ja 0x404248
cmp word [ebp - 0x14], 0
ja 0x404248
xor bl, bl
jmp 0x40424a
mov bl, 1
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov eax, str..RootSecurityCenter
mov ecx, 0x43bb40
test bl, bl
push edi
cmove ecx, eax
mov edx, esi
call fcn.00404290
add esp, 4
mov esi, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fe49
mov esp, ebp
pop ebp
ret
Function at 0x405550
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xc
push esi
mov esi, ecx
mov ecx, 0x418
cmp cx, ax
jne 0x405596
push str.Button_Restart_Now
push 1
push 0x62
push str.CRestartNowDialog::OnCommand
push str.DialogsRestartNowDialog.cpp
lea ecx, [ebp - 0xc]
call fcn.0041e2e0
push eax
call fcn.0041e4d0
add esp, 0xc
push 2
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x4055c4
mov ecx, 0x41c
cmp cx, ax
jne 0x4055d2
push str.Button_Restart_Later
push 1
push 0x67
push str.CRestartNowDialog::OnCommand
push str.DialogsRestartNowDialog.cpp
lea ecx, [ebp - 0xc]
call fcn.0041e2e0
push eax
call fcn.0041e4d0
add esp, 0xc
mov eax, dword [esi + 0x5c]
push 1
push dword [eax + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x406230
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x448090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x20]
push eax
xorps xmm0, xmm0
mov ebx, ecx
push 1
push ebx
mov esi, 0x1388
movq qword [ebp - 0x20], xmm0
movq qword [ebp - 0x18], xmm0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_ControlService]
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4062b5
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x1c], 1
je 0x4062b4
cmp esi, 0x3e8
jbe 0x4062b1
push 0x3e8
sub esi, 0x3e8
call edi
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x406285
jmp 0x4062b4
push esi
call edi
pop edi
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x1c], 1
pop esi
sete al
xor ecx, ebp
pop ebx
call fcn.0041fe49
mov esp, ebp
pop ebp
ret

Function at 0x406360
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x448090]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x44ade8
mov dword [0x44ade0], 0
mov dword [0x44ade4], 0
call fcn.00414ba0
xorps xmm0, xmm0
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
movq qword [ebp - 0x13c], xmm0
movq qword [ebp - 0x134], xmm0
movq qword [ebp - 0x12c], xmm0
movq qword [ebp - 0x124], xmm0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0x114
call fcn.00421940
add esp, 0xc
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp word [ebp - 0x13c], 9
sete al
cmp dword [ebp - 0x114], 6
mov dword [0x44addc], eax
sbb eax, eax
neg eax
mov dword [0x44add8], eax
xor ecx, ebp
mov eax, 0x44add8
call fcn.0041fe49
mov esp, ebp
pop ebp
ret
Function at 0x406b00
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4321e8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x448090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.UninstallHard_start
push 1
push 3
push 0x101
push str.LegacyPCKUninstaller::UninstallHard
push str.LegacyPCKUninstaller.cpp
lea ecx, [ebp - 0x18]
mov dword [0x44ade4], 1
call fcn.0041e2e0
push eax
call fcn.0041e500
add esp, 0x10
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 4], 0
call fcn.00406a00
mov edi, dword [ebp + 8]
push 1
mov eax, dword [edi]
push 0
push 0
mov ecx, edi
call dword [eax]
cmp dword [0x44ade0], 0
jne 0x406cb3
call fcn.00407730
call fcn.00406ce0
push 2
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.004027e0
mov esi, dword [ebp - 0x18]
test eax, eax
jne 0x406be8
push 0x43c63c
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test esi, esi
je 0x406bf3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x44ade0], 0
jne 0x406cb3
call fcn.00406e20
cmp dword [0x44ade0], 0
jne 0x406cb3
call fcn.00407260
cmp dword [0x44ade0], 0
jne 0x406cb3
call fcn.004062e0
push str.fileHiders
call fcn.00407440
push str.zeoscanner
call fcn.00407440
cmp dword [0x44ade0], 0
jne 0x406cb3
mov eax, dword [ebp - 0x30]
xor esi, esi
test eax, eax
je 0x406c66
cmp esi, eax
jae 0x406ca9
mov eax, dword [ebp - 0x34]
push dword [eax + esi*4]
call fcn.00407600
mov eax, dword [ebp - 0x30]
inc esi
cmp esi, eax
jb 0x406c53
mov eax, dword [ebp + 0xc]
push dword [eax]
call fcn.00407600
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 4]
push str.UninstallHard_return_TRUE
push 1
push 3
push 0x13a
push str.LegacyPCKUninstaller::UninstallHard
push str.LegacyPCKUninstaller.cpp
lea ecx, [ebp - 0x24]
call fcn.0041e2e0
push eax
call fcn.0041e500
add esp, 0x10
mov esi, 1
jmp 0x406cc1
push 0x80070057
call fcn.00402950
mov eax, dword [edi]
push 0x642
mov ecx, edi
call dword [eax + 4]
xor esi, esi
lea ecx, [ebp - 0x34]
call fcn.00407fb0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8