Function at 0x140018720
Capabilities:
Generate random numbers via winapi
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x1400c81d8]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movdqa xmm1, xmmword [0x1400ae650]
movdqu xmmword [rsp + 0x40], xmm1
mov byte [rsp + 0x30], 0
lea r8, [rsp + 0x68]
mov edx, 0x28
mov rcx, qword [0x1400caa58]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
xor r14d, r14d
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9d, [r14 + 0x28]
lea r8, [rsp + 0x68]
lea edx, [r14 + 0x14]
lea rcx, [rsp + 0x50]
call fcn.14002a7e0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140001a70
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae r8, qword [rsp + 0x30]
mov ebx, 0x104
mov dword [rsp + 0x28], ebx
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x20], rax
mov rdi, 0xffffffffffffffff
mov r9d, edi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14001885d
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140018834
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001882f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018adb
call fcn.140088f04
xor al, al
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.1400890e0
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov word [rbp + 0x1b0], r14w
mov r8, rsi
mov r11, qword [rsi + 0x18]
cmp r11, 8
jb 0x140018875
mov r8, qword [rsi]
mov rdx, rbx
lea rcx, [rbp - 0x70]
lea rax, [rbp - 0x70]
sub r8, rax
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400188a6
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1400188a6
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140018883
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], r14w
mov rcx, rbx
lea rax, [rbp - 0x70]
nop dword [rax]
cmp word [rax], r14w
je 0x1400188d0
add rax, 2
sub rcx, 1
jne 0x1400188c0
mov rax, rbx
sub rax, rcx
test rcx, rcx
cmove rax, r14
mov r8d, 0x7ffffffe
je 0x140018932
mov rdx, rbx
sub rdx, rax
lea rcx, [rbp - 0x70]
lea rcx, [rcx + rax*2]
je 0x140018923
mov eax, r8d
lea r10, [0x1400aabf8]
sub r10, rcx
test rax, rax
je 0x140018923
movzx r9d, word [rcx + r10]
test r9w, r9w
je 0x140018923
mov word [rcx], r9w
add rcx, 2
dec rax
sub rdx, 1
jne 0x140018902
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], r14w
mov rcx, rbx
lea rax, [rbp - 0x70]
nop dword [rax]
cmp word [rax], r14w
je 0x140018950
add rax, 2
sub rcx, 1
jne 0x140018940
mov rax, rbx
sub rax, rcx
test rcx, rcx
cmove rax, r14
je 0x1400189b0
mov rdx, rbx
sub rdx, rax
lea rcx, [rbp - 0x70]
lea rcx, [rcx + rax*2]
je 0x1400189a1
mov rax, r8
lea r10, [rbp + 0x1a0]
sub r10, rcx
nop dword [rax]
test rax, rax
je 0x1400189a1
movzx r9d, word [r10 + rcx]
test r9w, r9w
je 0x1400189a1
mov word [rcx], r9w
add rcx, 2
dec rax
sub rdx, 1
jne 0x140018980
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], r14w
mov rcx, rbx
lea rax, [rbp - 0x70]
cmp word [rax], r14w
je 0x1400189c7
add rax, 2
sub rcx, 1
jne 0x1400189b7
mov rax, rbx
sub rax, rcx
test rcx, rcx
cmove rax, r14
je 0x140018a1d
sub rbx, rax
lea rcx, [rbp - 0x70]
lea rcx, [rcx + rax*2]
je 0x140018a0e
lea rdx, str..deleteme
sub rdx, rcx
nop dword [rax]
test r8, r8
je 0x140018a0e
movzx eax, word [rdx + rcx]
test ax, ax
je 0x140018a0e
mov word [rcx], ax
add rcx, 2
dec r8
sub rbx, 1
jne 0x1400189f0
lea rax, [rcx - 2]
test rbx, rbx
cmovne rax, rcx
mov word [rax], r14w
mov rcx, rsi
cmp r11, 8
jb 0x140018a29
mov rcx, qword [rsi]
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x140018a9b
lea rax, [rbp - 0x70]
nop dword [rax + rax]
inc rdi
cmp word [rax + rdi*2], r14w
jne 0x140018a40
lea rcx, [rsi + 0x20]
mov r8, rdi
lea rdx, [rbp - 0x70]
call fcn.140022570
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140018a94
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018a8f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018adb
call fcn.140088f04
mov al, 1
jmp 0x140018836
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140018834
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001882f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001882f
call fcn.14008fc64
int3