joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002370
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004360]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000238f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002398
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000238f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400023b0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140004360]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400023d0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400023d8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400023d0
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140002420
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002417
test rcx, rcx
je 0x1400023d0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002408
xor eax, eax
ret

Function at 0x140002430
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004360]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000244f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002458
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002470
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004360]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002490
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002498
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002490
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x140002490
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x1400024e4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400024f0
add rdx, 0x28
cmp rdx, r9
jne 0x1400024d0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002500
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140004360]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002522
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002530
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002522
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002522
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x140002522
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x140002585
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002598
add rdx, 0x28
cmp r10, rdx
jne 0x140002570
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400025a7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400025b7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000258e
test ecx, ecx
jg 0x1400025a0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x180774058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1807741df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180774089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18077406f
add dl, dl
jne 0x180774096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1807740f6
xor eax, eax
add dl, dl
jne 0x1807740a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1807741ad
add dl, dl
jne 0x1807740b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807740c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807740d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807740dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1807740ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18077407e
mov eax, 1
add dl, dl
jne 0x180774106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180774113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1807740fb
sub eax, ebx
mov ebx, 1
jne 0x18077414c
mov ecx, 1
add dl, dl
jne 0x18077412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18077413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180774123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18077407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180774168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180774175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18077415d
cmp eax, 0x7d00
jae 0x18077419b
cmp eax, 0x500
jb 0x180774196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18077407e
cmp eax, 0x7f
ja 0x18077419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18077407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1807741d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x18077407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x18005dd20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x1802a60c0]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x18005dd5d
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x18005dd64
mov al, 1
jmp 0x18005debc
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.1800959c0
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.1800959c0
mov dword [rsp + 0x40], eax
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x40]
call fcn.180095a10
movzx eax, al
test eax, eax
je 0x18005ddb9
xor al, al
jmp 0x18005debc
mov qword [rsp + 0x60], reloc.WLDAP32.dll_Ordinal_32
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x18005de29
cmp dword [rsp + 0x30], 1
je 0x18005de35
cmp dword [rsp + 0x30], 3
je 0x18005deaa
jmp 0x18005deba
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x18005de81
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x48], rax
je 0x18005de81
xor al, al
jmp 0x18005debc
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x18005de9b
mov dword [rsp + 0x34], 1
jmp 0x18005dea3
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x18005debc
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x18005debc
xor al, al
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1801f08c0
add rsp, 0xa8
ret
Function at 0x18012c9b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x1802a60c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x90], 0
jg 0x18012c9e4
xor eax, eax
jmp 0x18012cbe1
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x18012ca16
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call 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]
jmp 0x18012cbe1
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x18012cac8
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.18003f5f0
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.18006c490
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
nop
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x80], 0
je 0x18012cbd1
mov rcx, qword [rsp + 0x80]
call fcn.18005fcb0
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x50], 0xfff
jbe 0x18012cb7e
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x28], 0xfff
je 0x18012cb79
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x18012cbe1
jmp 0x18012caf4
cmp qword [rsp + 0x50], 0
jbe 0x18012cbd1
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1801f08c0
add rsp, 0x78
ret
Function at 0x18012cc00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x18012cc39
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call 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]
jmp 0x18012cd28
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x50], 0
jle 0x18012ccd0
cmp qword [rsp + 0x20], 0
jle 0x18012ccd0
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jge 0x18012cc79
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.18006c490
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rsp + 0x50], 0
jle 0x18012cd18
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x18012cd18
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
add rsp, 0x38
ret
Function at 0x18017e0c0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
je 0x18017e0e3
jmp 0x18017e0ff
call fcn.180134200
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
mov eax, 1
add rsp, 0x38
ret
Function at 0x18019bf80
Capabilities:
Create service

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov rax, qword [0x1802a60c0]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov byte [rsp + 0xa8], 0xeb
mov byte [rsp + 0xa9], 8
mov byte [rsp + 0xaa], Ordinal_79
mov byte [rsp + 0xab], Ordinal_143
mov byte [rsp + 0xac], Ordinal_143
mov byte [rsp + 0xad], Ordinal_41
mov byte [rsp + 0xae], 0xa8
mov byte [rsp + 0xaf], 0xee
mov byte [rsp + 0xb0], 0x3d
mov byte [rsp + 0xb1], __WSAFDIsSet
mov byte [rsp + 0xb2], Ordinal_200
lea rax, [rsp + 0xc8]
test rax, rax
jne 0x18019c01c
lea rax, [rsp + 0xa8]
call rax
xor eax, eax
call rax
nop
mov rcx, qword [rsp + 0xe0]
call fcn.180061ee0
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0xd8]
call fcn.180061ee0
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0xd0]
call fcn.180061ee0
mov qword [rsp + 0x88], rax
mov rax, qword [0x1802a6ac0]
mov qword [rsp + 0x90], rax
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 rax, qword [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov r9d, 0xf01ff
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x18019c139
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x18019c139
mov rcx, qword [rsp + 0xd0]
call fcn.180061ee0
mov qword [rsp + 0x98], rax
mov rax, qword [0x1802a6ac0]
mov qword [rsp + 0xa0], rax
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1801f08c0
add rsp, 0xc8
ret

Function at 0x18019cf90
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x1802a60c0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x28], 0xeb
mov byte [rsp + 0x29], 8
mov byte [rsp + 0x2a], 0x48
mov byte [rsp + 0x2b], 0x89
mov byte [rsp + 0x2c], Ordinal_143
mov byte [rsp + 0x2d], 0x24
mov byte [rsp + 0x2e], 0xf1
mov byte [rsp + 0x2f], 0x58
mov byte [rsp + 0x30], Ordinal_200
mov byte [rsp + 0x31], 0x3d
mov byte [rsp + 0x32], 0xc3
lea rax, [rsp + 0x48]
test rax, rax
jne 0x18019cff5
lea rax, [rsp + 0x28]
call rax
xor eax, eax
call rax
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x18019d00b
mov byte [rsp + 0x20], 1
jmp 0x18019d010
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x22], al
movzx eax, byte [rsp + 0x22]
test eax, eax
jne 0x18019d033
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
je 0x18019d033
xor al, al
jmp 0x18019d053
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x18019d049
mov byte [rsp + 0x21], 1
jmp 0x18019d04e
mov byte [rsp + 0x21], 0
movzx eax, byte [rsp + 0x21]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1801f08c0
add rsp, 0x48
ret
Function at 0x18019d070
Capabilities:
Get common file path

Disassembly:
push rbp
push rdi
sub rsp, 0x278
lea rbp, [rsp + 0x40]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x1802a60c0]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov byte [rbp + 0x100], 0xeb
mov byte [rbp + 0x101], 8
mov byte [rbp + 0x102], 0x48
mov byte [rbp + 0x103], Ordinal_143
mov byte [rbp + 0x104], Ordinal_143
mov byte [rbp + 0x105], Ordinal_41
mov byte [rbp + 0x106], Ordinal_211
mov byte [rbp + 0x107], reloc.WS2_32.dll___WSAFDIsSet
mov byte [rbp + 0x108], 0x66
mov byte [rbp + 0x109], 0x3d
mov byte [rbp + 0x10a], Ordinal_200
lea rax, [rsp + 0x288]
test rax, rax
jne 0x18019d0fc
lea rax, [rbp + 0x100]
call rax
xor eax, eax
call rax
nop
lea rax, [rbp + 0x110]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov edx, 0x104
lea rcx, [rbp + 0x110]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x18019d12c
xor al, al
jmp 0x18019d2db
lea rax, [rbp + 1]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 2]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 1]
movzx r8d, byte [rbp + 2]
movzx edx, byte [rbp + 9]
lea rcx, [rbp + 0xc0]
call fcn.18019aaf0
mov rcx, rax
call fcn.18019c2d0
mov qword [rbp + 0x20], rax
lea rdx, [rbp + 0x110]
lea rcx, [rbp + 0x90]
call fcn.180043c60
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x28], rax
mov r8, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x28]
lea rcx, [rbp + 0xe0]
call fcn.180030b30
nop
lea rcx, [rbp + 0x90]
call fcn.180046980
nop
lea rax, [rbp + 3]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 4]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 3]
movzx r8d, byte [rbp + 4]
movzx edx, byte [rbp + 0xa]
lea rcx, [rbp + 0x70]
call fcn.18019ac40
mov rcx, rax
call fcn.18019c160
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.180043c60
nop
lea rax, [rbp + 5]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 6]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 5]
movzx r8d, byte [rbp + 6]
movzx edx, byte [rbp + 0xb]
lea rcx, [rbp + 0x80]
call fcn.18019ac40
mov rcx, rax
call fcn.18019c160
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.180043c60
nop
lea r8, [rbp + 0xe0]
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x30]
call fcn.18019bf80
mov qword [0x1802a6ab8], rax
lea rcx, [rbp + 0x30]
call fcn.180046980
nop
lea rcx, [rbp + 0x50]
call fcn.180046980
nop
cmp qword [0x1802a6ab8], 0
jne 0x18019d2a5
mov byte [rbp + 7], 0
lea rcx, [rbp + 0xe0]
call fcn.180046980
movzx eax, byte [rbp + 7]
jmp 0x18019d2db
cmp qword [0x1802a6ab8], 0
je 0x18019d2c0
mov rcx, qword [0x1802a6ab8]
call fcn.18019d3b0
mov byte [rbp], al
jmp 0x18019d2c4
mov byte [rbp], 0
movzx eax, byte [rbp]
mov byte [rbp + 8], al
lea rcx, [rbp + 0xe0]
call fcn.180046980
movzx eax, byte [rbp + 8]
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.1801f08c0
add rsp, 0x278
pop rdi
pop rbp
ret
Function at 0x18019d3b0
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x1802a60c0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x28], 0xeb
mov byte [rsp + 0x29], 8
mov byte [rsp + 0x2a], 0x48
mov byte [rsp + 0x2b], 0x89
mov byte [rsp + 0x2c], Ordinal_143
mov byte [rsp + 0x2d], 0x24
mov byte [rsp + 0x2e], 0xbb
mov byte [rsp + 0x2f], 0x42
mov byte [rsp + 0x30], Ordinal_211
mov byte [rsp + 0x31], 0x67
mov byte [rsp + 0x32], 0xc3
lea rax, [rsp + 0x48]
test rax, rax
jne 0x18019d415
lea rax, [rsp + 0x28]
call rax
xor eax, eax
call rax
nop
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x18019d430
mov byte [rsp + 0x20], 1
jmp 0x18019d435
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
test eax, eax
jne 0x18019d45e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x18019d45e
mov dword [rsp + 0x24], 0
jmp 0x18019d466
mov dword [rsp + 0x24], 1
movzx eax, byte [rsp + 0x24]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1801f08c0
add rsp, 0x48
ret

Function at 0x18019f010
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x1802a60c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x30], 0xeb
mov byte [rsp + 0x31], 8
mov byte [rsp + 0x32], 0x48
mov byte [rsp + 0x33], 0x89
mov byte [rsp + 0x34], Ordinal_143
mov byte [rsp + 0x35], 0x24
mov byte [rsp + 0x36], 0x62
mov byte [rsp + 0x37], 0x68
mov byte [rsp + 0x38], 0x76
mov byte [rsp + 0x39], Ordinal_143
mov byte [rsp + 0x3a], 0xc3
lea rax, [rsp + 0x58]
test rax, rax
jne 0x18019f075
lea rax, [rsp + 0x30]
call rax
xor eax, eax
call rax
nop
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18019f092
xor eax, eax
jmp 0x18019f0c1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x18019f0bc
xor eax, eax
jmp 0x18019f0c1
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1801f08c0
add rsp, 0x58
ret
Function at 0x18019ff10
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x1802a60c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov byte [rsp + 0x68], 0xeb
mov byte [rsp + 0x69], 8
mov byte [rsp + 0x6a], 0x48
mov byte [rsp + 0x6b], 0x89
mov byte [rsp + 0x6c], Ordinal_143
mov byte [rsp + 0x6d], 0x24
mov byte [rsp + 0x6e], 0x34
mov byte [rsp + 0x6f], 0xfa
mov byte [rsp + 0x70], 0xc9
mov byte [rsp + 0x71], 0xa0
mov byte [rsp + 0x72], 0xc3
lea rax, [rsp + 0x88]
test rax, rax
jne 0x18019ff85
lea rax, [rsp + 0x68]
call rax
xor eax, eax
call rax
nop
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], 0xffffffffffffffff
inc qword [rsp + 0x30]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
cmp byte [rax + rcx], 0
jne 0x18019ff9b
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x98]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x98]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x20], 0
jmp 0x1801a0005
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jae 0x1801a00cb
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x90]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1801a00c6
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x38], 0xffffffffffffffff
inc qword [rsp + 0x38]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
cmp byte [rax + rcx], 0
jne 0x1801a0061
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x48], rax
jne 0x1801a00c6
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0xc], 0
jne 0x1801a0091
xor eax, eax
jmp 0x1801a00cd
cmp qword [rsp + 0xa0], 0
je 0x1801a00ae
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 8]
mov dword [rax], ecx
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x98]
add rcx, rax
mov rax, rcx
jmp 0x1801a00cd
jmp 0x18019fffb
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1801f08c0
add rsp, 0x88
ret