Function at 0x140041150
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x1400e8080]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov r15, rcx
mov qword [rbp - 0x58], rcx
xor r13d, r13d
mov dword [rsp + 0x20], r13d
mov r8d, 0x104
lea rdx, [rbp + 0xf0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x38], r13
mov r8d, 0x3e
lea rdx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
lea rcx, [rbp - 0x50]
call fcn.140006c40
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], r13b
mov esi, 2
mov dword [rsp + 0x20], esi
mov qword [rsp + 0x38], 0xa
xor eax, eax
mov qword [rsp + 0x28], rax
mov word [rsp + 0x30], ax
mov byte [rsp + 0x32], al
mov ebx, r13d
mov r14, qword [rbp - 0x38]
mov r12, qword [rbp - 0x40]
mov rdi, qword [rbp - 0x50]
nop word [rax + rax]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdqe
xor edx, edx
div r12
lea rax, [rbp - 0x50]
cmp r14, 0xf
cmova rax, rdi
movzx ecx, byte [rax + rdx]
lea rax, [rsp + 0x28]
cmp qword [rsp + 0x40], 0xf
cmova rax, qword [rsp + 0x28]
mov byte [rbx + rax], cl
inc rbx
cmp rbx, 0xa
jl 0x140041220
cmp r14, 0xf
jbe 0x140041294
lea rdx, [r14 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14004128c
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004128c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.14009caf0
mov r8d, 4
lea rdx, str..exe
lea rcx, [rsp + 0x28]
call fcn.140003d00
xorps xmm0, xmm0
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], r13
mov qword [r15 + 0x18], r13
movups xmm0, xmmword [rax]
movups xmmword [r15], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r15 + 0x10], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
or esi, 4
and esi, 0xfffffffd
or esi, 1
mov dword [rsp + 0x20], esi
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x140041326
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041321
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041321
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009caf0
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
lea rax, [rbp + 0xf0]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140041356
lea rdx, [rbp + 0xf0]
lea rcx, [rbp - 0x50]
call fcn.140006c40
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
lea rax, [rbp + 0xf0]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140041390
lea rdx, [rbp + 0xf0]
lea rcx, [rsp + 0x48]
call fcn.140006c40
nop
lea rbx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0xf
cmova rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x140041438
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x1400d98a8]
lea rdx, [0x1400d98aa]
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rbp + rax - 0x10], 1
inc rcx
cmp rcx, rdx
jne 0x1400413f0
lea rax, [rdi - 1]
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
add r8, rbx
movzx eax, byte [r8]
cmp byte [rbp + rax - 0x10], 0
jne 0x140041433
cmp r8, rbx
je 0x140041438
dec r8
movzx eax, byte [r8]
cmp byte [rbp + rax - 0x10], 0
je 0x140041420
sub r8, rbx
jmp 0x14004143f
mov r8, 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
cmp qword [rbp - 0x40], r8
cmovb r8, qword [rbp - 0x40]
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x78]
call fcn.140006c40
or esi, 8
mov dword [rsp + 0x20], esi
mov r8d, 1
lea rdx, str._:
lea rcx, [rbp - 0x78]
call fcn.140003d00
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rax + 0x10], r13
mov byte [rax], 0
or esi, 0x10
mov dword [rsp + 0x20], esi
mov rdx, r15
lea rcx, [rsp + 0x68]
call fcn.140003d80
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x20], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x14004153c
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041537
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041537
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009caf0
movdqa xmm0, xmmword [0x1400d9bc0]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], 0
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x140041595
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041588
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041588
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009caf0
movdqa xmm0, xmmword [0x1400d9bc0]
movdqu xmmword [rbp - 0x68], xmm0
mov byte [rbp - 0x78], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x1400415e6
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400415d9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400415d9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009caf0
movdqa xmm0, xmmword [0x1400d9bc0]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x14004162f
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004162a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004162a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009caf0
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rdx, qword [rbp - 0x30]
lea rcx, [rbp + 0xf0]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x140041688
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041683
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041683
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009caf0
mov rax, r15
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.14009c770
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret