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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x1400c81d8]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov rdi, 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 esi, esi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9d, [rsi + 0x28]
lea r8, [rsp + 0x68]
lea edx, [rsi + 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
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rsi - 1]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x140017e38
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140017e0e
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017e09
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400180cd
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 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov word [rbp + 0x1b0], si
add rdi, 0x20
mov r8, rdi
mov r11, qword [rdi + 0x18]
cmp r11, 8
jb 0x140017e53
mov r8, qword [rdi]
mov rdx, rbx
lea rcx, [rbp - 0x70]
lea rax, [rbp - 0x70]
sub r8, rax
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140017e84
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140017e84
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140017e61
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], si
mov rcx, rbx
lea rax, [rbp - 0x70]
nop dword [rax]
cmp word [rax], si
je 0x140017eaf
add rax, 2
sub rcx, 1
jne 0x140017ea0
mov rax, rbx
sub rax, rcx
test rcx, rcx
cmove rax, rsi
mov r8d, 0x7ffffffe
je 0x140017f10
mov rdx, rbx
sub rdx, rax
lea rcx, [rbp - 0x70]
lea rcx, [rcx + rax*2]
je 0x140017f02
mov eax, r8d
lea r10, [0x1400aabf8]
sub r10, rcx
test rax, rax
je 0x140017f02
movzx r9d, word [r10 + rcx]
test r9w, r9w
je 0x140017f02
mov word [rcx], r9w
add rcx, 2
dec rax
sub rdx, 1
jne 0x140017ee1
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], si
mov rcx, rbx
lea rax, [rbp - 0x70]
cmp word [rax], si
je 0x140017f26
add rax, 2
sub rcx, 1
jne 0x140017f17
mov rax, rbx
sub rax, rcx
test rcx, rcx
cmove rax, rsi
je 0x140017f81
mov rdx, rbx
sub rdx, rax
lea rcx, [rbp - 0x70]
lea rcx, [rcx + rax*2]
je 0x140017f73
mov rax, r8
lea r10, [rbp + 0x1a0]
sub r10, rcx
test rax, rax
je 0x140017f73
movzx r9d, word [r10 + rcx]
test r9w, r9w
je 0x140017f73
mov word [rcx], r9w
add rcx, 2
dec rax
sub rdx, 1
jne 0x140017f52
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], si
mov rcx, rbx
lea rax, [rbp - 0x70]
cmp word [rax], si
je 0x140017f97
add rax, 2
sub rcx, 1
jne 0x140017f88
mov rax, rbx
sub rax, rcx
test rcx, rcx
cmove rax, rsi
je 0x140017fec
sub rbx, rax
lea rcx, [rbp - 0x70]
lea rcx, [rcx + rax*2]
je 0x140017fde
lea rdx, str..deleteme
sub rdx, rcx
nop dword [rax]
test r8, r8
je 0x140017fde
movzx eax, word [rdx + rcx]
test ax, ax
je 0x140017fde
mov word [rcx], ax
add rcx, 2
dec r8
sub rbx, 1
jne 0x140017fc0
lea rax, [rcx - 2]
test rbx, rbx
cmovne rax, rcx
mov word [rax], si
mov rcx, rdi
cmp r11, 8
jb 0x140017ff8
mov rcx, qword [rdi]
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14001808d
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140018017
mov rdx, qword [rdi]
lea rcx, [rbp - 0x70]
call fcn.1400180e0
test al, al
je 0x140018075
xor edx, edx
lea r8d, [rdx + 4]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14001806e
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018069
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400180cd
call fcn.140088f04
mov al, 1
jmp 0x140017e10
cmp qword [rdi + 0x18], 8
jb 0x14001807f
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140017e0e
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017e09
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140017e09
call fcn.14008fc64
int3