joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6924eb10
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x693da1a4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6924ec98
mov rax, qword [0x693da1a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6924eb5c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6924ebe5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6924eb40
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6924eccd
mov rax, qword [0x693da1a8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x693da1a8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6924ecb0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6924ebde
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6924ec40
add dword [0x693da1a4], 1
cmp edi, 8
jae 0x6924ec13
test dil, 4
jne 0x6924ec84
test edi, edi
je 0x6924ec08
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6924ec9f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6924ec08
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6924ec2c
jmp 0x6924ec08
add rsi, qword [0x693da1a8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6924ebde
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6924ec08
xor esi, esi
jmp 0x6924eb67
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6924ec08
mov rax, qword [0x693da1a8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6924f420
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x693da480]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x693da460]
test rbx, rbx
je 0x6924f474
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6924f46b
test rsi, rsi
je 0x6924f46b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6924f450
lea rcx, [0x693da480]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6924f6b0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6924f6c0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6924f6d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6924f711
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6924f708
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6924f713
add rax, 0x28
cmp rax, r9
jne 0x6924f6f4
xor eax, eax
ret

Function at 0x6924f7b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6934a170]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6924f81d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6924f81d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6924f81d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6924f814
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6924f81f
add rax, 0x28
cmp rax, r9
jne 0x6924f800
xor eax, eax
add rsp, 0x28
ret

Function at 0x6924f920
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6934a170]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6924f940
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6924f938
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6924f99d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6924f994
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6924f9a4
add rax, 0x28
cmp rax, r9
jne 0x6924f980
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6924f9c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6934a170]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6924fa2e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6924fa2e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6924fa2e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6924fa2e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6924fa25
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6924fa35
add rcx, 0x28
cmp rcx, rax
jne 0x6924fa10
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6924fa48
jmp 0x6924fa2e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6924fa56
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6924fa2e
test r9d, r9d
jg 0x6924fa40
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6924fef0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400111f9
Capabilities:
Terminate process

Disassembly:
jmp 0x140013110
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
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]
nop
add rsp, 0x28
ret

Function at 0x140011285
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014450
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014470
xor al, al
jmp 0x1400144f1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014483
xor al, al
jmp 0x1400144f1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400144ad
xor al, al
jmp 0x1400144f1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400144c1
xor al, al
jmp 0x1400144f1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400144d3
xor al, al
jmp 0x1400144f1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400144ef
xor al, al
jmp 0x1400144f1
mov al, 1
add rsp, 0x38
ret
Function at 0x140012350
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113a7
movzx eax, al
test eax, eax
jne 0x140012370
mov ecx, 7
call fcn.140011320
nop
mov byte [rsp + 0x20], 0
call fcn.140011334
mov byte [rsp + 0x21], al
cmp dword [0x14001e878], 1
jne 0x140012394
mov ecx, 7
call fcn.140011320
nop
jmp 0x1400123ec
cmp dword [0x14001e878], 0
jne 0x1400123e7
mov dword [0x14001e878], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.14001119f
test eax, eax
je 0x1400123c8
mov eax, 0xff
jmp 0x1400124f1
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.14001132a
mov dword [0x14001e878], 2
jmp 0x1400123ec
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001130c
call fcn.1400112a8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012449
mov rcx, qword [rsp + 0x30]
call fcn.140011154
movzx eax, al
test eax, eax
je 0x140012449
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140024020]
nop
call fcn.1400112da
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001247d
mov rcx, qword [rsp + 0x38]
call fcn.140011154
movzx eax, al
test eax, eax
je 0x14001247d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011366
nop
call fcn.1400125a0
mov dword [rsp + 0x28], eax
call fcn.140011285
movzx eax, al
test eax, eax
jne 0x14001249c
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400124ab
call fcn.140011370
nop
xor edx, edx
mov cl, 1
call fcn.140011145
mov eax, dword [rsp + 0x28]
jmp 0x1400124f1
add rsp, 0x68
ret
Function at 0x140017217
Capabilities:
Write file on windows

Disassembly:
jmp 0x140030d20
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1401dc3b1]
call fcn.140018428
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x140030d78
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140030e8a
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x140030e23
cmp qword [rbp + 0x28], 0
jle 0x140030e23
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x140030dc1
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.1400182f7
nop
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rbp + 0x130], 0
jle 0x140030e79
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x140030e79
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x1400173a7
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x14002bde0
mov dword [rsp + 8], ecx
push rbp
push rdi
mov eax, 0x106e8
call fcn.140017375
sub rsp, rax
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x4032
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x10708]
mov rax, qword [0x1401d0080]
xor rax, rbp
mov qword [rbp + 0x106b8], rax
lea rcx, reloc.d2d1.dll_Ordinal_1
call fcn.140018428
nop
mov ecx, 4
call fcn.1400176ea
add rax, qword [0x1401d0a08]
mov qword [rbp + 0x106a8], rax
mov rax, qword [0x1401d09e8]
mov qword [rbp + 0x106b0], rax
mov r9d, 0x10
lea r8, [rbp + 8]
mov rdx, qword [rbp + 0x106a8]
mov rcx, qword [rbp + 0x106b0]
call fcn.140017bcc
nop
xor eax, eax
cmp eax, 1
je 0x14002bf76
mov qword [rbp + 0x38], 0
mov rax, qword [rbp + 8]
mov qword [rbp + 0x10078], rax
mov rax, qword [0x1401d0a08]
mov rcx, qword [rbp + 0x10078]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x10098], rax
mov rax, qword [0x1401d09f8]
mov rcx, qword [rbp + 0x10098]
add rcx, rax
mov rax, rcx
mov r9d, 8
lea r8, [rbp + 0x38]
mov rdx, rax
mov rcx, qword [0x1401d09e8]
call fcn.140017bcc
nop
mov rax, qword [0x1401d09f0]
mov rcx, qword [rbp + 0x10098]
add rcx, rax
mov rax, rcx
mov r9d, 0xffff
lea r8, [rbp + 0x60]
mov rdx, rax
mov rcx, qword [0x1401d09e8]
call fcn.140017bcc
nop
mov rax, qword [0x1401d0a08]
mov rcx, qword [rbp + 0x10098]
add rcx, rax
mov rax, rcx
mov r9d, 0x10
lea r8, [rbp + 8]
mov rdx, rax
mov rcx, qword [0x1401d09e8]
call fcn.140017bcc
nop
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
je 0x14002bf4b
call fcn.140018400
nop
movsxd rax, dword [rbp + 0x106e0]
cmp qword [rbp + 0x38], rax
jne 0x14002bf61
mov rax, qword [rbp + 0x10098]
jmp 0x14002bf78
cmp qword [rbp + 0x38], 4
je 0x14002bf6f
cmp qword [rbp + 0x38], 0
jne 0x14002bf71
jmp 0x14002bf76
jmp 0x14002be72
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14004f4d0]
call fcn.14001807c
mov rax, rdi
mov rcx, qword [rbp + 0x106b8]
xor rcx, rbp
call fcn.1400179c9
lea rsp, [rbp + 0x106c8]
pop rdi
pop rbp
ret
Function at 0x1400173fc
Capabilities:
Create thread

Disassembly:
jmp 0x14001ea10
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x1401d0080]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x1401dc122]
call fcn.140018428
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.1400175dc
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.140017a1e
nop
lea rax, [0x140017d25]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.140017d84
mov rcx, qword [rbp + 0xf8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x130]
mov qword [rcx], rax
mov rax, qword [rbp + 0x130]
cmp qword [rax], 0
je 0x14001eaec
lea rcx, [rbp + 8]
call fcn.140017898
nop
jmp 0x14001eb05
mov rax, qword [rbp + 0x130]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.14001747e
nop
lea rcx, [rbp + 8]
call fcn.140017834
nop
lea rcx, [rbp - 0x30]
lea rdx, reloc.d2d1.dll_Ordinal_1
call fcn.14001807c
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.1400179c9
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x1400175af
Capabilities:
Create service

Disassembly:
jmp 0x140039120
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1d8
lea rbp, [rsp + 0x70]
lea rcx, reloc.d2d1.dll_Ordinal_1
call fcn.140018428
nop
call fcn.140017663
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x140039157
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x140039183
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x124], eax
lea rdx, [rbp + 0x124]
lea rcx, str.____failed_to_obtain_service_manager_handle.__0x_lX__n
call fcn.140017d70
nop
mov rax, 0xffffffffffffffff
jmp 0x14003928b
mov rcx, qword [rbp + 0x180]
call fcn.14001714a
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov r9d, 0x10030
lea r8, str.mhyprot2
lea rdx, str.mhyprot2
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x140039209
cmp qword [rbp + 0x28], 0xffffffffffffffff
jne 0x14003927c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0x431
jne 0x140039241
lea rcx, str.___the_service_already_exists__open_handle_n
call fcn.140017d89
nop
mov r8d, 0x10030
lea rdx, str.mhyprot2
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
jmp 0x14003928b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x144], eax
lea r8, [rbp + 0x144]
lea rdx, str.mhyprot2
lea rcx, str.____failed_to_create__s_service.__0x_lX__n
call fcn.140017091
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rax, 0xffffffffffffffff
jmp 0x14003928b
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x1400175eb
Capabilities:
Get system information on windows

Disassembly:
jmp 0x14002b0f0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1a8]
mov rax, qword [0x1401d0080]
xor rax, rbp
mov qword [rbp + 0x158], rax
mov dword [rbp + 0x144], 0
lea rcx, [0x1401dc287]
call fcn.140018428
nop
mov qword [rbp + 8], 0x1008
mov dword [rbp + 0x24], 0xc0000004
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x14002b195
xor edx, edx
mov rcx, qword [rbp + 0x180]
call fcn.14001778a
mov eax, dword [rbp + 0x144]
or eax, 1
mov dword [rbp + 0x144], eax
mov rax, qword [rbp + 0x180]
jmp 0x14002b240
jmp 0x14002b1a2
mov rax, qword [rbp + 8]
shl rax, 1
mov qword [rbp + 8], rax
cmp dword [rbp + 0x24], 0xc0000004
jne 0x14002b1f4
xor r9d, r9d
mov r8d, dword [rbp + 8]
mov rdx, qword [rbp + 0x48]
mov ecx, dword [rbp + 0x188]
call fcn.140017ec4
mov dword [rbp + 0x24], eax
mov eax, 2
mul qword [rbp + 8]
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
mov rdx, rax
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ucrtbased.dll_realloc]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x14002b1f2
jmp 0x14002b1f4
jmp 0x14002b197
mov edx, 8
lea rcx, [rbp + 0x68]
call fcn.14001754b
mov rdx, qword [rbp + 0x48]
lea rcx, [rbp + 0x68]
call fcn.140017e5b
nop
lea rdx, [rbp + 0x68]
mov rcx, qword [rbp + 0x180]
call fcn.140017087
mov eax, dword [rbp + 0x144]
or eax, 1
mov dword [rbp + 0x144], eax
lea rcx, [rbp + 0x68]
call fcn.14001746f
nop
mov rax, qword [rbp + 0x180]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.d2d1.dll_Ordinal_1
call fcn.14001807c
mov rax, rdi
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.1400179c9
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x14001790b
Capabilities:
Delete service

Disassembly:
jmp 0x140039300
mov byte [rsp + 0x18], r8b
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rcx, reloc.d2d1.dll_Ordinal_1
call fcn.140018428
nop
call fcn.140017663
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x140039340
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x140039367
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x104], eax
lea rdx, [rbp + 0x104]
lea rcx, str.____failed_to_obtain_service_manager_handle.__0x_lX__n
call fcn.140017d70
nop
xor al, al
jmp 0x140039407
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1400393e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0x430
jne 0x140039399
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov al, 1
jmp 0x140039407
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x124], eax
lea rdx, [rbp + 0x124]
lea rcx, str.____failed_to_delete_the_service.__0x_lX__n
call fcn.140017d70
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
movzx eax, byte [rbp + 0x168]
test eax, eax
je 0x1400393dd
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
xor al, al
jmp 0x140039407
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
movzx eax, byte [rbp + 0x170]
test eax, eax
je 0x140039405
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov al, 1
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x140017b59
Capabilities:
Terminate process

Disassembly:
jmp 0x140042e20
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
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]
nop
add rsp, 0x28
ret

Function at 0x140017bae
Capabilities:
Stop service

Disassembly:
jmp 0x140039520
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1a8]
mov rax, qword [0x1401d0080]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, reloc.d2d1.dll_Ordinal_1
call fcn.140018428
nop
call fcn.140017663
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x140039581
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x1400395a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x124], eax
lea rdx, [rbp + 0x124]
lea rcx, str.____failed_to_obtain_service_manager_handle.__0x_lX__n
call fcn.140017d70
nop
xor al, al
jmp 0x1400395fb
lea r8, [rbp + 0x28]
mov edx, 1
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1400395ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x144], eax
lea rdx, [rbp + 0x144]
lea rcx, str.____failed_to_stop_the_service.__0x_lX__n
call fcn.140017d70
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
xor al, al
jmp 0x1400395fb
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.d2d1.dll_Ordinal_1
call fcn.14001807c
mov rax, rdi
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.1400179c9
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x140017cfd
Capabilities:
Get geographical location

Disassembly:
jmp 0x14003d440
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14003d47d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.14001840f
add rsp, 0x58
ret