Function at 0x180090800
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
lea rbp, [rsp - 0x68]
sub rsp, 0x168
mov eax, dword [0x180120d50]
movaps xmmword [rsp + 0x150], xmm6
cmp eax, 6
jge 0x180090a27
movups xmm0, xmmword [0x180101200]
xor edi, edi
cmp dword [0x18011f018], 2
movups xmm1, xmmword [0x180101210]
movups xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [0x180101220]
movups xmmword [rsp + 0x70], xmm0
movsd xmm0, qword [0x180101240]
movups xmmword [rsp + 0x60], xmm1
movups xmm1, xmmword [str._T_CTP]
movsd qword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x80], xmm1
jl 0x1800909b1
movdqa xmm0, xmmword [0x180108f60]
lea rcx, [rsp + 0x54]
movdqa xmm5, xmmword [0x180108e60]
mov edx, edi
movdqa xmm4, xmmword [0x180109000]
movdqa xmm6, xmmword [0x180108e90]
movdqa xmmword [rsp + 0x30], xmm0
mov r8d, dword [rsp + 0x30]
nop dword [rax]
nop word [rax + rax]
movd xmm2, edx
lea eax, [rdx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add edx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x180108f40]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180108f40]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edx, 0x48
jl 0x1800908b0
jmp 0x1800909f1
lea r9, [rsp + 0x50]
mov r8d, edi
nop dword [rax]
mov eax, 0x4bda12f7
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x30
xor byte [r9 - 1], al
cmp r8d, 0x48
jl 0x1800909c0
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x80]
call fcn.18001e430
mov rdx, rax
mov rcx, qword [rax]
test rcx, rcx
je 0x180090fa1
movsxd rax, dword [rcx + 1]
add rcx, 5
add rcx, rax
mov qword [rdx], rcx
jmp 0x180090fa1
cmp eax, 0xb
jge 0x180090c2d
movups xmm0, xmmword [0x1801011b8]
mov eax, dword [0x1801011f0]
xor edi, edi
cmp dword [0x18011f018], 2
mov r8d, edi
movups xmm1, xmmword [0x1801011c8]
mov dword [rbp - 0x78], eax
movzx eax, byte [0x1801011f4]
movups xmmword [rsp + 0x50], xmm0
mov byte [rbp - 0x74], al
movups xmm0, xmmword [0x1801011d8]
movups xmmword [rsp + 0x60], xmm1
movups xmmword [rsp + 0x70], xmm0
movsd xmm0, qword [str._UZC]
movsd qword [rbp - 0x80], xmm0
jl 0x180090bc7
movdqa xmm0, xmmword [0x180108f60]
lea rcx, [rsp + 0x54]
movdqa xmm5, xmmword [0x180108e60]
movdqa xmm4, xmmword [0x180109000]
movdqa xmm6, xmmword [0x180108e90]
movdqa xmmword [rsp + 0x30], xmm0
mov edx, dword [rsp + 0x30]
nop word [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add r8d, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x180108f40]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180108f40]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x38
jl 0x180090ac0
cmp r8d, 0x3d
jge 0x180090c11
movsxd rax, r8d
lea r9, [rsp + 0x50]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4bda12f7
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x30
xor byte [r9 - 1], al
cmp r8d, 0x3d
jl 0x180090be0
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x80]
call fcn.18001e430
mov rcx, qword [rax]
jmp 0x180090fa1
movsd xmm0, qword [0x180108a20]
movsd xmm1, qword [0x180120d48]
comisd xmm0, xmm1
mov qword [rsp + 0x160], rbx
jbe 0x180090c57
lea rdx, [0x180122048]
jmp 0x180090f16
movsd xmm0, qword [0x180108a60]
ucomisd xmm1, xmm0
jp 0x180090e8f
jne 0x180090e8f
lea rax, [0x180101110]
xor edi, edi
cmp dword [0x18011f018], 2
lea rcx, [rbp - 0x60]
movups xmm0, xmmword [rax]
mov r8d, edi
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rax + 0x80]
movups xmmword [rcx + 0x60], xmm0
movups xmm0, xmmword [rax + 0x70]
movups xmmword [rcx + 0x70], xmm0
movups xmm0, xmmword [rax + 0x90]
mov eax, dword [rax + 0xa0]
movups xmmword [rcx + 0x80], xmm1
movups xmmword [rcx + 0x90], xmm0
mov dword [rcx + 0xa0], eax
jl 0x180090e2d
movdqa xmm0, xmmword [0x180108f60]
lea rcx, [rbp - 0x5c]
movdqa xmm5, xmmword [0x180108e60]
movdqa xmm4, xmmword [0x180109000]
movdqa xmm6, xmmword [0x180108e90]
movdqa xmmword [rsp + 0x30], xmm0
mov edx, dword [rsp + 0x30]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add r8d, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x180108f40]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180108f40]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0xa0
jl 0x180090d20
cmp r8d, 0xa4
jge 0x180090e74
movsxd rax, r8d
lea r9, [rbp - 0x60]
add r9, rax
nop word [rax + rax]
mov eax, 0x4bda12f7
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x30
xor byte [r9 - 1], al
cmp r8d, 0xa4
jl 0x180090e40
xor r8d, r8d
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x80]
call fcn.18001e430
mov rcx, qword [rax]
jmp 0x180090f99
comisd xmm0, xmm1
ja 0x180090f0f
add eax, 0xffffffee
cmp eax, 5
jbe 0x180090f0f
movsd xmm0, qword [0x180108ae0]
lea rcx, [rsp + 0x50]
comisd xmm0, xmm1
jbe 0x180090eb9
lea rdx, [0x180122008]
jmp 0x180090f1b
lea rdx, [0x180121fe8]
call fcn.180034050
mov r9b, 1
lea rcx, [rbp + 0x80]
mov r8d, 1
mov rdx, rax
call fcn.180042ac0
xor edi, edi
lea rcx, [rsp + 0x30]
xorps xmm0, xmm0
mov qword [rsp + 0x40], rdi
mov rbx, rax
movdqu xmmword [rsp + 0x30], xmm0
lea edx, [rdi + 1]
call fcn.18002f250
mov rcx, qword [rsp + 0x30]
mov byte [rcx], 0xe8
inc rcx
mov qword [rsp + 0x38], rcx
jmp 0x180090f65
lea rdx, [0x180122028]
lea rcx, [rsp + 0x50]
call fcn.180034050
mov r9b, 1
lea rcx, [rbp + 0x80]
xor r8d, r8d
mov rdx, rax
call fcn.180042ac0
xor edi, edi
lea rcx, [rsp + 0x30]
xorps xmm0, xmm0
mov qword [rsp + 0x40], rdi
mov rbx, rax
movdqu xmmword [rsp + 0x30], xmm0
lea edx, [rdi + 1]
call fcn.18002f250
mov rax, qword [rsp + 0x30]
mov byte [rax], 0xe8
inc rax
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov dword [rsp + 0x20], edi
lea r8, [rsp + 0x30]
mov rcx, rbx
lea rdx, [rbp + 0x90]
call fcn.18004ad70
mov rdx, rax
mov rcx, qword [rax]
test rcx, rcx
je 0x180090f99
movsxd rax, dword [rcx + 1]
add rcx, 5
add rcx, rax
mov qword [rdx], rcx
mov rbx, qword [rsp + 0x160]
movaps xmm6, xmmword [rsp + 0x150]
xorps xmm0, xmm0
mov qword [0x1801216f8], rcx
test rcx, rcx
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rdi
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x48], rdi
jne 0x180090ff6
mov r8d, 0x1c
lea rdx, str.Couldnt_find_FNameToString_
call fcn.18001d0a0
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.18008f410
xor al, al
add rsp, 0x168
pop rdi
pop rbp
ret
mov r8d, socket
lea rdx, str.Found_FNameToString_
call fcn.18001d0a0
lea rcx, [rsp + 0x30]
call fcn.18008f110
mov al, 1
add rsp, 0x168
pop rdi
pop rbp
ret