Function at 0x18009db10
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 r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x180126040]
xor rax, rsp
mov qword [rbp + 0x50], rax
xor r13d, r13d
lea r15, [r13 - 1]
mov eax, dword [0x180127da4]
cmp eax, 6
jge 0x18009de6d
lea rdx, [rbp - 0x80]
lea rcx, [0x1801098a0]
movups xmm0, xmmword [rcx]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rdx + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rdx + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rdx + 0x60], xmm0
movups xmm0, xmmword [rcx + 0x70]
movups xmmword [rdx + 0x70], xmm0
movups xmm1, xmmword [rcx + 0x80]
movups xmmword [rdx + 0x80], xmm1
movups xmm0, xmmword [rcx + 0x90]
movups xmmword [rdx + 0x90], xmm0
mov eax, dword [rcx + 0xa0]
mov dword [rdx + 0xa0], eax
movzx eax, byte [rcx + 0xa4]
mov byte [rdx + 0xa4], al
mov r8d, r13d
cmp dword [0x180126018], 2
jl 0x18009dd2b
movdqa xmm5, xmmword [0x18010fc40]
movdqa xmm4, xmmword [0x18010fdf0]
movdqa xmm6, xmmword [0x18010fc60]
movdqa xmm0, xmmword [0x18010fd40]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rbp - 0x7c]
mov edx, dword [rsp + 0x50]
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
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
andps xmm2, xmmword [0x18010fd20]
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, 4
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 [0x18010fd20]
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, 0xa0
jl 0x18009dc20
cmp r8d, 0xa5
jge 0x18009dd73
movsxd rax, r8d
lea r9, [rbp - 0x80]
add r9, rax
nop word [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, 0x32
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xa5
jl 0x18009dd40
mov esi, r13d
mov r14, r13
mov rcx, qword [0x180127be8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
mov rcx, qword [0x180127be8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movsxd rcx, dword [rax + 0x3c]
mov ebx, dword [rcx + rbx + 0x50]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x20]
call fcn.180021330
mov rcx, qword [0x180127be8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
mov r10, qword [rsp + 0x28]
mov r11, qword [rsp + 0x20]
sub r10, r11
sar r10, 2
mov r9d, r13d
sub rbx, r10
je 0x18009de18
mov edx, r13d
test r10, r10
je 0x18009ddff
mov rax, r13
mov r8d, dword [r11 + rax*4]
lea eax, [rdx + r9]
movzx eax, byte [rax + rdi]
cmp eax, r8d
je 0x18009ddf6
cmp r8d, r15d
jne 0x18009de05
inc edx
mov eax, edx
cmp rax, r10
jb 0x18009dde0
test esi, esi
jle 0x18009de12
dec esi
inc r9d
mov eax, r9d
cmp rax, rbx
jb 0x18009ddd5
jmp 0x18009de18
mov r14d, r9d
add r14, rdi
test r11, r11
je 0x18009de61
mov rax, qword [rsp + 0x30]
sub rax, r11
sar rax, 2
lea rdx, [rax*4]
mov rax, r11
cmp rdx, 0x1000
jb 0x18009de59
add rdx, 0x27
mov r11, qword [r11 - 8]
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18009de59
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r11
call fcn.1800d2cf0
mov qword [0x180128760], r14
jmp 0x18009dfe6
cmp eax, 0x10
jge 0x18009dfdf
lea rdx, [0x180128f88]
lea rcx, [rsp + 0x60]
call fcn.18003ad50
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1800a1ea0
mov r12, rax
mov word [rsp + 0x40], 0x5540
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r13
mov edx, 2
lea rcx, [rsp + 0x20]
call fcn.180035990
mov rdx, qword [rsp + 0x20]
movzx ecx, word [rsp + 0x40]
mov word [rdx], cx
lea rsi, [rdx + 2]
mov qword [rsp + 0x28], rsi
mov rdi, qword [r12]
test rdi, rdi
jne 0x18009df33
mov r14, r13
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x18009de61
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18009dfd1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18009dfc7
call fcn.1800d2cf0
mov qword [0x180128760], r14
jmp 0x18009dfe6
mov r11d, r15d
mov rbx, r15
mov r10, qword [rsp + 0x20]
nop
cmp r11d, 0xfffff800
jle 0x18009df92
mov edx, r13d
mov r8, rsi
sub r8, r10
je 0x18009df7b
mov rax, r10
mov r9, rdi
sub r9, r10
add r9, rbx
movzx ecx, byte [rax]
cmp cl, 0xff
je 0x18009df6e
cmp byte [r9 + rax], cl
jne 0x18009df8a
inc edx
inc rax
movsxd rcx, edx
cmp rcx, r8
jb 0x18009df60
movsxd r14, r11d
add r14, rdi
mov qword [r12], r14
jmp 0x18009dee3
dec r11d
dec rbx
jmp 0x18009df40
mov r14, r13
test r10, r10
je 0x18009de61
mov rdx, qword [rsp + 0x30]
sub rdx, r10
mov rax, r10
cmp rdx, 0x1000
jb 0x18009dfce
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18009dfce
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r10
call fcn.1800d2cf0
mov qword [0x180128760], r14
jmp 0x18009dfe6
mov r14, qword [0x180128760]
test r14, r14
jne 0x18009e538
lea rdx, [0x180128f68]
lea rcx, [rsp + 0x60]
call fcn.18003ad50
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1800a1ea0
cmp qword [rsp + 0x48], r14
je 0x18009e2ff
mov word [rsp + 0x40], 0x894c
mov byte [rsp + 0x42], 0x4c
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r13
lea edx, [r14 + 3]
lea rcx, [rsp + 0x20]
call fcn.180035990
mov rbx, qword [rsp + 0x20]
lea r8d, [r14 + 3]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea rdi, [rbx + 3]
mov qword [rsp + 0x28], rdi
mov rbx, qword [rsp + 0x48]
test rbx, rbx
jne 0x18009e0b3
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x18009e18a
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18009e185
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18009e17b
jmp 0x18009e185
mov r11d, r15d
mov r8, rbx
mov r10, qword [rsp + 0x20]
sub r8, r10
dec r8
cmp r11d, 0xfffff800
jle 0x18009e14d
mov edx, r13d
mov r9, rdi
sub r9, r10
je 0x18009e0fa
mov rcx, r10
nop
movzx eax, byte [rcx]
cmp al, 0xff
je 0x18009e0ed
cmp byte [r8 + rcx], al
jne 0x18009e145
inc edx
inc rcx
movsxd rax, edx
cmp rax, r9
jb 0x18009e0e0
movsxd rax, r11d
add rbx, rax
mov qword [rsp + 0x48], rbx
test r10, r10
je 0x18009e13b
mov rdx, qword [rsp + 0x30]
sub rdx, r10
mov rax, r10
cmp rdx, 0x1000
jb 0x18009e133
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18009e17b
mov rcx, r10
call fcn.1800d2cf0
test rbx, rbx
je 0x18009e18a
jmp 0x18009e4a0
dec r11d
jmp 0x18009e0c1
test r10, r10
je 0x18009e18a
mov rdx, qword [rsp + 0x30]
sub rdx, r10
mov rax, r10
cmp rdx, 0x1000
jb 0x18009e182
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18009e182
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r10
call fcn.1800d2cf0
mov word [rsp + 0x40], 0x8b48
mov byte [rsp + 0x42], 0xc4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r13
mov edx, 3
lea rcx, [rsp + 0x20]
call fcn.180035990
mov rbx, qword [rsp + 0x20]
mov r8d, 3
lea rdx, [rsp + 0x40]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea r11, [rbx + 3]
mov qword [rsp + 0x28], r11
mov rbx, qword [rsp + 0x48]
test rbx, rbx
jne 0x18009e223
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x18009e4a7
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18009e219
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18009e2eb
call fcn.1800d2cf0
jmp 0x18009e4a7
mov r8, rbx
mov r10, qword [rsp + 0x20]
sub r8, r10
dec r8
cmp r15d, 0xfffff800
jle 0x18009e2b9
mov edx, r13d
mov r9, r11
sub r9, r10
je 0x18009e262
mov rcx, r10
movzx eax, byte [rcx]
cmp al, 0xff
je 0x18009e255
cmp byte [r8 + rcx], al
jne 0x18009e2b1
inc edx
inc rcx
movsxd rax, edx
cmp rax, r9
jb 0x18009e248
movsxd rax, r15d
add rbx, rax
mov qword [rsp + 0x48], rbx
test r10, r10
je 0x18009e2a3
mov rdx, qword [rsp + 0x30]
sub rdx, r10
mov rax, r10
cmp rdx, 0x1000
jb 0x18009e29b
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18009e2eb
mov rcx, r10
call fcn.1800d2cf0
test rbx, rbx
je 0x18009e4a7
jmp 0x18009e4a0
dec r15d
jmp 0x18009e22e
test r10, r10
je 0x18009e4a7
mov rdx, qword [rsp + 0x30]
sub rdx, r10
mov rax, r10
cmp rdx, 0x1000
jb 0x18009e2f2
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18009e2f2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r10
call fcn.1800d2cf0
jmp 0x18009e4a7
lea rdx, [0x180128fa8]
lea rcx, [rsp + 0x60]
call fcn.18003ad50
mov r9b, 1
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1800a1ea0
mov rsi, rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r13
mov ebx, 1
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.180035990
mov rcx, qword [rsp + 0x20]
mov byte [rcx], 0xe8
lea r11, [rcx + 1]
mov qword [rsp + 0x28], r11
mov rdi, qword [rsi]
test rdi, rdi
jne 0x18009e3a5
mov rbx, r13
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x18009e4a0
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18009e48d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18009e483
jmp 0x18009e48d
mov r8, rdi
mov r10, qword [rsp + 0x20]
sub r8, r10
inc r8
cmp ebx, 0x800
jge 0x18009e452
mov edx, r13d
mov r9, r11
sub r9, r10
je 0x18009e3ea
mov rcx, r10
nop dword [rax]
movzx eax, byte [rcx]
cmp al, 0xff
je 0x18009e3dd
cmp byte [r8 + rcx], al
jne 0x18009e44b
inc edx
inc rcx
movsxd rax, edx
cmp rax, r9
jb 0x18009e3d0
movsxd rbx, ebx
add rbx, rdi
mov qword [rsi], rbx
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x18009e439
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18009e426
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18009e483
call fcn.1800d2cf0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r13
test rbx, rbx
je 0x18009e4a0
movsxd rax, dword [rbx + 1]
add rbx, 5
add rbx, rax
jmp 0x18009e4a0
inc ebx
jmp 0x18009e3b0
mov rbx, r13
test r10, r10
je 0x18009e4a0
mov rdx, qword [rsp + 0x30]
sub rdx, r10
mov rax, r10
cmp rdx, 0x1000
jb 0x18009e48a
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18009e48a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r10
call fcn.1800d2cf0
xorps xmm0, xmm0
mov qword [rsp + 0x30], r13
movdqu xmmword [rsp + 0x20], xmm0
mov qword [0x180128760], rbx
cmp qword [0x180128760], 0
jne 0x18009e538
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], socket
mov ecx, 0x20
call fcn.1800d2d00
mov rdx, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], 0x1f
mov qword [rsp + 0x38], 0x1f
movups xmm0, xmmword [str.Couldnt_find_StaticLoadObject_]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x1801090c0]
movsd qword [rax + 0x10], xmm0
mov ecx, dword [0x1801090c8]
mov dword [rax + 0x18], ecx
movzx eax, word [0x1801090cc]
mov word [rdx + 0x1c], ax
movzx eax, byte [0x1801090ce]
mov byte [rdx + 0x1e], al
mov byte [rdx + 0x1f], 0
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.180098070
xor al, al
jmp 0x18009e5a8
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], socket
mov ecx, 0x20
call fcn.1800d2d00
mov rdx, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], reloc.WS2_32.dll_socket
mov qword [rsp + 0x38], 0x1f
movups xmm0, xmmword [str.Found_StaticLoadObject_]
movups xmmword [rax], xmm0
mov ecx, dword [0x1801090e0]
mov dword [rax + 0x10], ecx
movzx ecx, word [0x1801090e4]
mov word [rax + 0x14], cx
movzx eax, byte [0x1801090e6]
mov byte [rdx + 0x16], al
mov byte [rdx + 0x17], 0
lea rcx, [rsp + 0x20]
call fcn.180097d70
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1800d2960
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret