Function at 0x18009e4e0
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 [0x180127040]
xor rax, rsp
mov qword [rbp + 0x50], rax
xor r13d, r13d
lea r15, [r13 - 1]
mov eax, dword [0x180128da4]
cmp eax, 6
jge 0x18009e84d
lea rdx, [rbp - 0x80]
lea rcx, [0x18010a8a0]
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 [0x180127018], 2
jl 0x18009e703
movdqa xmm5, xmmword [0x180110e60]
movdqa xmm4, xmmword [0x180111070]
movdqa xmm6, xmmword [0x180110e90]
movdqa xmm0, xmmword [0x180110f70]
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
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, 0xa0
jl 0x18009e5f0
cmp r8d, 0xa5
jge 0x18009e746
movsxd rax, r8d
lea r9, [rbp - 0x80]
add r9, rax
nop dword [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, 0xa5
jl 0x18009e710
mov esi, r13d
mov r14, r13
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 - 0x80]
lea rcx, [rsp + 0x20]
call fcn.180021880
mov rcx, qword [0x180128be8]
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 0x18009e7f8
mov edx, r13d
test r10, r10
je 0x18009e7df
mov rax, r13
nop dword [rax]
nop word [rax + rax]
mov r8d, dword [r11 + rax*4]
lea eax, [rdx + r9]
movzx eax, byte [rax + rdi]
cmp eax, r8d
je 0x18009e7d6
cmp r8d, r15d
jne 0x18009e7e5
inc edx
mov eax, edx
cmp rax, r10
jb 0x18009e7c0
test esi, esi
jle 0x18009e7f2
dec esi
inc r9d
mov eax, r9d
cmp rax, rbx
jb 0x18009e7a8
jmp 0x18009e7f8
mov r14d, r9d
add r14, rdi
test r11, r11
je 0x18009e841
mov rax, qword [rsp + 0x30]
sub rax, r11
sar rax, 2
lea rdx, [rax*4]
mov rax, r11
cmp rdx, 0x1000
jb 0x18009e839
add rdx, 0x27
mov r11, qword [r11 - 8]
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18009e839
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 [0x180129760], r14
jmp 0x18009e9c6
cmp eax, 0x10
jge 0x18009e9bf
lea rdx, [0x180129fc8]
lea rcx, [rsp + 0x60]
call fcn.18003b2b0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1800a2c40
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.180035ef0
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 0x18009e913
mov r14, r13
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x18009e841
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18009e9b1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18009e9a7
call fcn.1800d3c10
mov qword [0x180129760], r14
jmp 0x18009e9c6
mov r11d, r15d
mov rbx, r15
mov r10, qword [rsp + 0x20]
nop
cmp r11d, 0xfffff800
jle 0x18009e972
mov edx, r13d
mov r8, rsi
sub r8, r10
je 0x18009e95b
mov rax, r10
mov r9, rdi
sub r9, r10
add r9, rbx
movzx ecx, byte [rax]
cmp cl, 0xff
je 0x18009e94e
cmp byte [r9 + rax], cl
jne 0x18009e96a
inc edx
inc rax
movsxd rcx, edx
cmp rcx, r8
jb 0x18009e940
movsxd r14, r11d
add r14, rdi
mov qword [r12], r14
jmp 0x18009e8c3
dec r11d
dec rbx
jmp 0x18009e920
mov r14, r13
test r10, r10
je 0x18009e841
mov rdx, qword [rsp + 0x30]
sub rdx, r10
mov rax, r10
cmp rdx, 0x1000
jb 0x18009e9ae
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18009e9ae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r10
call fcn.1800d3c10
mov qword [0x180129760], r14
jmp 0x18009e9c6
mov r14, qword [0x180129760]
test r14, r14
jne 0x18009ef18
lea rdx, [0x180129fa8]
lea rcx, [rsp + 0x60]
call fcn.18003b2b0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1800a2c40
cmp qword [rsp + 0x48], r14
je 0x18009ecdf
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.180035ef0
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 0x18009ea93
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x18009eb6a
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18009eb65
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18009eb5b
jmp 0x18009eb65
mov r11d, r15d
mov r8, rbx
mov r10, qword [rsp + 0x20]
sub r8, r10
dec r8
cmp r11d, 0xfffff800
jle 0x18009eb2d
mov edx, r13d
mov r9, rdi
sub r9, r10
je 0x18009eada
mov rcx, r10
nop
movzx eax, byte [rcx]
cmp al, 0xff
je 0x18009eacd
cmp byte [r8 + rcx], al
jne 0x18009eb25
inc edx
inc rcx
movsxd rax, edx
cmp rax, r9
jb 0x18009eac0
movsxd rax, r11d
add rbx, rax
mov qword [rsp + 0x48], rbx
test r10, r10
je 0x18009eb1b
mov rdx, qword [rsp + 0x30]
sub rdx, r10
mov rax, r10
cmp rdx, 0x1000
jb 0x18009eb13
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18009eb5b
mov rcx, r10
call fcn.1800d3c10
test rbx, rbx
je 0x18009eb6a
jmp 0x18009ee80
dec r11d
jmp 0x18009eaa1
test r10, r10
je 0x18009eb6a
mov rdx, qword [rsp + 0x30]
sub rdx, r10
mov rax, r10
cmp rdx, 0x1000
jb 0x18009eb62
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18009eb62
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r10
call fcn.1800d3c10
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.180035ef0
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 0x18009ec03
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x18009ee87
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18009ebf9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18009eccb
call fcn.1800d3c10
jmp 0x18009ee87
mov r8, rbx
mov r10, qword [rsp + 0x20]
sub r8, r10
dec r8
cmp r15d, 0xfffff800
jle 0x18009ec99
mov edx, r13d
mov r9, r11
sub r9, r10
je 0x18009ec42
mov rcx, r10
movzx eax, byte [rcx]
cmp al, 0xff
je 0x18009ec35
cmp byte [r8 + rcx], al
jne 0x18009ec91
inc edx
inc rcx
movsxd rax, edx
cmp rax, r9
jb 0x18009ec28
movsxd rax, r15d
add rbx, rax
mov qword [rsp + 0x48], rbx
test r10, r10
je 0x18009ec83
mov rdx, qword [rsp + 0x30]
sub rdx, r10
mov rax, r10
cmp rdx, 0x1000
jb 0x18009ec7b
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18009eccb
mov rcx, r10
call fcn.1800d3c10
test rbx, rbx
je 0x18009ee87
jmp 0x18009ee80
dec r15d
jmp 0x18009ec0e
test r10, r10
je 0x18009ee87
mov rdx, qword [rsp + 0x30]
sub rdx, r10
mov rax, r10
cmp rdx, 0x1000
jb 0x18009ecd2
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18009ecd2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r10
call fcn.1800d3c10
jmp 0x18009ee87
lea rdx, [0x180129fe8]
lea rcx, [rsp + 0x60]
call fcn.18003b2b0
mov r9b, 1
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1800a2c40
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.180035ef0
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 0x18009ed85
mov rbx, r13
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x18009ee80
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18009ee6d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18009ee63
jmp 0x18009ee6d
mov r8, rdi
mov r10, qword [rsp + 0x20]
sub r8, r10
inc r8
cmp ebx, 0x800
jge 0x18009ee32
mov edx, r13d
mov r9, r11
sub r9, r10
je 0x18009edca
mov rcx, r10
nop dword [rax]
movzx eax, byte [rcx]
cmp al, 0xff
je 0x18009edbd
cmp byte [r8 + rcx], al
jne 0x18009ee2b
inc edx
inc rcx
movsxd rax, edx
cmp rax, r9
jb 0x18009edb0
movsxd rbx, ebx
add rbx, rdi
mov qword [rsi], rbx
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x18009ee19
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18009ee06
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18009ee63
call fcn.1800d3c10
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r13
test rbx, rbx
je 0x18009ee80
movsxd rax, dword [rbx + 1]
add rbx, 5
add rbx, rax
jmp 0x18009ee80
inc ebx
jmp 0x18009ed90
mov rbx, r13
test r10, r10
je 0x18009ee80
mov rdx, qword [rsp + 0x30]
sub rdx, r10
mov rax, r10
cmp rdx, 0x1000
jb 0x18009ee6a
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18009ee6a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r10
call fcn.1800d3c10
xorps xmm0, xmm0
mov qword [rsp + 0x30], r13
movdqu xmmword [rsp + 0x20], xmm0
mov qword [0x180129760], rbx
cmp qword [0x180129760], 0
jne 0x18009ef18
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], socket
mov ecx, 0x20
call fcn.1800d3c20
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 [0x18010a0c0]
movsd qword [rax + 0x10], xmm0
mov ecx, dword [0x18010a0c8]
mov dword [rax + 0x18], ecx
movzx eax, word [0x18010a0cc]
mov word [rdx + 0x1c], ax
movzx eax, byte [0x18010a0ce]
mov byte [rdx + 0x1e], al
mov byte [rdx + 0x1f], 0
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.180098640
xor al, al
jmp 0x18009ef88
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], socket
mov ecx, 0x20
call fcn.1800d3c20
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 [0x18010a0e0]
mov dword [rax + 0x10], ecx
movzx ecx, word [0x18010a0e4]
mov word [rax + 0x14], cx
movzx eax, byte [0x18010a0e6]
mov byte [rdx + 0x16], al
mov byte [rdx + 0x17], 0
lea rcx, [rsp + 0x20]
call fcn.180098340
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1800d3880
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