Function at 0x140045290
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x198]
sub rsp, 0x270
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
mov rax, qword [0x1401418e0]
xor rax, rsp
mov qword [rbp + 0x130], rax
mov r15, rcx
xor r12d, r12d
lea rcx, str.USERPROFILE
call fcn.1400d8404
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], r12
xor r8d, r8d
lea rdx, [0x14011ec62]
lea rcx, [rbp - 0x28]
call fcn.14004d900
nop
lea rbx, [r12 - 1]
test rdi, rdi
je 0x1400454a4
movsd xmm0, qword [0x14012ae30]
movsd qword [rsp + 0x30], xmm0
movzx eax, word [0x14012ae38]
mov word [rsp + 0x38], ax
cmp byte [reloc.WS2_32.dll_gethostname], r12b
je 0x14004536a
mov byte [rsp + 0x30], Ordinal_50
xor byte [rsp + 0x31], 0x31
xor byte [rsp + 0x32], 0x32
xor byte [rsp + 0x33], 0x33
xor byte [rsp + 0x34], 0x34
xor byte [rsp + 0x35], 0x35
xor byte [rsp + 0x36], 0x36
xor byte [rsp + 0x37], 0x37
xor byte [rsp + 0x38], 0x38
xor byte [rsp + 0x39], 0x39
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
lea rax, [rsp + 0x30]
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x140045381
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x70]
call fcn.14004d900
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
mov r8, rbx
nop
inc r8
cmp byte [rdi + r8], 0
jne 0x1400453b0
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.14004d900
nop
lea r9, [rbp - 0x70]
lea r8, [rsp + 0x68]
movzx edx, byte [rsp + 0x40]
lea rcx, [rbp - 0x50]
call fcn.14004ed60
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x14004541a
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140045415
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400459b5
call fcn.1400b9ffc
movups xmm0, xmmword [rbp - 0x50]
movups xmmword [rbp - 0x28], xmm0
movups xmm1, xmmword [rbp - 0x40]
movups xmmword [rbp - 0x18], xmm1
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x140045467
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140045461
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400459bb
call fcn.1400b9ffc
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x1400454ba
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004549d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140045a19
call fcn.1400b9ffc
jmp 0x1400454ba
mov r8d, 0xa
lea rdx, str.._Desktop_
lea rcx, [rbp - 0x28]
call fcn.14004b180
movups xmm0, xmmword [str.FPZF]
movups xmmword [rsp + 0x68], xmm0
movzx eax, word [0x14012b258]
mov word [rsp + 0x78], ax
cmp byte [0x14012b259], 0
je 0x14004566d
mov ecx, r12d
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140045636
movdqa xmm5, xmmword [0x14012b870]
movdqa xmm4, xmmword [0x14012bb80]
mov eax, 4
movd xmm6, eax
movdqa xmm7, xmmword [0x14012b890]
mov eax, Ordinal_33
movd xmm8, eax
movdqa xmm0, xmmword [0x14012b900]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x6c]
mov r8d, dword [rsp + 0x30]
movd xmm2, ecx
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
pand xmm2, xmmword [0x14012b8e0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
pxor xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 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
pand xmm2, xmmword [0x14012b8e0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
pxor xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x10
jl 0x140045532
cmp ecx, 0x12
jge 0x14004566d
movsxd rax, ecx
lea r8, [rsp + 0x68]
add r8, rax
mov eax, 0x5397829d
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x31
movzx eax, cl
sub al, dl
add al, 0x30
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x12
jl 0x140045641
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
lea rax, [rsp + 0x68]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140045683
mov r8, rbx
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.14004d900
nop
lea rdi, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rdi, qword [rbp - 0x28]
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
sub rax, r8
mov rsi, qword [rbp - 0x18]
cmp rsi, rax
ja 0x140045743
lea rax, [rsi + r8]
mov qword [rsp + 0x58], rax
lea rbx, [rsp + 0x48]
cmp rcx, 0x10
cmovae rbx, qword [rsp + 0x48]
lea rax, [rsi + rdi]
cmp rax, rbx
jbe 0x140045706
lea rax, [rbx + r8]
cmp rdi, rax
ja 0x140045706
cmp rbx, rdi
ja 0x1400456fe
mov r14, r12
jmp 0x140045709
mov r14, rbx
sub r14, rdi
jmp 0x140045709
mov r14, rsi
inc r8
lea rcx, [rsi + rbx]
mov rdx, rbx
call fcn.1400bc140
mov r8, r14
mov rdx, rdi
mov rcx, rbx
call fcn.1400bc140
mov r8, rsi
sub r8, r14
lea rdx, [rsi + r14]
add rdx, rdi
lea rcx, [rbx + r14]
call fcn.1400bc140
lea rax, [rsp + 0x48]
jmp 0x14004575d
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.1400504d0
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 8], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 8], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x1400457c7
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400457c2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400459c1
call fcn.1400b9ffc
movdqa xmm0, xmmword [0x14012b820]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x20]
call fcn.1400bc7f0
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 0x10
cmovae rdx, qword [rbp - 8]
lea rcx, [rbp + 0x20]
call fcn.14004aee0
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x20], rbx
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
je 0x14004588c
mov r8, qword [r15 + 0x10]
cmp qword [r15 + 0x18], 0x10
jb 0x140045840
mov r15, qword [r15]
mov rdx, r15
lea rcx, [rbp + 0x20]
call fcn.14004fc60
lea rcx, [rbp + 0x28]
call fcn.14004ade0
test rax, rax
jne 0x14004588c
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx + 0x68], 0
cmovne eax, edx
or eax, dword [rbp + rcx + 0x30]
and eax, 0x17
mov dword [rbp + rcx + 0x30], eax
mov edx, dword [rbp + rcx + 0x34]
and edx, eax
jne 0x1400459c7
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x20], rbx
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x1c], edx
lea rcx, [rbp + 0x28]
call fcn.140048920
mov rax, qword [rbp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_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 - 0x10]
mov dword [rbp + rcx + 0x1c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0xc8], rax
lea rcx, [rbp + 0xc8]
call fcn.1400b8e90
nop
mov rdx, qword [rbp + 0x10]
cmp rdx, 0x10
jb 0x14004592d
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140045928
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140045a19
call fcn.1400b9ffc
movdqa xmm0, xmmword [0x14012b820]
movdqu xmmword [rbp + 8], xmm0
mov byte [rbp - 8], 0
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x140045975
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140045970
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400459af
call fcn.1400b9ffc
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.1400b9d40
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1400d7794
nop
call fcn.1400d7794
nop
call fcn.1400d7794
nop
call fcn.1400d7794
nop
test dl, 4
je 0x1400459d5
lea rbx, str.ios_base::badbit_set
jmp 0x1400459ea
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140040340
mov r8, rax
mov rdx, rbx
lea rcx, [rbp - 0x50]
call fcn.140040f00
lea rdx, [0x14013eec0]
lea rcx, [rbp - 0x50]
call fcn.1400bcf78
nop
call fcn.1400d7794
int3