Function at 0x180065100
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0xc8
mov rax, qword [0x1802edb40]
xor rax, rsp
mov qword [rbp - 9], rax
movzx r12d, r9b
mov byte [rbp - 0x69], r12b
movzx r13d, r8b
mov byte [rbp - 0x68], r8b
mov rsi, rdx
mov rdi, rcx
cmp dword [rcx + 0xc], 1
jl 0x180065151
mov rcx, qword [rcx]
mov eax, dword [rdx + 0xc]
inc eax
mov dword [rcx + 0x1b8], eax
xor r14d, r14d
cmp dword [rdi + 8], 2
jl 0x18006527a
cmp byte [rdx + 0x38], r14b
jne 0x18006527a
mov rdx, qword [rdx + 0x20]
mov rcx, rdi
call fcn.180062c90
mov rbx, rax
test rax, rax
je 0x18006527a
cmp qword [rdi + 0x50], r14
je 0x1800651d5
mov r10, qword [rdi + 0x58]
cmp rax, r10
je 0x1800651d5
mov r9, qword [rdi + 0x48]
dec r9
shr rax, 5
xor rax, rbx
shr rax, 4
and rax, r9
mov edx, r14d
mov r11, qword [rdi + 0x40]
nop dword [rax + rax]
imul rcx, rax, 0x38
add rcx, r11
mov r8, qword [rcx]
cmp r8, rbx
je 0x1800651d8
cmp r8, r10
je 0x1800651d5
inc rax
add rax, rdx
and rax, r9
inc rdx
cmp rdx, r9
jbe 0x1800651b0
mov rcx, r14
lea r15, [rcx + 8]
test rcx, rcx
cmove r15, r14
test r15, r15
je 0x180065239
cmp byte [r15 + 0x2c], r14b
je 0x180065239
mov eax, dword [reloc.WS2_32.dll_getpeername]
mov ecx, dword [0x1802ee938]
mov edx, dword [0x1802ee908]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], edx
movzx eax, byte [rbp + 0x7f]
mov byte [rsp + 0x28], al
mov byte [rsp + 0x20], r12b
movzx r9d, r13b
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.180064290
test al, al
jne 0x180065c09
cmp byte [r15 + 0x2c], r14b
jne 0x18006527a
cmp byte [rbx + 0x88], r14b
je 0x18006524b
lea rdx, str.inlining_failed:_function_is_variadic
jmp 0x180065272
test r15, r15
jne 0x180065259
lea rdx, str.inlining_failed:_cant_inline_recursive_calls
jmp 0x180065272
cmp byte [rdi + 0x421], r14b
jne 0x18006526b
cmp byte [rdi + 0x422], r14b
je 0x18006527a
lea rdx, str.inlining_failed:_module_uses_getfenv_setfenv
mov rcx, qword [rdi]
call fcn.18005d590
mov qword [rbp - 0x29], rdi
mov r9d, dword [rdi + 0x40c]
mov dword [rbp - 0x59], r9d
mov dword [rbp - 0x21], r9d
movzx ecx, byte [rsi + 0x38]
mov r8d, dword [rsi + 0x30]
inc r8d
add r8d, ecx
cmp r8d, r12d
cmovb r8d, r12d
cmp byte [rbp + 0x77], 0
je 0x180065381
sub r8d, r12d
lea ecx, [r9 + r8]
cmp ecx, 0xff
ja 0x180065c55
movzx ebx, r9b
sub bl, r12b
mov dword [rbp - 0x65], ebx
mov dword [rdi + 0x40c], ecx
mov eax, dword [rdi + 0x410]
cmp eax, ecx
cmovb eax, ecx
mov dword [rdi + 0x410], eax
mov byte [rbp - 0x5d], 0
mov r15, 0xffffffffffffffff
mov r13d, r15d
cmp dword [rdi + 8], 1
jl 0x180065713
cmp byte [rsi + 0x38], 0
jne 0x18006571d
cmp qword [rdi + 0x168], 0
je 0x180065713
mov r10, qword [rdi + 0x170]
cmp rsi, r10
je 0x180065713
mov r9, qword [rdi + 0x160]
dec r9
mov rax, rsi
shr rax, 5
xor rax, rsi
shr rax, 4
and rax, r9
mov rdx, r14
mov r11, qword [rdi + 0x158]
nop word [rax + rax]
mov rcx, rax
shl rcx, 4
add rcx, r11
mov r8, qword [rcx]
cmp r8, rsi
je 0x18006539c
cmp r8, r10
je 0x180065713
inc rax
add rax, rdx
and rax, r9
inc rdx
cmp rdx, r9
jbe 0x180065350
jmp 0x180065713
mov ebx, r9d
mov dword [rbp - 0x65], ebx
lea ecx, [r9 + r8]
cmp ecx, 0xff
ja 0x180065c3e
jmp 0x1800652c9
lea rax, [rcx + 8]
test rcx, rcx
cmove rax, r14
test rax, rax
je 0x180065713
mov r13d, dword [rax]
mov dword [rbp - 0x61], r13d
test r13d, r13d
js 0x180065492
mov rax, qword [rdi]
mov ecx, dword [rax + 0x2e0]
shr ecx, 4
test cl, 1
je 0x180065492
lea r9, [rdi + 0xb8]
lea r8, [rdi + 0x90]
mov rdx, qword [rsi + 0x20]
lea rcx, [rbp - 0x49]
call fcn.18005a690
movups xmm1, xmmword [rax]
mov rax, qword [rsi + 0x30]
test rax, rax
je 0x180065415
mov rdx, qword [rsi + 0x28]
mov rdx, qword [rdx + rax*8 - 8]
mov rcx, rdi
call fcn.180063740
test al, al
je 0x180065415
mov cl, 1
jmp 0x180065417
xor cl, cl
movq r8, xmm1
psrldq xmm1, 8
test r8, r8
je 0x18006545c
lea rdx, [0x1802ada9c]
lea rax, [0x180244c70]
test cl, cl
cmovne rax, rdx
mov qword [rsp + 0x28], rax
mov eax, dword [rsi + 0x30]
mov dword [rsp + 0x20], eax
movq r9, xmm1
lea rdx, str.builtin__s._s__d_s
mov rcx, qword [rdi]
call fcn.18005d590
jmp 0x180065492
movq r8, xmm1
test r8, r8
je 0x180065492
lea rdx, [0x1802ada9c]
lea rax, [0x180244c70]
test cl, cl
cmovne rax, rdx
mov qword [rsp + 0x20], rax
mov r9d, dword [rsi + 0x30]
lea rdx, str.builtin__s__d_s
mov rcx, qword [rdi]
call fcn.18005d590
cmp r13d, 0x39
jne 0x1800654d6
cmp byte [rbp + 0x7f], 0
jne 0x1800654ce
cmp r12b, 1
jne 0x1800654ce
mov byte [rsp + 0x30], bl
mov byte [rsp + 0x28], 0
movzx eax, byte [rbp + 0x77]
mov byte [rsp + 0x20], al
movzx r9d, r12b
movzx r8d, byte [rbp - 0x68]
mov rdx, rsi
mov rcx, rdi
call fcn.180063a60
jmp 0x180065c00
mov r13d, r15d
jmp 0x180065713
cmp r13d, 0x22
jne 0x180065654
cmp qword [rsi + 0x30], 3
jne 0x180065663
mov r13, qword [rsi + 0x28]
mov r12, qword [r13 + 8]
mov qword [rbp - 0x19], r12
lea rdx, [rbp - 0x19]
lea rcx, [rdi + 0xe0]
call fcn.180071970
test rax, rax
je 0x18006565f
cmp dword [rax], 0
je 0x18006565f
mov r13, qword [r13 + 0x10]
mov qword [rbp - 0x19], r13
lea rdx, [rbp - 0x19]
lea rcx, [rdi + 0xe0]
call fcn.180071970
test rax, rax
je 0x18006565f
cmp dword [rax], 0
je 0x18006565f
mov qword [rbp - 0x19], r12
lea rdx, [rbp - 0x19]
lea rcx, [rdi + 0xe0]
call fcn.180071970
test rax, rax
je 0x180065566
movups xmm2, xmmword [rax]
movsd xmm0, qword [rax + 0x10]
jmp 0x18006557a
mov qword [rbp - 0x49], r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x41], xmm0
movups xmm2, xmmword [rbp - 0x49]
unpckhpd xmm0, xmm0
movsd qword [rbp - 0x39], xmm0
mov qword [rbp - 0x19], r13
lea rcx, [rdi + 0xe0]
lea rdx, [rbp - 0x19]
call fcn.180071970
test rax, rax
je 0x1800655a2
movups xmm1, xmmword [rax]
movsd xmm0, qword [rax + 0x10]
jmp 0x1800655b6
mov qword [rbp - 0x49], r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x41], xmm0
movups xmm1, xmmword [rbp - 0x49]
unpckhpd xmm0, xmm0
movsd qword [rbp - 0x39], xmm0
movd eax, xmm2
cmp eax, 3
jne 0x1800655ce
unpckhpd xmm2, xmm2
cvttsd2si edx, xmm2
jmp 0x1800655d1
mov edx, r15d
movd eax, xmm1
cmp eax, 3
jne 0x1800655e4
unpckhpd xmm1, xmm1
cvttsd2si ecx, xmm1
jmp 0x1800655e7
mov ecx, r15d
test edx, edx
js 0x18006565f
test ecx, ecx
jle 0x18006565f
lea eax, [rcx + rdx]
cmp eax, 0x20
jg 0x18006565f
shl ecx, 5
sub ecx, 0x20
or ecx, edx
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
mov rcx, qword [rdi]
call fcn.18005ccd0
test eax, eax
js 0x180065c6c
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], Ordinal_60
mov eax, dword [rbp - 0x65]
mov byte [rsp + 0x30], al
movzx eax, byte [rbp + 0x7f]
mov byte [rsp + 0x28], al
movzx eax, byte [rbp + 0x77]
mov byte [rsp + 0x20], al
movzx r9d, byte [rbp - 0x69]
movzx r8d, byte [rbp - 0x68]
mov rdx, rsi
mov rcx, rdi
call fcn.180063dc0
jmp 0x180065c00
test r13d, r13d
js 0x180065713
jmp 0x180065663
mov r13d, dword [rbp - 0x61]
mov eax, 2
cmp qword [rsi + 0x30], 3
jne 0x1800656ae
mov rbx, r14
mov r12, qword [rsi + 0x28]
mov rdx, qword [r12]
call fcn.18006b440
test rax, rax
je 0x18006569c
lea rcx, [rdi + 0x68]
lea rdx, [rax + 0x20]
call fcn.180071a30
test rax, rax
je 0x18006569c
cmp byte [rax + 1], 0
jne 0x1800656e1
inc rbx
add r12, 8
cmp rbx, 3
jb 0x180065676
mov eax, 2
mov rcx, qword [rsi + 0x30]
cmp rcx, 1
jb 0x180065713
cmp rcx, rax
ja 0x180065713
mov rdx, qword [rsi + 0x28]
mov rdx, qword [rdx + rcx*8 - 8]
mov rcx, rdi
call fcn.180063740
test al, al
jne 0x1800656e8
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x38], r13d
jmp 0x180065623
mov eax, 3
jmp 0x1800656ae
cmp dword [rdi + 8], 2
jl 0x180065713
mov edx, r13d
lea rcx, [rbp - 0x49]
call fcn.18005bb80
movsd xmm0, qword [rax]
movsd qword [rbp - 0x19], xmm0
mov ecx, dword [rax + 8]
mov eax, dword [rbp - 0x19]
cmp dword [rsi + 0x30], eax
jne 0x180065713
test cl, 1
jne 0x1800656d2
cmp byte [rsi + 0x38], 0
je 0x18006579f
mov rcx, qword [rsi + 0x20]
mov rdx, r14
mov eax, dword [0x1802fab60]
cmp dword [rcx + 8], eax
cmove rdx, rcx
mov r12, qword [rdx + 0x20]
mov rdx, r12
call fcn.18006b440
test rax, rax
je 0x18006576f
lea rcx, [rdi + 0x68]
lea rdx, [rax + 0x20]
call fcn.180071a30
test rax, rax
je 0x180065764
cmp byte [rax + 1], 0
je 0x180065764
movzx ecx, byte [rax]
mov dword [rbp - 0x5d], ecx
mov eax, ecx
jmp 0x18006576b
mov eax, r15d
mov byte [rbp - 0x5d], 0xff
test eax, eax
jns 0x1800657d6
mov ecx, dword [rbp - 0x65]
mov byte [rbp - 0x5d], cl
mov qword [rbp - 0x49], rdi
mov ebx, dword [rdi + 0x40c]
mov dword [rbp - 0x41], ebx
movzx eax, cl
inc eax
mov dword [rdi + 0x40c], eax
movzx r8d, cl
mov rdx, r12
mov rcx, rdi
call fcn.18006a840
nop
jmp 0x1800657d0
test r13d, r13d
jns 0x1800657d6
mov rdx, qword [rsi + 0x20]
mov qword [rbp - 0x49], rdi
mov ebx, dword [rdi + 0x40c]
mov dword [rbp - 0x41], ebx
mov ecx, dword [rbp - 0x65]
movzx eax, cl
inc eax
mov dword [rdi + 0x40c], eax
movzx r8d, cl
mov rcx, rdi
call fcn.18006a840
nop
mov dword [rdi + 0x40c], ebx
mov byte [rbp - 0x67], 0
mov rax, r14
mov rcx, qword [rsi + 0x30]
test rcx, rcx
je 0x180065857
mov r15d, dword [rbp - 0x65]
nop word [rax + rax]
lea r12, [rax + 1]
movzx r8d, al
add r8b, byte [rsi + 0x38]
mov rdx, qword [rsi + 0x28]
inc r8b
mov rdx, qword [rdx + rax*8]
add r8b, r15b
cmp r12, rcx
jne 0x18006581c
mov rcx, rdi
call fcn.180063900
mov byte [rbp - 0x67], al
jmp 0x180065844
mov qword [rbp - 0x49], rdi
mov ebx, dword [rdi + 0x40c]
mov dword [rbp - 0x41], ebx
movzx eax, r8b
inc eax
mov dword [rdi + 0x40c], eax
mov rcx, rdi
call fcn.18006a840
nop
mov dword [rdi + 0x40c], ebx
mov rax, r12
mov rcx, qword [rsi + 0x30]
cmp r12, rcx
jb 0x1800657f0
mov r15, 0xffffffffffffffff
mov rax, qword [rsi + 0x20]
cmp dword [rdi + 0xc], 1
jl 0x18006586f
mov rcx, qword [rdi]
mov eax, dword [rax + 0x14]
inc eax
mov dword [rcx + 0x1b8], eax
cmp byte [rsi + 0x38], 0
je 0x180065a41
mov rcx, qword [rsi + 0x20]
mov r12, r14
mov eax, dword [0x1802fab60]
cmp dword [rcx + 8], eax
cmove r12, rcx
cmp dword [rdi + 0xc], 1
jl 0x1800658a3
mov rcx, qword [rdi]
mov eax, dword [r12 + 0x30]
inc eax
mov dword [rcx + 0x1b8], eax
mov rbx, qword [r12 + 0x28]
nop dword [rax + rax]
inc r15
cmp byte [rbx + r15], 0
jne 0x1800658b0
mov qword [rbp - 0x49], rbx
mov qword [rbp - 0x41], r15
lea rdx, [rbp - 0x49]
mov rcx, qword [rdi]
call fcn.18005cfb0
mov dword [rbp - 0x19], eax
test eax, eax
js 0x180065c7d
mov r13, qword [rdi]
mov rdx, r15
test r15, r15
je 0x180065911
lea r8, [rbx - 1]
add r8, rdx
nop dword [rax + rax]
mov ecx, r15d
shl ecx, 5
mov eax, r15d
shr eax, 2
add ecx, eax
movzx eax, byte [r8]
add ecx, eax
xor r15d, ecx
lea r8, [r8 - 1]
sub rdx, 1
jne 0x1800658f0
movzx ecx, r15b
shl ecx, 8
movzx eax, byte [rbp - 0x5d]
or ecx, eax
shl ecx, 8
mov r15d, dword [rbp - 0x65]
movzx eax, r15b
or ecx, eax
shl ecx, 8
or ecx, 0x14
mov dword [rbp - 0x61], ecx
mov rdx, qword [r13 + 0x30]
cmp rdx, qword [r13 + 0x38]
je 0x180065947
mov dword [rdx], ecx
add qword [r13 + 0x30], 4
jmp 0x180065954
lea r8, [rbp - 0x61]
lea rcx, [r13 + 0x28]
call fcn.180048a00
lea rcx, [r13 + 0x40]
lea r8, [r13 + 0x1b8]
mov rdx, qword [r13 + 0x48]
cmp rdx, qword [r13 + 0x50]
je 0x180065975
mov eax, dword [r8]
mov dword [rdx], eax
add qword [r13 + 0x48], 4
jmp 0x18006597a
call fcn.180048a00
mov rbx, qword [rdi]
mov eax, dword [rbp - 0x19]
mov dword [rbp - 0x19], eax
lea rcx, [rbx + 0x28]
mov rdx, qword [rbx + 0x30]
cmp rdx, qword [rbx + 0x38]
je 0x18006599a
mov dword [rdx], eax
add qword [rbx + 0x30], 4
jmp 0x1800659a3
lea r8, [rbp - 0x19]
call fcn.180048a00
lea rcx, [rbx + 0x40]
lea r8, [rbx + 0x1b8]
mov rdx, qword [rbx + 0x48]
cmp rdx, qword [rbx + 0x50]
je 0x1800659c4
mov eax, dword [r8]
mov dword [rdx], eax
add qword [rbx + 0x48], 4
jmp 0x1800659c9
call fcn.180048a00
mov r11, qword [r12 + 0x20]
mov ecx, dword [r11 + 8]
mov rax, r14
cmp ecx, dword [0x1802fabc0]
cmove rax, r11
test rax, rax
jne 0x180065aeb
mov rdx, r14
cmp ecx, dword [0x1802fab80]
cmove rdx, r11
test rdx, rdx
jne 0x180065a0c
mov rdx, r14
cmp ecx, dword [0x1802faba8]
cmove rdx, r11
test rdx, rdx
je 0x180065a1e
mov rdx, qword [rdx + 0x20]
call fcn.18006b440
test rax, rax
jne 0x180065aeb
movzx r8d, byte [rbp - 0x5d]
mov dword [rsp + 0x20], 2
mov r9d, 4
mov rdx, r11
mov rcx, rdi
call fcn.18006f690
jmp 0x180065aeb
test r13d, r13d
js 0x180065ae7
mov rbx, qword [rdi]
lea rcx, [rbx + 0x28]
mov rdx, qword [rcx + 8]
mov r15, rdx
sub r15, qword [rcx]
sar r15, 2
movzx eax, r13b
shl eax, 8
or eax, 0x44
mov dword [rbp - 0x19], eax
cmp rdx, qword [rcx + 0x10]
je 0x180065a7b
mov dword [rdx], eax
add qword [rcx + 8], 4
jmp 0x180065a84
lea r8, [rbp - 0x19]
call fcn.180048a00
lea rcx, [rbx + 0x40]
lea r8, [rbx + 0x1b8]
mov rdx, qword [rbx + 0x48]
cmp rdx, qword [rbx + 0x50]
je 0x180065aa5
mov eax, dword [r8]
mov dword [rdx], eax
add qword [rbx + 0x48], 4
jmp 0x180065aaa
call fcn.180048a00
mov r9b, 1
movzx r8d, byte [rbp - 0x65]
mov rdx, qword [rsi + 0x20]
mov rcx, rdi
call fcn.18006a200
mov rax, qword [rdi]
mov rdx, qword [rax + 0x28]
mov rcx, qword [rax + 0x30]
sub rcx, rdx
sar rcx, 2
sub ecx, r15d
dec ecx
movzx eax, cl
cmp eax, ecx
jne 0x180065c29
shl ecx, 0x18
or dword [rdx + r15*4], ecx
mov r15d, dword [rbp - 0x65]
mov rbx, qword [rdi]
movzx r12d, byte [rbp - 0x69]
cmp byte [rbp + 0x7f], 0
je 0x180065afd
xor cl, cl
jmp 0x180065b02
lea ecx, [r12 + 1]
cmp byte [rbp - 0x67], 0
je 0x180065b0c
xor al, al
jmp 0x180065b15
movzx eax, byte [rsi + 0x38]
inc al
add al, byte [rsi + 0x30]
movzx ecx, cl
shl ecx, 8
movzx eax, al
or ecx, eax
shl ecx, 8
movzx eax, r15b
or ecx, eax
shl ecx, 8
or ecx, 0x15
mov dword [rbp - 0x19], ecx
mov rdx, qword [rbx + 0x30]
cmp rdx, qword [rbx + 0x38]
je 0x180065b45
mov dword [rdx], ecx
add qword [rbx + 0x30], 4
jmp 0x180065b52
lea r8, [rbp - 0x19]
lea rcx, [rbx + 0x28]
call fcn.180048a00
lea rcx, [rbx + 0x40]
lea r8, [rbx + 0x1b8]
mov rdx, qword [rbx + 0x48]
cmp rdx, qword [rbx + 0x50]
je 0x180065b73
mov eax, dword [r8]
mov dword [rdx], eax
add qword [rbx + 0x48], 4
jmp 0x180065b78
call fcn.180048a00
cmp byte [rbp + 0x77], 0
jne 0x180065c00
movzx esi, r12b
test r12b, r12b
je 0x180065c00
movzx r12d, byte [rbp - 0x68]
mov rbx, qword [rdi]
lea eax, [r15 + r14]
movzx edx, al
shl edx, 8
lea eax, [r14 + r12]
movzx ecx, al
or edx, ecx
shl edx, 8
or edx, 6
mov dword [rbp - 0x19], edx
lea rcx, [rbx + 0x28]
mov rax, qword [rbx + 0x30]
cmp rax, qword [rbx + 0x38]
je 0x180065bc6
mov dword [rax], edx
add qword [rbx + 0x30], 4
jmp 0x180065bd2
lea r8, [rbp - 0x19]
mov rdx, rax
call fcn.180048a00
lea rcx, [rbx + 0x40]
lea r8, [rbx + 0x1b8]
mov rdx, qword [rbx + 0x48]
cmp rdx, qword [rbx + 0x50]
je 0x180065bf3
mov eax, dword [r8]
mov dword [rdx], eax
add qword [rbx + 0x48], 4
jmp 0x180065bf8
call fcn.180048a00
inc r14
cmp r14, rsi
jb 0x180065b90
mov eax, dword [rbp - 0x59]
mov dword [rdi + 0x40c], eax
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1801cf080
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [rsi + 0x20]
add rcx, 0xc
lea rdx, str.Exceeded_jump_distance_limit__simplify_the_code_to_compile
call fcn.180062650
int3
lea rcx, [rsi + 0xc]
mov r9d, 0xff
lea rdx, str.Out_of_registers_when_trying_to_allocate__d_registers:_exceeded_limit__d
call fcn.180062650
int3
lea rcx, [rsi + 0xc]
mov r9d, 0xff
lea rdx, str.Out_of_registers_when_trying_to_allocate__d_registers:_exceeded_limit__d
call fcn.180062650
int3
lea rcx, [rsi + 0xc]
lea rdx, str.Exceeded_constant_limit__simplify_the_code_to_compile
call fcn.180062650
int3
lea rcx, [r12 + 0xc]
lea rdx, str.Exceeded_constant_limit__simplify_the_code_to_compile
call fcn.180062650
int3