Function at 0x140049910
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rax - 0x168]
sub rsp, 0x250
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
mov rax, qword [0x1401508e0]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov r14, rcx
xor ebx, ebx
lea rcx, str.USERPROFILE
call fcn.1400e5f44
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x38], xmm1
xor r8d, r8d
lea rdx, [0x14012bf72]
lea rcx, [rbp - 0x48]
call fcn.140050bf0
nop
lea rdi, [rbx - 1]
test rsi, rsi
je 0x140049b27
movsd xmm0, qword [0x140138538]
movsd qword [rsp + 0x30], xmm0
movzx eax, word [0x140138540]
mov word [rsp + 0x38], ax
cmp byte [0x140138541], bl
je 0x1400499e3
mov byte [rsp + 0x30], Ordinal_50
xor byte [rsp + 0x31], 0x39
xor byte [rsp + 0x32], 0x3a
xor byte [rsp + 0x33], 0x3b
xor byte [rsp + 0x34], 0x3c
xor byte [rsp + 0x35], 0x3d
xor byte [rsp + 0x36], 0x3e
xor byte [rsp + 0x37], 0x3f
xor byte [rsp + 0x38], 0x40
xor byte [rsp + 0x39], 0x41
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
lea rax, [rsp + 0x30]
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140049a00
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x68]
call fcn.140050bf0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov r8, rdi
nop
inc r8
cmp byte [rsi + r8], 0
jne 0x140049a30
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.140050bf0
nop
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x48]
movzx edx, byte [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.140051b30
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x140049a9b
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140049a96
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140049f6a
call fcn.1400c80fc
movups xmm0, xmmword [rbp - 0x70]
movups xmmword [rbp - 0x48], xmm0
movups xmm1, xmmword [rbp - 0x60]
movups xmmword [rbp - 0x38], xmm1
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140049ae9
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140049ae3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140049f70
call fcn.1400c80fc
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x140049b3d
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140049b20
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140049fce
call fcn.1400c80fc
jmp 0x140049b3d
mov r8d, 0xa
lea rdx, str.._Desktop_
lea rcx, [rbp - 0x48]
call fcn.14004f0f0
movups xmm0, xmmword [str.NXTRN]
movups xmmword [rsp + 0x68], xmm0
movzx eax, word [0x140138cd0]
mov word [rsp + 0x78], ax
cmp byte [0x140138cd1], 0
je 0x140049cfe
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140049cbb
movdqa xmm5, xmmword [0x140138f40]
movdqa xmm4, xmmword [0x140139270]
mov eax, 5
movd xmm6, eax
movdqa xmm7, xmmword [0x140138f70]
mov eax, Ordinal_33
movd xmm8, eax
movdqa xmm0, xmmword [0x140138fe0]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x6c]
mov edx, dword [rsp + 0x30]
movd xmm2, ebx
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
paddd xmm1, xmm2
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 [0x140138fb0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
pxor xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rbx + 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
paddd xmm1, xmm3
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 [0x140138fb0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
pxor xmm2, xmm0
movd dword [rcx], xmm2
add ebx, 8
lea rcx, [rcx + 8]
cmp ebx, 0x10
jl 0x140049bb1
cmp ebx, 0x12
jge 0x140049cfe
movsxd rax, ebx
lea r8, [rsp + 0x68]
add r8, rax
nop word [rax + rax]
mov eax, 0x8d3dcb09
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x3a
movzx eax, bl
sub al, cl
add al, 0x38
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x12
jl 0x140049cd0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
lea rax, [rsp + 0x68]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140049d14
mov r8, rdi
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.140050bf0
nop
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.14004f960
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140049d80
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140049d7b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140049f76
call fcn.1400c80fc
movdqa xmm0, xmmword [0x140138ef0]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp]
call fcn.1400cab30
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rdx, qword [rbp - 0x28]
lea rcx, [rbp]
call fcn.14004ec80
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx], rbx
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 4], edx
cmp qword [rbp + 0x88], 0
je 0x140049e45
mov r8, qword [r14 + 0x10]
cmp qword [r14 + 0x18], 0x10
jb 0x140049df9
mov r14, qword [r14]
mov rdx, r14
lea rcx, [rbp]
call fcn.140052ad0
lea rcx, [rbp + 8]
call fcn.14004eb80
test rax, rax
jne 0x140049e45
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx + 0x48], 0
cmovne eax, edx
or eax, dword [rbp + rcx + 0x10]
and eax, 0x17
mov dword [rbp + rcx + 0x10], eax
mov edx, dword [rbp + rcx + 0x14]
and edx, eax
jne 0x140049f7c
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx], rbx
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 4], edx
lea rcx, [rbp + 8]
call fcn.14004cd90
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx], rax
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 4], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0xa8], rax
lea rcx, [rbp + 0xa8]
call fcn.1400c6d3c
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x140049ee6
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140049ee1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140049fce
call fcn.1400c80fc
movdqa xmm0, xmmword [0x140138ef0]
movdqu xmmword [rbp - 0x18], xmm0
mov byte [rbp - 0x28], 0
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x140049f2e
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140049f29
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140049f64
call fcn.1400c80fc
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.1400c7e40
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.1400e565c
nop
call fcn.1400e565c
nop
call fcn.1400e565c
nop
call fcn.1400e565c
nop
test dl, 4
je 0x140049f8a
lea rbx, str.ios_base::badbit_set
jmp 0x140049f9f
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.140040200
mov r8, rax
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.140041330
lea rdx, [0x14014d2a0]
lea rcx, [rbp - 0x70]
call fcn.1400cb2b8
nop
call fcn.1400e565c
int3