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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rdi
sub rsp, 0x578
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x560], rax
mov eax, dword [0x14001d008]
test eax, 0xc000000
jne 0x140008535
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.140001710
add rsp, 0x578
pop rdi
pop rbx
ret
test ecx, eax
je 0x1400016eb
mov r8, rdx
mov edi, 0x1ff
lea r9, [r11 + 0x18]
lea rcx, [r11 - 0x428]
xor ebx, ebx
mov rdx, rdi
mov word [rsp + 0x160], bx
call sub.msvcrt.dll__vsnwprintf
cmp eax, ebx
jl 0x1400016eb
cdqe
cmp rax, rdi
ja 0x1400016eb
jne 0x14000857f
mov word [rsp + 0x55e], bx
mov eax, dword [0x14001d008]
bt eax, 0x1b
jae 0x14000864d
cmp qword [0x14001e0a0], rbx
je 0x14000864d
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x5a]
movzx edx, word [rsp + 0x58]
movzx r8d, word [rsp + 0x56]
movzx r11d, word [rsp + 0x5e]
movzx eax, word [rsp + 0x5c]
movzx r10d, word [rsp + 0x52]
movzx r9d, word [rsp + 0x50]
mov dword [rsp + 0x48], r11d
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], r8d
lea rcx, [rsp + 0x60]
lea r8, str.__d__02d__02d__02d:_02d:_02d._03d_
mov edx, 0x80
mov dword [rsp + 0x20], r10d
call fcn.140011644
cmp eax, ebx
jl 0x140008614
mov rdx, qword [0x14001e0a0]
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll_fputws
mov rdx, qword [0x14001e0a0]
lea rcx, [rsp + 0x160]
call sub.msvcrt.dll_fputws
mov rdx, qword [0x14001e0a0]
lea rcx, [0x140018a50]
call sub.msvcrt.dll_fputws
mov rcx, qword [0x14001e0a0]
call sub.msvcrt.dll_fflush
mov eax, dword [0x14001d008]
bt eax, 0x1a
jae 0x1400016eb
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [0x140018a50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
jmp 0x1400016eb
Function at 0x140001710
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [section..data]
jne 0x140005f04
rol rcx, 0x10
test cx, 0xffff
jne 0x140005f00
ret 0
ror rcx, 0x10
jmp 0x140011e80
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14001dbd0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14001dcc8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140011f05
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14001dbd0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140011f27
mov rax, qword [rsp + 0x88]
mov qword [0x14001dcc8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14001dc68], rax
mov rax, qword [0x14001dcc8]
mov qword [0x14001db40], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14001dc50], rax
mov dword [0x14001db30], 0xc0000409
mov dword [0x14001db34], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14001d040]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140014dd8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1400017d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rsi, rdx
mov rbp, rcx
and qword [rax - 0x30], 0
and qword [rax - 0x28], 0
and qword [rax - 0x20], 0
and qword [rax - 0x40], 0
and qword [rax - 0x48], 0
mov dword [rax - 0x50], 0x20019
and dword [rax - 0x58], 0
xor r9d, r9d
mov r8, qword [rcx]
mov rdx, 0xffffffff80000002
lea rcx, [rax - 0x30]
call fcn.1400018d0
mov edi, eax
test eax, eax
jne 0x140008133
mov dword [rsp + 0x90], 4
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x98]
xor r8d, r8d
lea rdx, str.HeartbeatIntervalMs
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140001884
cmp dword [rsp + 0x98], 4
jne 0x140008170
xor edi, edi
test edi, edi
jne 0x140008175
mov edi, 0x7530
cmp dword [rsi], 0x3e8
jb 0x1400081b3
cmp dword [rsi], edi
ja 0x1400081b3
test rbx, rbx
je 0x1400018b3
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1400018b7
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
mov r9d, eax
mov r8, qword [rbp]
lea rdx, str.CServiceUptime::GetHeartbeatInterval:_Failed_to_open_key__s___0x_x
mov ecx, 1
call fcn.1400016b0
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140008169
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1400018b7
lea edi, [rax + 0xd]
jmp 0x140008175
mov r9d, edi
lea r8, str.HeartbeatIntervalMs
lea rdx, str.CServiceUptime::GetHeartbeatInterval:_Failed_to_query_key__s___0x_x
mov ecx, 1
call fcn.1400016b0
movzx esi, di
or esi, 0x80070000
test edi, edi
cmovle esi, edi
test rbx, rbx
je 0x1400081ac
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1400018b7
mov r9d, dword [rsi]
lea r8, str.HeartbeatIntervalMs
lea rdx, str.CServiceUptime::GetHeartbeatInterval:__s_was_out_of_range._Overriding__d_with_default_value__d
mov ecx, 2
call fcn.1400016b0
mov dword [rsi], edi
mov edx, edi
mov rcx, rbp
call fcn.1400107a0
mov edi, eax
test rbx, rbx
je 0x1400081ea
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x1400018b7
Function at 0x1400019c0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rbx, rcx
mov r8, qword [rcx]
test r8, r8
je 0x140007f6e
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], 0
xor r9d, r9d
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.1400018d0
mov edi, eax
test eax, eax
jne 0x140007f78
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r11d, dword [rsp + 0x74]
mov dword [rsp + 0x7c], r11d
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x78], eax
mov rbx, qword [rsp + 0x78]
mov qword [rsp + 0x78], rbx
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0xb
xor r8d, r8d
lea rdx, str.Heartbeat
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test eax, eax
jne 0x140007fb4
test rdi, rdi
je 0x140001aa0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov eax, 0x80070057
jmp 0x140001aa2
mov r9d, eax
mov r8, qword [rbx]
lea rdx, str.CServiceUptime::UpdateHeartbeat:_Failed_to_open_key__s___0x_x
mov ecx, 1
call fcn.1400016b0
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140007fad
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140001aa2
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, str.Heartbeat
lea rdx, str.CServiceUptime::UpdateHeartbeat:_Failed_to_set__s_to__d___0x_x
mov ecx, 1
call fcn.1400016b0
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
test rdi, rdi
je 0x140007fef
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140001aa2
Function at 0x140003310
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
lea rsi, [rcx + 0x4b8]
mov rbx, rcx
xor r9d, r9d
and dword [rsi], 0
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rbx + 0x4b0]
mov rdi, rax
test rcx, rcx
jne 0x140005fdb
mov qword [rbx + 0x4b0], rdi
cmp rdi, 0
je 0x140005fe7
lea r8, [0x140002600]
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rsi
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
je 0x140006004
mov rcx, qword [rbx + 0x4b0]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [rbx + 0x4bc]
jmp 0x1400033a2
test rsi, rsi
je 0x1400033b0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x4b0]
test rcx, rcx
je 0x1400033c2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x4b0], 0
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x14000334f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movzx eax, ax
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
jmp 0x1400033cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x1400033a2
Function at 0x140003640
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push r12
push r13
sub rsp, 0x68
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rsi, rdx
mov r12, rcx
test rdx, rdx
je 0x140007930
test rcx, rcx
je 0x14000793a
and qword [rdx], 0
and dword [rsp + 0xa0], 0
and dword [rsp + 0xa8], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0xa8]
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000798b
mov ecx, dword [rsp + 0xa0]
mov eax, 2
mul rcx
mov rbx, rax
mov rax, 0xffffffffffffffff
cmovo rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, rax
mov qword [rsp + 0x48], rax
jmp 0x140003709
test r13, r13
je 0x140007981
mov ecx, dword [rsp + 0xa8]
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rsi], rax
test rax, rax
je 0x140007977
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0xa8]
mov r8, rax
mov rdx, r12
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x14000795e
xor ebx, ebx
jmp 0x140003769
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, r13
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14000377f
mov eax, ebx
add rsp, 0x68
pop r13
pop r12
pop rsi
pop rbx
ret
mov eax, 0x80004003
jmp 0x140003781
mov eax, 0x80070057
jmp 0x140003781
call fcn.14000d364
mov ebx, eax
mov rcx, qword [rsi]
call qword [sym.imp.msvcrt.dll_free]
and qword [rsi], 0
jmp 0x140003769
mov ebx, 0x8007000e
jmp 0x140003769
mov ebx, 0x8007000e
jmp 0x14000377f
mov ecx, eax
call fcn.14000e078
mov ebx, eax
jmp 0x14000377f
Function at 0x14000588c
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x80
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rbx, rcx
mov r8, qword [rcx]
test r8, r8
je 0x140007ff6
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], 0
xor r9d, r9d
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.1400018d0
mov edi, eax
test eax, eax
jne 0x140008000
cmp qword [rbx], 0
je 0x14000803c
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140005a50
mov esi, eax
jmp 0x14000591e
mov rdi, qword [rsp + 0x48]
cmp dword [rsp + 0x70], 0
jne 0x140008046
lea rcx, [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r11d, dword [rsp + 0xac]
mov dword [rsp + 0xa4], r11d
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0xa0], eax
lea r12, str.ServiceStarted
mov rbx, qword [rsp + 0xa0]
mov qword [rsp + 0xa0], rbx
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, 0xb
xor r8d, r8d
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebp, eax
test eax, eax
jne 0x1400080a0
lea r12, str.Heartbeat
mov qword [rsp + 0xa0], rbx
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea r9d, [rbp + 0xb]
xor r8d, r8d
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebp, eax
test esi, esi
js 0x1400080a0
mov dword [rsp + 0xa0], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.WaitingForShutdown
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
test rdi, rdi
je 0x140005a2e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140005a32
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
mov eax, 0x80070057
jmp 0x140005a32
mov r9d, eax
mov r8, qword [rbx]
lea rdx, str.CServiceUptime::RecordServiceStart:_Failed_to_open_key__s___0x_x
mov ecx, 1
call fcn.1400016b0
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140008035
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140005a32
mov esi, 0x80070057
jmp 0x14000591e
mov eax, dword [rsp + 0x74]
inc eax
mov dword [rsp + 0xa0], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ServiceFailures
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test eax, eax
jns 0x14000592e
test rdi, rdi
je 0x140008099
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x140005a32
mov r9d, ebp
mov r8, r12
lea rdx, str.CServiceUptime::RecordServiceStart:_Failed_to_set_value__s___0x_x
mov ecx, 1
call fcn.1400016b0
movzx ebx, bp
or ebx, 0x80070000
test ebp, ebp
cmovle ebx, ebp
test rdi, rdi
je 0x1400080d3
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140005a32
Function at 0x1400105b0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rbx, rcx
mov r8, qword [rcx]
test r8, r8
jne 0x1400105de
mov eax, 0x80070057
jmp 0x14001077f
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], 0
xor r9d, r9d
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.1400018d0
mov edi, eax
test eax, eax
je 0x14001065f
mov r9d, eax
mov r8, qword [rbx]
lea rdx, str.CServiceUptime::RecordServiceStop:_Failed_to_open_key__s___0x_x
mov ecx, 1
call fcn.1400016b0
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140010658
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14001077f
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r11d, dword [rsp + 0x7c]
mov dword [rsp + 0x74], r11d
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x70], eax
mov rbx, qword [rsp + 0x70]
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0xb
xor r8d, r8d
lea rdx, str.Heartbeat
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test eax, eax
je 0x1400106fe
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, str.Heartbeat
lea rdx, str.CServiceUptime::RecordServiceStop:_Failed_to_set__s_to__d___0x_x
mov ecx, 1
call fcn.1400016b0
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
test rdi, rdi
je 0x1400106f7
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14001077f
and dword [rsp + 0x70], 0
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.WaitingForShutdown
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test eax, eax
je 0x14001076f
mov dword [rsp + 0x20], eax
xor r9d, r9d
lea r8, str.WaitingForShutdown
lea rdx, str.CServiceUptime::RecordServiceStop:_Failed_to_set__s_to__d___0x_x
lea ecx, [r9 + 1]
call fcn.1400016b0
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
test rdi, rdi
je 0x14001076b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14001077f
test rdi, rdi
je 0x14001077d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400107a0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov esi, edx
mov rbx, rcx
mov r8, qword [rcx]
test r8, r8
jne 0x1400107d0
mov eax, 0x80070057
jmp 0x1400108d3
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], 0
xor r9d, r9d
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.1400018d0
mov edi, eax
test eax, eax
je 0x140010851
mov r9d, eax
mov r8, qword [rbx]
lea rdx, str.CServiceUptime::SetHeartbeatInterval:_Failed_to_open_key__s___0x_x
mov ecx, 1
call fcn.1400016b0
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001084a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1400108d3
mov dword [rsp + 0x70], esi
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.HeartbeatIntervalMs
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test eax, eax
je 0x1400108c3
mov r9d, eax
lea r8, str.HeartbeatIntervalMs
lea rdx, str.CServiceUptime::SetHeartbeatInterval:_Failed_to_set_key__s___0x_x
mov ecx, 1
call fcn.1400016b0
movzx edi, si
or edi, 0x80070000
test esi, esi
cmovle edi, esi
test rbx, rbx
je 0x1400108bf
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x1400108d3
test rbx, rbx
je 0x1400108d1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140001050
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x88
xor eax, eax
mov r14, r8
mov rbx, rdx
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov qword [rsp + 0x58], rax
lea rdx, str.1.2.13
mov qword [rsp + 0x60], rax
lea r8d, [rax + 0x58]
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rsi, r9
mov ebp, eax
call fcn.14000b4e0
mov r15d, eax
test eax, eax
je 0x1400010d3
lea rdx, [rbx + 0x12]
mov r8d, eax
lea rcx, str.Failed_to_extract__s:_inflateInit___failed_with_return_code__d__n
call fcn.140002b30
lea eax, [rbp - 1]
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x2000
mov qword [rsp + 0x80], r13
call fcn.140014f90
mov r13, rax
test rax, rax
jne 0x140001109
lea r8, [rbx + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
lea rcx, str.malloc
call fcn.140002890
jmp 0x14000126c
mov ecx, 0x2000
call fcn.140014f90
mov rbp, rax
test rax, rax
jne 0x140001137
lea r8, [rbx + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
lea rcx, str.malloc
call fcn.140002890
jmp 0x14000126c
mov qword [rsp + 0xd0], r12
mov r12d, dword [rbx + 8]
nop dword [rax]
nop word [rax + rax]
mov eax, 0x2000
mov rbx, r12
cmp r12, rax
mov r9, rdi
mov edx, 1
mov rcx, r13
cmova rbx, rax
mov r8, rbx
call fcn.1400104dc
cmp rax, rbx
jne 0x14000125e
mov rcx, rdi
call fcn.140010250
test eax, eax
jne 0x14000125e
sub r12, rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r13
nop word [rax + rax]
mov ebx, 0x2000
mov qword [rsp + 0x30], rbp
xor edx, edx
mov dword [rsp + 0x38], ebx
lea rcx, [rsp + 0x20]
call fcn.140009990
mov edi, eax
mov r15d, 0xffffffff
lea ecx, [rax + 4]
cmp ecx, 2
jbe 0x140001241
cmp eax, 2
je 0x14000123c
mov ecx, dword [rsp + 0x38]
sub rbx, rcx
test r14, r14
je 0x140001203
mov r9, r14
lea edx, [r15 + 2]
mov r8, rbx
mov rcx, rbp
call fcn.140010c1c
cmp rax, rbx
jne 0x1400011fe
mov rcx, r14
call fcn.140010250
test eax, eax
je 0x140001219
mov edi, r15d
jmp 0x140001241
test rsi, rsi
je 0x140001219
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.14000ca40
add rsi, rbx
cmp dword [rsp + 0x38], 0
je 0x1400011a0
cmp edi, 1
je 0x140001237
test r12, r12
je 0x140001241
mov rdi, qword [rsp + 0xc0]
jmp 0x140001150
xor r15d, r15d
jmp 0x140001264
mov edi, 0xfffffffd
mov rdx, qword [rsp + 0xc8]
lea rcx, str.Failed_to_extract__s:_decompression_resulted_in_return_code__d__n
add rdx, 0x12
mov r8d, edi
call fcn.140002b30
jmp 0x140001264
mov r15d, 0xffffffff
mov r12, qword [rsp + 0xd0]
lea rcx, [rsp + 0x20]
call fcn.14000b1c0
mov rcx, r13
call fcn.140014f7c
mov rcx, rbp
call fcn.140014f7c
mov r13, qword [rsp + 0x80]
mov eax, r15d
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400012b0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push r13
push r14
mov eax, 0x1050
call fcn.14000bc60
sub rsp, rax
mov rax, qword [0x14003e018]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov rsi, rdx
mov r13, rcx
add rcx, 0x70
lea rdx, [0x14002b834]
mov ebp, 0xffffffff
call fcn.140003fd0
mov r14, rax
test rax, rax
jne 0x140001311
lea rdx, [rsi + 0x12]
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.140002b30
xor ebx, ebx
jmp 0x14000143a
mov edx, dword [rsi + 4]
xor r8d, r8d
add rdx, qword [r13]
mov rcx, r14
call fcn.140010814
test eax, eax
jns 0x14000134d
lea r8, [rsi + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140002890
mov rcx, r14
call fcn.14001018c
xor ebx, ebx
jmp 0x14000143a
mov ecx, dword [rsi + 0xc]
mov qword [rsp + 0x1048], r12
call fcn.140014f90
mov r12, rax
mov rbx, rax
test rax, rax
jne 0x140001390
mov r9d, dword [rsi + 0xc]
lea r8, [rsi + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
call fcn.140002890
mov rcx, r14
call fcn.14001018c
jmp 0x140001432
cmp byte [rsi + 0x10], 1
mov qword [rsp + 0x1090], rdi
mov qword [rsp + 0x1040], r15
jne 0x140001463
mov r9, r12
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call fcn.140001050
test eax, eax
jne 0x1400014d7
mov rcx, r14
add rsi, 0x12
call fcn.14001018c
mov rdx, rsi
lea rcx, [r13 + 0x3070]
call fcn.1400077c0
test eax, eax
js 0x140001422
mov qword [rsp + 0x28], rsi
lea r9, [r13 + 0x3070]
lea r8, str._s_c_s
mov dword [rsp + 0x20], 0x5c
mov edx, 0x1000
lea rcx, [rsp + 0x30]
call fcn.140001ef0
cmp eax, 0x1000
jge 0x140001422
lea rdx, [rsp + 0x30]
mov rcx, r12
call fcn.140004170
mov ebp, eax
mov rdi, qword [rsp + 0x1090]
mov r15, qword [rsp + 0x1040]
mov r12, qword [rsp + 0x1048]
mov rcx, rbx
call fcn.140014f7c
mov eax, ebp
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.14000bcc0
add rsp, 0x1050
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret
mov edi, dword [rsi + 0xc]
mov r15, r12
test rdi, rdi
je 0x1400013c3
mov eax, 0x2000
nop word [rax + rax]
cmp rdi, rax
mov rbp, rdi
mov r9, r14
mov r8d, 1
cmova rbp, rax
mov rcx, r15
mov rdx, rbp
call fcn.1400104dc
cmp rax, 1
jb 0x1400014bb
add r15, rbp
mov eax, 0x2000
sub rdi, rbp
jne 0x140001480
mov ebp, 0xffffffff
jmp 0x1400013c3
lea r8, [rsi + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002890
mov ebp, 0xffffffff
mov rcx, r12
call fcn.140014f7c
mov rcx, r14
call fcn.14001018c
xor ebx, ebx
jmp 0x140001422