joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006df90
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
cmp edx, 0xffffffff
je 0x14006e0ab
mov esi, edx
mov rdi, rcx
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x14006dfdb
mov rax, qword [rdi + 0x58]
mov ecx, dword [rax]
test ecx, ecx
jle 0x14006dfdb
dec ecx
mov dword [rax], ecx
mov rax, qword [rdi + 0x40]
mov rcx, qword [rax]
lea rdx, [rcx + 1]
mov qword [rax], rdx
mov byte [rcx], sil
jmp 0x14006e0f0
cmp qword [rdi + 0x80], 0
je 0x14006e0af
mov rax, qword [rdi + 0x18]
lea rcx, [rdi + 0x70]
cmp qword [rax], rcx
jne 0x14006e015
mov ecx, dword [rdi + 0x90]
mov rdx, qword [rdi + 0x88]
mov qword [rax], rdx
mov rax, qword [rdi + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rdi + 0x50]
mov dword [rax], ecx
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x14006e0b6
mov byte [rsp + 0x4f], sil
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x50]
lea rdx, [rdi + 0x74]
mov r10, qword [rcx]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x60]
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x4f]
mov r8, rbx
call qword [r10 + 0x38]
mov ebp, 0xffffffff
cmp eax, 2
jae 0x14006e0cf
mov r15, qword [rsp + 0x50]
sub r15, r14
je 0x14006e09b
mov r9, qword [rdi + 0x80]
mov edx, 1
mov rcx, r14
mov r8, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r15, rax
jne 0x14006e0ee
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x58], rbx
mov eax, 0xffffffff
jmp 0x14006e0e9
xor esi, esi
jmp 0x14006e0f0
mov esi, 0xffffffff
jmp 0x14006e0f0
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, 0xffffffff
cmove esi, eax
jmp 0x14006e0f0
cmp eax, 3
jne 0x14006e0ee
mov rdx, qword [rdi + 0x80]
movsx ecx, byte [rsp + 0x4f]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, 0xffffffff
cmove esi, eax
mov ebp, esi
mov esi, ebp
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14006e550
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x14006e58b
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x14006e592
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
xor esi, esi
jmp 0x14006e689
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x14006e5e5
mov rax, qword [rbx + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x14006e5e5
cmp r15, rsi
cmovae r15, rsi
mov rcx, rdi
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x50]
sub dword [rax], r15d
mov rax, qword [rbx + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
cmp qword [rbx + 0x80], 0
jne 0x14006e5f6
jmp 0x14006e686
mov r14, rsi
cmp qword [rbx + 0x80], 0
je 0x14006e686
mov rax, qword [rbx + 0x18]
lea rcx, [rbx + 0x70]
cmp qword [rax], rcx
jne 0x14006e622
mov ecx, dword [rbx + 0x90]
mov rdx, qword [rbx + 0x88]
mov qword [rax], rdx
mov rax, qword [rbx + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rbx + 0x50]
mov dword [rax], ecx
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
nop dword [rax]
cmp r14, 0x1000
jb 0x14006e661
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call r15
add rdi, rax
sub r14, rax
cmp rax, 0xfff
je 0x14006e630
jmp 0x14006e686
test r14, r14
je 0x14006e683
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub r14, rax
jmp 0x14006e686
xor r14d, r14d
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14006e6a0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x14006e6d6
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x14006e723
test rsi, rsi
jle 0x14006e723
mov rax, qword [rbx + 0x58]
mov r15d, dword [rax]
test r15d, r15d
jle 0x14006e723
cmp r15, rsi
cmovae r15, rsi
mov rdx, rdi
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x58]
sub dword [rax], r15d
mov rax, qword [rbx + 0x40]
add qword [rax], r15
test r14, r14
jg 0x14006e72b
jmp 0x14006e74b
mov r14, rsi
test r14, r14
jle 0x14006e74b
mov r9, qword [rbx + 0x80]
test r9, r9
je 0x14006e74b
mov edx, 1
mov rcx, rdi
mov r8, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub r14, rax
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14006eae0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov al, 1
cmp qword [rcx + 0x68], 0
je 0x14006eb79
mov rsi, rcx
cmp byte [rcx + 0x71], 0
je 0x14006eb79
mov rax, qword [rsi]
mov rcx, rsi
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14006eb77
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x50]
lea rdx, [rsi + 0x74]
mov rax, qword [rcx]
lea r8, [rsp + 0x28]
mov qword [rsp + 0x20], r8
lea rdi, [rsp + 0x30]
mov r8, rdi
call qword [rax + 0x40]
cmp eax, 3
je 0x14006eb81
cmp eax, 1
je 0x14006eb47
test eax, eax
jne 0x14006eb77
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x28]
sub rbx, rdi
je 0x14006eb6e
mov r9, qword [rsi + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x14006eb77
cmp byte [rsi + 0x71], 0
sete al
jmp 0x14006eb79
xor eax, eax
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
mov byte [rsi + 0x71], 0
mov al, 1
jmp 0x14006eb79

Function at 0x14006efa0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x30]
ret

Function at 0x140077d4c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140077d96
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140077d96
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140077d96
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140077d96
cmp dword [rcx + 0x84], 0xe
jbe 0x140077d96
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140077d98
xor al, al
add rsp, 0x28
ret
Function at 0x1400059e0
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x290
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov edi, 0x80004005
lea rcx, [rsp + 0x30]
call fcn.140002a20
nop
xor esi, esi
mov ebx, esi
cmp qword [rsp + 0x30], rbx
je 0x140005a75
mov ecx, 0xd0
call fcn.14001ba10
mov qword [rsp + 0x2a0], rax
test rax, rax
je 0x140005a3b
mov rcx, rax
call fcn.140004ef0
mov rbx, rax
jmp 0x140005a3e
mov rbx, rsi
test rbx, rbx
je 0x140005a75
mov rcx, rbx
call fcn.140005540
mov edi, eax
test eax, eax
js 0x140005a75
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
mov r9, rbx
lea r8, [0x140005bf0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov qword [rbx + 0xb8], rax
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140005a8c
lock inc dword [rax + 8]
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.140002b90
test edi, edi
jns 0x140005b88
test rbx, rbx
je 0x140005b88
mov dword [rbx], 1
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140005ac7
call qword [sym.imp.KERNEL32.DLL_SetEvent]
mov rdi, qword [rbx + 0x28]
test rdi, rdi
je 0x140005b70
xor eax, eax
mov qword [rsp + 0x64], rax
mov dword [rsp + 0x7c], eax
xor edx, edx
mov r8d, 0x1fb
lea rcx, [rsp + 0x94]
call fcn.14003a280
mov dword [rsp + 0x60], 7
mov dword [rsp + 0x6c], esi
mov rax, qword [rbx + 8]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], 0x3000
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x80], rax
mov rax, qword [rbx + 0x38]
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x90], 0x1000
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_SafeArrayAccessData
mov dword [rsp + 0x20], esi
xor r9d, r9d
mov r8d, 0x22f
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.1400030e0
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x40], rsi
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140005b70
call fcn.14003d634
mov qword [rbx + 0x20], rsi
mov rcx, rbx
call fcn.1400050f0
mov edx, 0xd0
mov rcx, rbx
call fcn.14001ba4c
mov rbx, rsi
mov rdi, qword [rsp + 0x38]
test rdi, rdi
je 0x140005bcc
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140005bcc
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [case.0x140024e4a.0]
lock xadd dword [rdi + 0xc], esi
cmp esi, 1
jne 0x140005bcc
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [case.0x140024e4a.0]
mov rax, rbx
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140005e60
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x14006d0d8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rdx
mov edi, ecx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x104
call fcn.14003a280
lea rsi, [rsp + 0x180]
call fcn.1400060c0
mov qword [rsp + 0x28], rsi
lea rdx, [rsp + 0x30]
xor esi, esi
mov r9, rbx
mov r8d, 0x104
mov qword [rsp + 0x20], rsi
mov rcx, qword [rax]
call fcn.14003eb74
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
test dword [0x14006fd44], 0x20000
je 0x140005f10
mov rcx, qword [0x14006fd50]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], esi
lea r9d, [rsi + 1]
mov r8d, edi
mov qword [rsp + 0x20], rax
lea rdx, [0x14004e090]
call fcn.1400027a0
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14001bae0
add rsp, 0x150
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000b4a0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx], 0x50564150
mov rdi, rdx
mov rbx, rcx
je 0x14000b4c6
lea rdx, str.Unexpected_packet_Sig
xor ecx, ecx
call fcn.140005e60
mov eax, 0x100
cmp word [rbx + 4], ax
je 0x14000b4df
lea rdx, str.Unexpected_packet_Ver
xor ecx, ecx
call fcn.140005e60
mov ecx, dword [rbx + 0x10]
lea rax, [rdi - 0x14]
cmp rcx, rax
je 0x14000b4f9
lea rdx, str.Unexpected_packet_DataLen
xor ecx, ecx
call fcn.140005e60
mov r8d, dword [rbx + 0xc]
cmp r8d, 6
ja case.default.0x14000b519
lea rdx, [0x140000000]
mov ecx, dword [rdx + r8*4 + 0xb5c4]
add rcx, rdx
jmp rcx
lea rdx, str.Invalid_packet_status:_CHS_STATUS_MAX_MESSAGE_LENGTH_EXCEEDED
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140005e60
lea rdx, str.Invalid_packet_status:_CHS_STATUS_UNSPEC_ERROR
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140005e60
lea rdx, str.Invalid_packet_status:_CHS_STATUS_CONN_FAILED
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140005e60
lea rdx, str.Invalid_packet_status:_CHS_STATUS_COMM_FAILED
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140005e60
lea rdx, str.Invalid_packet_status:_CHS_STATUS_NOT_CONNECTED
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140005e60
lea rdx, str.Invalid_packet_status:_CHS_STATUS_HECI_NOT_READY
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140005e60
lea rdx, str.Unsupported_packet_status___d
xor ecx, ecx
call fcn.140005e60
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b6e0
Capabilities:
Accept command line arguments

Disassembly:
push rdi
sub rsp, 0x30
cmp byte [0x14006fd58], 0
mov edi, r9d
je 0x14000b6fd
mov eax, 0xffffffff
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x20]
lea rcx, [0x14006fe10]
call fcn.14000bb60
cmp al, 1
jne 0x14000b75a
lea rdx, str.Start__
xor ecx, ecx
call fcn.140005e60
lea rcx, [0x14006fe10]
call fcn.14000c630
mov ebx, eax
test eax, eax
js 0x14000b75e
mov edx, edi
lea rcx, [0x14006fe10]
call fcn.140011ea0
mov ebx, eax
jmp 0x14000b75e
mov ebx, dword [rsp + 0x20]
cmp dword [0x14007009c], 0
jne 0x14000b776
cmp byte [0x14006fe72], 0
je 0x14000b776
call qword [sym.imp.OLE32.DLL_CoUninitialize]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14000efa0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x14000f059
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x14000f025
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test rax, rax
je case.default.0x14000f03d
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
test rax, rax
je case.default.0x14000f03d
mov rdx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call qword [case.0x140024e4a.0]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp dword [rdi + 8], 0
je case.default.0x14000f03d
mov rcx, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.ADVAPI32.DLL_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp byte [0x14006fe00], 0
jne 0x14000f0a4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test rax, rax
je 0x14000f094
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x14006fdf8], rax
mov byte [0x14006fe00], 1
jmp 0x14000f0ab
mov rax, qword [0x14006fdf8]
mov byte [0x14006fe00], 1
jmp 0x14000f0ab
mov rax, qword [0x14006fdf8]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x14000f02e
mov r8d, dword [rbx + 8]
xor r9d, r9d
call qword [case.0x140024e4a.0]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
pop rdx
lea edi, [rdi + 0x21d2bf6e]
wait
popfq
add al, 0x12
in al, 0x31
invalid
Function at 0x14000fa30
Capabilities:
Create service

Disassembly:
push rdi
sub rsp, 0xa90
mov rax, qword [0x14006d0d8]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rdi, rcx
call fcn.14000fcb0
test eax, eax
je 0x14000fa61
mov eax, 1
jmp 0x14000fb68
mov r8d, 0x104
lea rdx, [rsp + 0x72]
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
test eax, eax
je 0x14000fc5e
cmp eax, 0x104
je 0x14000fc5e
lea ecx, [rax + 1]
mov r8d, 0x22
mov word [rsp + 0x70], r8w
mov word [rsp + rcx*2 + 0x70], r8w
lea ecx, [rax + 2]
add rcx, rcx
cmp rcx, 0x20c
jae 0x14000fca7
mov qword [rsp + 0xaa8], rbx
xor edx, edx
mov qword [rsp + 0xab0], rsi
mov r8d, 0xf003f
xor esi, esi
mov word [rsp + rcx + 0x70], si
xor ecx, ecx
call qword [sym.imp.ADVAPI32.DLL_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x14000fb81
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80a
call fcn.14000e200
test eax, eax
jne 0x14000fb3f
lea r8, str.Could_not_open_Service_Manager
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.14003ecf8
test eax, eax
je 0x14000fb3f
cmp eax, 0xc
je 0x14000fc7b
cmp eax, 0x16
je 0x14000fc70
cmp eax, 0x22
je 0x14000fc70
cmp eax, 0x50
jne 0x14000fc65
lea r8, [rdi + 0x68]
xor r9d, r9d
lea rdx, [rsp + 0x280]
xor ecx, ecx
call qword [sym.imp.USER32.DLL_MessageBoxW]
xor eax, eax
mov rbx, qword [rsp + 0xaa8]
mov rsi, qword [rsp + 0xab0]
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.14001bae0
add rsp, 0xa90
pop rdi
ret
mov qword [rsp + 0x60], rsi
lea rax, str.RPCSS
mov qword [rsp + 0x58], rsi
add rdi, 0x68
mov qword [rsp + 0x50], rax
mov r9d, 0xf01ff
mov qword [rsp + 0x48], rsi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rsi
mov r8, rdi
mov qword [rsp + 0x38], rax
mov rdx, rdi
mov dword [rsp + 0x30], 1
mov rcx, rbx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.ADVAPI32.DLL_CreateServiceW]
test rax, rax
jne 0x14000fc42
mov rcx, rbx
call qword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80b
call fcn.14000e200
test eax, eax
jne 0x14000fc37
lea r8, str.Could_not_start_service
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.14003ecf8
test eax, eax
je 0x14000fc37
cmp eax, 0xc
je 0x14000fc9c
cmp eax, 0x16
je 0x14000fc91
cmp eax, 0x22
je 0x14000fc91
cmp eax, 0x50
jne 0x14000fc86
xor r9d, r9d
mov r8, rdi
jmp 0x14000fb46
mov rcx, rax
call qword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov eax, 1
jmp 0x14000fb58
xor eax, eax
jmp 0x14000fb68
mov ecx, 0x80004005
call fcn.14000a2c0
int3
mov ecx, 0x80070057
call fcn.14000a2c0
int3
mov ecx, 0x8007000e
call fcn.14000a2c0
int3
mov ecx, 0x80004005
call fcn.14000a2c0
int3
mov ecx, 0x80070057
call fcn.14000a2c0
int3
mov ecx, 0x8007000e
call fcn.14000a2c0
int3
call fcn.14001c124
int3
Function at 0x140010490
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14006d0d8]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov qword [rsp + 0x48], rbp
mov r8, rdx
mov dword [rsp + 0x50], ebp
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x58], rbp
lea rcx, [rsp + 0x48]
call fcn.14000ff10
mov ebx, eax
test eax, eax
jne 0x1400105a7
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.DLL_RegEnumKeyExW]
test eax, eax
jne 0x140010581
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140010490
mov ebx, eax
test eax, eax
jne 0x1400105a7
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.DLL_RegEnumKeyExW]
test eax, eax
je 0x140010530
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140010596
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov rdx, rsi
mov dword [rsp + 0x50], ebp
mov rcx, rdi
call fcn.14000efa0
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400105b7
call qword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14001bae0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140010ac0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x14006d0d8]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140010b4e
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140010b4e
call fcn.14000e1d0
mov ebx, eax
jmp 0x140010c73
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140010b6f
call fcn.14000e1d0
jmp 0x140010c62
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140010b92
call fcn.14000e1d0
jmp 0x140010c62
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x140010bb4
mov ebx, 0x8007000e
jmp 0x140010c64
mov ecx, eax
test eax, eax
je 0x140010be9
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140010cab
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140010be9
lea rcx, [rsp + 0x70]
call fcn.14000e0b0
jmp 0x140010bf3
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140010c06
cmp qword [rsp + 0x70], 0
jne 0x140010c15
mov ebx, 0x8007000e
jmp 0x140010c64
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
jne 0x140010c3f
call fcn.14000e1d0
jmp 0x140010c62
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400105e0
mov ebx, eax
test rdi, rdi
je 0x140010c73
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140010c8a
lea rcx, [rsp + 0x70]
call fcn.14000f0e0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14001bae0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.14000a2c0
int3