Function at 0x1400553d0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140093010]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov r12, r9
mov r15, rdx
mov rdi, rcx
mov rsi, qword [0x140097838]
test rdx, rdx
je 0x140055526
test rsi, rsi
je 0x140055526
mov dword [rsp + 0x30], 0xc3b2a33
mov dword [rsp + 0x34], 0x8074c0d
mov word [rsp + 0x38], 9
mov byte [rsp + 0x3a], 1
xor ebx, ebx
mov ecx, ebx
nop word [rax + rax]
lea eax, [rcx + 0x5d]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 9
jb 0x140055440
mov byte [rsp + 0x3a], bl
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r8, rax
test rax, rax
jne 0x140055546
mov dword [rsp + 0x50], 0x16731606
mov dword [rsp + 0x54], 0x16401602
mov dword [rsp + 0x58], 0x16031627
mov dword [rsp + 0x5c], 0x1608160a
mov dword [rsp + 0x60], 0x16021600
mov dword [rsp + 0x64], 0x161c1647
mov dword [rsp + 0x68], 0x164a1606
mov dword [rsp + 0x6c], 0x16031607
mov dword [rsp + 0x70], 0x160a160c
mov dword [rsp + 0x74], 0x161e164f
mov dword [rsp + 0x78], 0x16161605
mov dword [rsp + 0x7c], 0x1618161f
mov dword [rbp - 0x80], 0x1612165b
mov dword [rbp - 0x7c], 0x1614161b
mov word [rbp - 0x78], bx
mov byte [rbp - 0x76], 1
mov ecx, 0x165d
nop word [rax + rax]
lea eax, [rcx + rbx]
xor word [rsp + rbx*2 + 0x50], ax
inc rbx
cmp rbx, 0x1c
jb 0x1400554f0
mov byte [rbp - 0x76], 0
lea rdx, [rsp + 0x50]
mov rcx, qword [0x140070250]
call fcn.140054ac0
lea rdx, [0x140054ca0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor al, al
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.14006ce00
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov dword [rsp + 0x40], 0x41e2a13
mov dword [rsp + 0x44], 0xb172305
mov word [rsp + 0x48], 8
mov byte [rsp + 0x4a], 1
mov rcx, rbx
nop word [rax + rax]
lea eax, [rcx + 0x5d]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 9
jb 0x140055570
mov byte [rsp + 0x4a], bl
lea rdx, [rsp + 0x40]
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
jne 0x14005566f
mov dword [rsp + 0x50], 0x16731606
mov dword [rsp + 0x54], 0x16401602
mov dword [rsp + 0x58], 0x16031627
mov dword [rsp + 0x5c], 0x1608160a
mov dword [rsp + 0x60], 0x16021600
mov dword [rsp + 0x64], 0x161c1647
mov dword [rsp + 0x68], 0x164a1606
mov dword [rsp + 0x6c], 0x1609160c
mov dword [rsp + 0x70], 0x164e1619
mov dword [rsp + 0x74], 0x1608160a
mov dword [rsp + 0x78], 0x161d1601
mov dword [rsp + 0x7c], 0x16001601
mov dword [rbp - 0x80], 0x16181655
mov dword [rbp - 0x7c], 0x161c1603
mov dword [rbp - 0x78], 0x16161615
mov dword [rbp - 0x74], 0x16321655
mov dword [rbp - 0x70], 0x163f1609
mov dword [rbp - 0x6c], 0x16e4161b
mov dword [rbp - 0x68], 0x16f616c0
mov dword [rbp - 0x64], 0x16e916ec
mov word [rbp - 0x60], bx
mov byte [rbp - 0x5e], 1
mov ecx, 0x165d
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx + rbx]
xor word [rsp + rbx*2 + 0x50], ax
inc rbx
cmp rbx, 0x28
jb 0x140055650
mov byte [rbp - 0x5e], 0
lea rdx, [rsp + 0x50]
jmp 0x14005550a
mov word [rbp], 0xb848
mov word [rbp + 0xa], 0xe0ff
mov qword [rbp + 2], rsi
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400978c8], eax
jle 0x1400557a2
lea rcx, [0x1400978c8]
call fcn.14006d0f0
cmp dword [0x1400978c8], 0xffffffff
jne 0x1400557a2
mov dword [rsp + 0x30], 0x41e2a13
mov dword [rsp + 0x34], 0xb172305
mov word [rsp + 0x38], 8
mov byte [rsp + 0x3a], 1
mov rcx, rbx
nop word [rax + rax]
lea eax, [rcx + 0x5d]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 9
jb 0x1400556e0
mov byte [rsp + 0x3a], 0
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], socket
mov byte [rsp + 0x50], 0
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140055720
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140054910
nop
lea r8, [rsp + 0x50]
mov rdx, qword [0x140094078]
mov rcx, rdi
call fcn.14004e500
mov qword [0x140097820], rax
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140055796
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140055790
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140055790
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006cef0
nop
lea rcx, [0x1400978c8]
call fcn.14006d090
mov r8, qword [0x140097820]
test r8, r8
jne 0x140055880
mov dword [rsp + 0x50], 0x16731606
mov dword [rsp + 0x54], 0x16401602
mov dword [rsp + 0x58], 0x16031627
mov dword [rsp + 0x5c], 0x1608160a
mov dword [rsp + 0x60], 0x16021600
mov dword [rsp + 0x64], 0x161c1647
mov dword [rsp + 0x68], 0x164a1606
mov dword [rsp + 0x6c], 0x1609160c
mov dword [rsp + 0x70], 0x164e1619
mov dword [rsp + 0x74], 0x1608160a
mov dword [rsp + 0x78], 0x161d1601
mov dword [rsp + 0x7c], 0x16001601
mov dword [rbp - 0x80], 0x16181655
mov dword [rbp - 0x7c], 0x16171603
mov dword [rbp - 0x78], 0x1611160a
mov dword [rbp - 0x74], 0x16121609
mov dword [rbp - 0x70], 0x16501611
mov dword [rbp - 0x6c], 0x16f41631
mov dword [rbp - 0x68], 0x16e616c0
mov dword [rbp - 0x64], 0x16c516e7
mov dword [rbp - 0x60], 0x16e916f1
mov dword [rbp - 0x5c], 0x16ea
mov byte [rbp - 0x58], 1
mov ecx, 0x165d
lea eax, [rcx + rbx]
xor word [rsp + rbx*2 + 0x50], ax
inc rbx
cmp rbx, 0x2b
jb 0x140055861
mov byte [rbp - 0x58], 0
lea rdx, [rsp + 0x50]
jmp 0x14005550a
mov r9d, recv
lea rdx, [rbp + 0x10]
mov rcx, rdi
call fcn.14004d360
test al, al
je 0x140055526
movzx eax, byte [rbp]
cmp byte [rbp + 0x10], al
jne 0x140055a2f
movzx eax, byte [rbp + 1]
cmp byte [rbp + 0x11], al
jne 0x140055a2f
movzx eax, byte [rbp + 0xa]
cmp byte [rbp + 0x1a], al
jne 0x140055a2f
movzx eax, byte [rbp + 0xb]
cmp byte [rbp + 0x1b], al
jne 0x140055a2f
mov dword [rsp + 0x50], 0x16731606
mov dword [rsp + 0x54], 0x16401602
mov dword [rsp + 0x58], 0x16231627
mov dword [rsp + 0x5c], 0x1628162a
mov dword [rsp + 0x60], 0x16221620
mov dword [rsp + 0x64], 0x16521646
mov dword [rsp + 0x68], 0x163e1649
mov dword [rsp + 0x6c], 0x16091603
mov dword [rsp + 0x70], 0x160d164d
mov dword [rsp + 0x74], 0x16141600
mov dword [rsp + 0x78], 0x16521614
mov dword [rsp + 0x7c], 0x16151604
mov dword [rbp - 0x80], 0x16561606
mov dword [rbp - 0x7c], 0x16141616
mov dword [rbp - 0x78], 0x161f160b
mov dword [rbp - 0x74], 0x1618161a
mov dword [rbp - 0x70], 0x165e1604
mov dword [rbp - 0x6c], 0x16ef1617
mov dword [rbp - 0x68], 0x16e916ee
mov dword [rbp - 0x64], 0x16e016e6
mov dword [rbp - 0x60], 0x16a716a4
mov dword [rbp - 0x5c], 0x16e916a7
mov dword [rbp - 0x58], 0x16e516e7
mov dword [rbp - 0x54], 0x16e416ff
mov dword [rbp - 0x50], 0x16fc16e8
mov dword [rbp - 0x4c], 0x16f916af
mov dword [rbp - 0x48], 0x16e116ff
mov dword [rbp - 0x44], 0x16f516e7
mov dword [rbp - 0x40], 0x16f516fb
mov dword [rbp - 0x3c], 0x16b816f2
mov dword [rbp - 0x38], 0x16fc16f6
mov dword [rbp - 0x34], 0x16f716bb
mov dword [rbp - 0x30], 0x16f316f9
mov dword [rbp - 0x2c], 0x16d016fe
mov dword [rbp - 0x28], 0x16c716d1
mov dword [rbp - 0x24], 0x168416d1
mov dword [rbp - 0x20], 0x16d316d7
mov dword [rbp - 0x1c], 0x16c616c9
mov dword [rbp - 0x18], 0x16c416c0
mov dword [rbp - 0x14], 0x169316cc
mov dword [rbp - 0x10], 0x168c
mov byte [rbp - 0xc], 1
mov ecx, 0x165d
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx + rbx]
xor word [rsp + rbx*2 + 0x50], ax
inc rbx
cmp rbx, 0x51
jb 0x140055a10
mov byte [rbp - 0xc], 0
lea rdx, [rsp + 0x50]
jmp 0x14005550a
mov r9d, recv
lea r8, [rbp]
mov rdx, qword [0x140097820]
mov rcx, rdi
call fcn.14004d400
test al, al
je 0x140055526
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
mov rcx, r12
call r14
mov qword [r15], rax
mov r9d, recv
lea r8, [rbp + 0x10]
mov rdx, qword [0x140097820]
mov rcx, rdi
call fcn.14004d400
mov al, 1
jmp 0x140055528