Function at 0x180099470
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x28]
sub rsp, 0x110
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x180127040]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r15d, r15d
cmp dword [0x180128da4], 5
jge 0x180099780
movups xmm0, xmmword [0x18010b2b0]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [0x18010b2c0]
movups xmmword [rbp - 0x60], xmm1
movups xmm0, xmmword [0x18010b2d0]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [0x18010b2e0]
movups xmmword [rbp - 0x40], xmm1
movups xmm0, xmmword [0x18010b2f0]
movups xmmword [rbp - 0x30], xmm0
mov eax, dword [0x18010b300]
mov dword [rbp - 0x20], eax
movzx eax, word [0x18010b304]
mov word [rbp - 0x1c], ax
mov r8d, r15d
cmp dword [0x180127018], 2
jl 0x18009964d
movdqa xmm5, xmmword [0x180110e60]
movdqa xmm4, xmmword [0x180111070]
movdqa xmm6, xmmword [0x180110e90]
movdqa xmm0, xmmword [0x180110f70]
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rbp - 0x6c]
mov edx, dword [rsp + 0x70]
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
paddd xmm1, xmm2
psrad xmm1, 5
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
andps xmm2, xmmword [0x180110f50]
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
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180110f50]
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, 0x50
jl 0x180099540
cmp r8d, 0x56
jge 0x180099693
movsxd rax, r8d
lea r9, [rbp - 0x70]
add r9, rax
nop word [rax + rax]
mov eax, 0x8fb823ef
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
sub al, cl
add al, 0x33
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x56
jl 0x180099660
mov r14d, r15d
mov rdi, r15
mov rcx, qword [0x180128be8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
mov rcx, qword [0x180128be8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movsxd rcx, dword [rax + 0x3c]
mov ebx, dword [rcx + rbx + 0x50]
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x30]
call fcn.180021880
mov rcx, qword [0x180128be8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
mov r10, qword [rsp + 0x38]
mov r11, qword [rsp + 0x30]
sub r10, r11
sar r10, 2
mov r9d, r15d
sub rbx, r10
je 0x18009973b
mov edx, r15d
test r10, r10
je 0x180099720
mov rax, r15
mov r8d, dword [r11 + rax*4]
lea eax, [rdx + r9]
movzx eax, byte [rax + rsi]
cmp eax, r8d
je 0x180099717
cmp r8d, 0xffffffff
jne 0x180099728
inc edx
mov eax, edx
cmp rax, r10
jb 0x180099700
test r14d, r14d
jle 0x180099735
dec r14d
inc r9d
mov eax, r9d
cmp rax, rbx
jb 0x1800996f5
jmp 0x18009973b
mov edi, r9d
add rdi, rsi
test r11, r11
je 0x180099a4c
mov rdx, qword [rsp + 0x40]
sub rdx, r11
and rdx, 0xfffffffffffffffc
mov rax, r11
cmp rdx, 0x1000
jb 0x180099a44
add rdx, 0x27
mov r11, qword [r11 - 8]
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180099a44
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp dword [0x180128da4], 0xb
jge 0x180099a68
movups xmm0, xmmword [0x18010b260]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [0x18010b270]
movups xmmword [rbp - 0x60], xmm1
movups xmm0, xmmword [0x18010b280]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [0x18010b290]
movups xmmword [rbp - 0x40], xmm1
movsd xmm0, qword [0x18010b2a0]
movsd qword [rbp - 0x30], xmm0
movzx eax, word [0x18010b2a8]
mov word [rbp - 0x28], ax
mov r8d, r15d
cmp dword [0x180127018], 2
jl 0x18009991d
movdqa xmm5, xmmword [0x180110e60]
movdqa xmm4, xmmword [0x180111070]
movdqa xmm6, xmmword [0x180110e90]
movdqa xmm0, xmmword [0x180110f70]
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rbp - 0x6c]
mov edx, dword [rsp + 0x70]
nop
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
paddd xmm1, xmm2
psrad xmm1, 5
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
andps xmm2, xmmword [0x180110f50]
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
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180110f50]
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, 0x48
jl 0x180099810
cmp r8d, 0x4a
jge 0x180099963
movsxd rax, r8d
lea r9, [rbp - 0x70]
add r9, rax
nop word [rax + rax]
mov eax, 0x8fb823ef
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
sub al, cl
add al, 0x33
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x4a
jl 0x180099930
mov r14d, r15d
mov rdi, r15
mov rcx, qword [0x180128be8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
mov rcx, qword [0x180128be8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movsxd rcx, dword [rax + 0x3c]
mov ebx, dword [rcx + rbx + 0x50]
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x30]
call fcn.180021880
mov rcx, qword [0x180128be8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
mov r10, qword [rsp + 0x38]
mov r11, qword [rsp + 0x30]
sub r10, r11
sar r10, 2
mov r9d, r15d
sub rbx, r10
je 0x180099a0b
mov edx, r15d
test r10, r10
je 0x1800999f0
mov rax, r15
mov r8d, dword [r11 + rax*4]
lea eax, [rdx + r9]
movzx eax, byte [rax + rsi]
cmp eax, r8d
je 0x1800999e7
cmp r8d, 0xffffffff
jne 0x1800999f8
inc edx
mov eax, edx
cmp rax, r10
jb 0x1800999d0
test r14d, r14d
jle 0x180099a05
dec r14d
inc r9d
mov eax, r9d
cmp rax, rbx
jb 0x1800999c5
jmp 0x180099a0b
mov edi, r9d
add rdi, rsi
test r11, r11
je 0x180099a4c
mov rdx, qword [rsp + 0x40]
sub rdx, r11
and rdx, 0xfffffffffffffffc
mov rax, r11
cmp rdx, 0x1000
jb 0x180099a44
add rdx, 0x27
mov r11, qword [r11 - 8]
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180099a44
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r11
call fcn.1800d3c10
test rdi, rdi
je 0x180099a5c
movsxd rax, dword [rdi + 1]
add rdi, 5
add rdi, rax
mov qword [0x180129770], rdi
jmp 0x18009a252
cmp dword [0x180128da4], 0x10
jge 0x180099d30
movups xmm0, xmmword [0x18010b238]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [0x18010b248]
movups xmmword [rbp - 0x60], xmm1
mov eax, dword [0x18010b258]
mov dword [rbp - 0x50], eax
movzx eax, word [0x18010b25c]
mov word [rbp - 0x4c], ax
movzx eax, byte [0x18010b25e]
mov byte [rbp - 0x4a], al
mov r8d, r15d
cmp dword [0x180127018], 2
jl 0x180099bfd
movdqa xmm5, xmmword [0x180110e60]
movdqa xmm4, xmmword [0x180111070]
movdqa xmm6, xmmword [0x180110e90]
movdqa xmm0, xmmword [0x180110f70]
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rbp - 0x6c]
mov edx, dword [rsp + 0x70]
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
paddd xmm1, xmm2
psrad xmm1, 5
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
andps xmm2, xmmword [0x180110f50]
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
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180110f50]
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, 0x20
jl 0x180099af0
cmp r8d, 0x27
jge 0x180099c43
movsxd rax, r8d
lea r9, [rbp - 0x70]
add r9, rax
nop word [rax + rax]
mov eax, 0x8fb823ef
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
sub al, cl
add al, 0x33
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x27
jl 0x180099c10
mov r14d, r15d
mov rdi, r15
mov rcx, qword [0x180128be8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
mov rcx, qword [0x180128be8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movsxd rcx, dword [rax + 0x3c]
mov ebx, dword [rcx + rbx + 0x50]
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x30]
call fcn.180021880
mov rcx, qword [0x180128be8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
mov r10, qword [rsp + 0x38]
mov r11, qword [rsp + 0x30]
sub r10, r11
sar r10, 2
mov r9d, r15d
sub rbx, r10
je 0x180099ceb
mov edx, r15d
test r10, r10
je 0x180099cd0
mov rax, r15
mov r8d, dword [r11 + rax*4]
lea eax, [rdx + r9]
movzx eax, byte [rax + rsi]
cmp eax, r8d
je 0x180099cc7
cmp r8d, 0xffffffff
jne 0x180099cd8
inc edx
mov eax, edx
cmp rax, r10
jb 0x180099cb0
test r14d, r14d
jle 0x180099ce5
dec r14d
inc r9d
mov eax, r9d
cmp rax, rbx
jb 0x180099ca5
jmp 0x180099ceb
mov edi, r9d
add rdi, rsi
test r11, r11
je 0x180099ffc
mov rdx, qword [rsp + 0x40]
sub rdx, r11
and rdx, 0xfffffffffffffffc
mov rax, r11
cmp rdx, 0x1000
jb 0x180099ff4
add rdx, 0x27
mov r11, qword [r11 - 8]
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180099ff4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp dword [0x180128da4], 0x18
jge 0x18009a008
movups xmm0, xmmword [0x18010b1f0]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [0x18010b200]
movups xmmword [rbp - 0x60], xmm1
movups xmm0, xmmword [0x18010b210]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [0x18010b220]
movups xmmword [rbp - 0x40], xmm1
mov eax, dword [0x18010b230]
mov dword [rbp - 0x30], eax
movzx eax, word [0x18010b234]
mov word [rbp - 0x2c], ax
mov r8d, r15d
cmp dword [0x180127018], 2
jl 0x180099ecd
movdqa xmm5, xmmword [0x180110e60]
movdqa xmm4, xmmword [0x180111070]
movdqa xmm6, xmmword [0x180110e90]
movdqa xmm0, xmmword [0x180110f70]
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rbp - 0x6c]
mov edx, dword [rsp + 0x70]
nop dword [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
paddd xmm1, xmm2
psrad xmm1, 5
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
andps xmm2, xmmword [0x180110f50]
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
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x180110f50]
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, 0x40
jl 0x180099dc0
cmp r8d, 0x46
jge 0x180099f13
movsxd rax, r8d
lea r9, [rbp - 0x70]
add r9, rax
nop word [rax + rax]
mov eax, 0x8fb823ef
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
sub al, cl
add al, 0x33
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x46
jl 0x180099ee0
mov r14d, r15d
mov rdi, r15
mov rcx, qword [0x180128be8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
mov rcx, qword [0x180128be8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movsxd rcx, dword [rax + 0x3c]
mov ebx, dword [rcx + rbx + 0x50]
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x30]
call fcn.180021880
mov rcx, qword [0x180128be8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
mov r10, qword [rsp + 0x38]
mov r11, qword [rsp + 0x30]
sub r10, r11
sar r10, 2
mov r9d, r15d
sub rbx, r10
je 0x180099fbb
mov edx, r15d
test r10, r10
je 0x180099fa0
mov rax, r15
mov r8d, dword [r11 + rax*4]
lea eax, [rdx + r9]
movzx eax, byte [rax + rsi]
cmp eax, r8d
je 0x180099f97
cmp r8d, 0xffffffff
jne 0x180099fa8
inc edx
mov eax, edx
cmp rax, r10
jb 0x180099f80
test r14d, r14d
jle 0x180099fb5
dec r14d
inc r9d
mov eax, r9d
cmp rax, rbx
jb 0x180099f75
jmp 0x180099fbb
mov edi, r9d
add rdi, rsi
test r11, r11
je 0x180099ffc
mov rdx, qword [rsp + 0x40]
sub rdx, r11
and rdx, 0xfffffffffffffffc
mov rax, r11
cmp rdx, 0x1000
jb 0x180099ff4
add rdx, 0x27
mov r11, qword [r11 - 8]
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180099ff4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r11
call fcn.1800d3c10
mov qword [0x180129770], rdi
jmp 0x18009a252
movsd xmm0, qword [0x180128c98]
comisd xmm0, xmmword [0x180110a58]
jb 0x18009a24b
lea rdx, [0x180129e88]
lea rcx, [rbp - 0x70]
call fcn.18003b2b0
mov r9b, 1
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.1800a2c40
mov rsi, rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r15
mov ebx, 1
mov edx, ebx
lea rcx, [rsp + 0x58]
call fcn.180035ef0
mov rcx, qword [rsp + 0x58]
mov byte [rcx], 0xe8
lea r11, [rcx + 1]
mov qword [rsp + 0x60], r11
lea rax, [rsp + 0x58]
mov qword [rbp - 0x80], rax
mov rdi, qword [rsi]
test rdi, rdi
jne 0x18009a0d0
mov rdi, r15
mov qword [rsp + 0x50], r15
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x18009a22e
mov rdx, qword [rsp + 0x68]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18009a216
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18009a20c
jmp 0x18009a216
lea r10, [rdi + 1]
mov r9, qword [rsp + 0x58]
nop dword [rax]
cmp ebx, 0x800
jge 0x18009a1d6
mov edx, r15d
mov rcx, r15
mov r8, r11
sub r8, r9
je 0x18009a120
nop word [rax + rax]
movzx eax, byte [rcx + r9]
cmp al, 0xff
je 0x18009a113
cmp byte [r10 + rcx], al
jne 0x18009a1cc
inc edx
inc rcx
movsxd rax, edx
cmp rax, r8
jb 0x18009a100
movsxd rax, ebx
add rax, rdi
mov qword [rsi], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r15
mov rdx, qword [rsp + 0x60]
sub rdx, qword [rsp + 0x58]
je 0x18009a173
lea rcx, [rsp + 0x30]
call fcn.180035ef0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
lea rax, [rdi + rbx]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], r15d
mov r9b, 1
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.1800a39b0
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x18009a229
mov rdx, qword [rsp + 0x68]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18009a216
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18009a216
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
inc ebx
inc r10
jmp 0x18009a0e0
mov rdi, r15
mov qword [rsp + 0x50], r15
test r9, r9
je 0x18009a22e
mov rdx, qword [rsp + 0x68]
sub rdx, r9
mov rax, r9
cmp rdx, 0x1000
jb 0x18009a213
add rdx, 0x27
mov r9, qword [r9 - 8]
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18009a213
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r9
call fcn.1800d3c10
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r15
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x180099a5c
movsxd rax, dword [rdi + 1]
add rdi, 5
add rdi, rax
mov qword [0x180129770], rdi
jmp 0x18009a252
mov rdi, qword [0x180129770]
cmp dword [0x180128da4], 0x18
jl 0x18009a271
movsd xmm0, qword [0x180128c98]
comisd xmm0, xmmword [0x180110a58]
jb 0x18009a320
mov qword [rsp + 0x48], socket
test rdi, rdi
jne 0x18009a2de
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r15
lea ecx, [rdi + 0x20]
call fcn.1800d3c20
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], socket
mov qword [rsp + 0x48], 0x1f
movups xmm0, xmmword [str.Couldnt_find_Free_]
movups xmmword [rax], xmm0
movzx ecx, word [0x180109ff0]
mov word [rax + 0x10], cx
movzx ecx, byte [0x180109ff2]
mov byte [rax + 0x12], cl
mov byte [rax + 0x13], dil
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180098640
xor al, al
jmp 0x18009a322
mov dword [rsp + 0x3c], r15d
mov qword [rsp + 0x40], reloc.WS2_32.dll_inet_addr
movsd xmm0, qword [str.Found_Free_]
movsd qword [rsp + 0x30], xmm0
movzx eax, word [0x18010a000]
mov word [rsp + 0x38], ax
movzx eax, byte [0x18010a002]
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
lea rcx, [rsp + 0x30]
call fcn.180098340
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1800d3880
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret