Function at 0x140056ee0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x140093010]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov r15, r9
mov rdi, rcx
mov rsi, qword [0x140097870]
test rsi, rsi
je 0x140057027
mov dword [rsp + 0x20], 0xc3b2a33
mov dword [rsp + 0x24], 0x8074c0d
mov word [rsp + 0x28], 9
mov byte [rsp + 0x2a], 1
xor ebx, ebx
mov ecx, ebx
nop dword [rax]
lea eax, [rcx + 0x5d]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 9
jb 0x140056f40
mov byte [rsp + 0x2a], bl
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r8, rax
test rax, rax
jne 0x14005704c
mov dword [rsp + 0x40], 0x16731606
mov dword [rsp + 0x44], 0x16401602
mov dword [rsp + 0x48], 0x16031627
mov dword [rsp + 0x4c], 0x1608160a
mov dword [rsp + 0x50], 0x16021600
mov dword [rsp + 0x54], 0x161c1647
mov dword [rsp + 0x58], 0x164a1606
mov dword [rsp + 0x5c], 0x16031607
mov dword [rsp + 0x60], 0x160a160c
mov dword [rsp + 0x64], 0x161e164f
mov dword [rsp + 0x68], 0x16161605
mov dword [rsp + 0x6c], 0x1618161f
mov dword [rsp + 0x70], 0x1612165b
mov dword [rsp + 0x74], 0x1614161b
mov word [rsp + 0x78], bx
mov byte [rsp + 0x7a], 1
mov ecx, 0x165d
nop word [rax + rax]
lea eax, [rcx + rbx]
xor word [rsp + rbx*2 + 0x40], ax
inc rbx
cmp rbx, 0x1c
jb 0x140056ff0
mov byte [rsp + 0x7a], 0
lea rdx, [rsp + 0x40]
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 + 0x10]
xor rcx, rsp
call fcn.14006ce00
mov rbx, qword [rsp + 0x158]
add rsp, 0x120
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov dword [rsp + 0x30], 0x41e2a13
mov dword [rsp + 0x34], 0xb172305
mov word [rsp + 0x38], 8
mov byte [rsp + 0x3a], 1
mov rcx, rbx
nop dword [rax + rax]
lea eax, [rcx + 0x5d]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 9
jb 0x140057070
mov byte [rsp + 0x3a], bl
lea rdx, [rsp + 0x30]
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
jne 0x14005716f
mov dword [rsp + 0x40], 0x16731606
mov dword [rsp + 0x44], 0x16401602
mov dword [rsp + 0x48], 0x16031627
mov dword [rsp + 0x4c], 0x1608160a
mov dword [rsp + 0x50], 0x16021600
mov dword [rsp + 0x54], 0x161c1647
mov dword [rsp + 0x58], 0x164a1606
mov dword [rsp + 0x5c], 0x1609160c
mov dword [rsp + 0x60], 0x164e1619
mov dword [rsp + 0x64], 0x1608160a
mov dword [rsp + 0x68], 0x161d1601
mov dword [rsp + 0x6c], 0x16001601
mov dword [rsp + 0x70], 0x16181655
mov dword [rsp + 0x74], 0x161c1603
mov dword [rsp + 0x78], 0x16161615
mov dword [rsp + 0x7c], 0x16321655
mov dword [rbp - 0x80], 0x163f1609
mov dword [rbp - 0x7c], 0x16e4161b
mov dword [rbp - 0x78], 0x16f616c0
mov dword [rbp - 0x74], 0x16e916ec
mov word [rbp - 0x70], bx
mov byte [rbp - 0x6e], 1
mov ecx, 0x165d
nop word [rax + rax]
lea eax, [rcx + rbx]
xor word [rsp + rbx*2 + 0x40], ax
inc rbx
cmp rbx, 0x28
jb 0x140057150
mov byte [rbp - 0x6e], 0
lea rdx, [rsp + 0x40]
jmp 0x14005700b
mov word [rbp - 0x10], 0xb848
mov word [rbp - 6], 0xe0ff
mov qword [rbp - 0xe], rsi
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140097804], eax
jle 0x1400572a2
lea rcx, [0x140097804]
call fcn.14006d0f0
cmp dword [0x140097804], 0xffffffff
jne 0x1400572a2
mov dword [rsp + 0x20], 0x41e2a13
mov dword [rsp + 0x24], 0xb172305
mov word [rsp + 0x28], 8
mov byte [rsp + 0x2a], 1
mov rcx, rbx
nop word [rax + rax]
lea eax, [rcx + 0x5d]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 9
jb 0x1400571e0
mov byte [rsp + 0x2a], 0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], socket
mov byte [rsp + 0x40], 0
lea rax, [rsp + 0x20]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140057220
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140054910
nop
lea r8, [rsp + 0x40]
mov rdx, qword [0x140094078]
mov rcx, rdi
call fcn.14004e500
mov qword [0x140097810], rax
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140057296
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140057290
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140057290
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006cef0
nop
lea rcx, [0x140097804]
call fcn.14006d090
mov r8, qword [0x140097810]
test r8, r8
jne 0x14005738f
mov dword [rsp + 0x40], 0x16731606
mov dword [rsp + 0x44], 0x16401602
mov dword [rsp + 0x48], 0x16031627
mov dword [rsp + 0x4c], 0x1608160a
mov dword [rsp + 0x50], 0x16021600
mov dword [rsp + 0x54], 0x161c1647
mov dword [rsp + 0x58], 0x164a1606
mov dword [rsp + 0x5c], 0x1609160c
mov dword [rsp + 0x60], 0x164e1619
mov dword [rsp + 0x64], 0x1608160a
mov dword [rsp + 0x68], 0x161d1601
mov dword [rsp + 0x6c], 0x16001601
mov dword [rsp + 0x70], 0x16181655
mov dword [rsp + 0x74], 0x16171603
mov dword [rsp + 0x78], 0x1611160a
mov dword [rsp + 0x7c], 0x16121609
mov dword [rbp - 0x80], 0x16501611
mov dword [rbp - 0x7c], 0x16f41631
mov dword [rbp - 0x78], 0x16e616c0
mov dword [rbp - 0x74], 0x16c516e7
mov dword [rbp - 0x70], 0x16e916f1
mov dword [rbp - 0x6c], 0x16ea
mov byte [rbp - 0x68], 1
mov ecx, 0x165d
nop word [rax + rax]
lea eax, [rcx + rbx]
xor word [rsp + rbx*2 + 0x40], ax
inc rbx
cmp rbx, 0x2b
jb 0x140057370
mov byte [rbp - 0x68], 0
lea rdx, [rsp + 0x40]
jmp 0x14005700b
mov r9d, recv
lea rdx, [rbp]
mov rcx, rdi
call fcn.14004d360
test al, al
je 0x140057027
movzx eax, byte [rbp - 0x10]
cmp byte [rbp], al
jne 0x14005753f
movzx eax, byte [rbp - 0xf]
cmp byte [rbp + 1], al
jne 0x14005753f
movzx eax, byte [rbp - 6]
cmp byte [rbp + 0xa], al
jne 0x14005753f
movzx eax, byte [rbp - 5]
cmp byte [rbp + 0xb], al
jne 0x14005753f
mov dword [rsp + 0x40], 0x16731606
mov dword [rsp + 0x44], 0x16401602
mov dword [rsp + 0x48], 0x16231627
mov dword [rsp + 0x4c], 0x1628162a
mov dword [rsp + 0x50], 0x16221620
mov dword [rsp + 0x54], 0x16521646
mov dword [rsp + 0x58], 0x163e1649
mov dword [rsp + 0x5c], 0x16091603
mov dword [rsp + 0x60], 0x160d164d
mov dword [rsp + 0x64], 0x16141600
mov dword [rsp + 0x68], 0x16521614
mov dword [rsp + 0x6c], 0x16151604
mov dword [rsp + 0x70], 0x16561606
mov dword [rsp + 0x74], 0x16141616
mov dword [rsp + 0x78], 0x161f160b
mov dword [rsp + 0x7c], 0x1618161a
mov dword [rbp - 0x80], 0x165e1604
mov dword [rbp - 0x7c], 0x16ef1617
mov dword [rbp - 0x78], 0x16e916ee
mov dword [rbp - 0x74], 0x16e016e6
mov dword [rbp - 0x70], 0x16a716a4
mov dword [rbp - 0x6c], 0x16e916a7
mov dword [rbp - 0x68], 0x16e516e7
mov dword [rbp - 0x64], 0x16e416ff
mov dword [rbp - 0x60], 0x16fc16e8
mov dword [rbp - 0x5c], 0x16f916af
mov dword [rbp - 0x58], 0x16e116ff
mov dword [rbp - 0x54], 0x16f516e7
mov dword [rbp - 0x50], 0x16f516fb
mov dword [rbp - 0x4c], 0x16b816f2
mov dword [rbp - 0x48], 0x16fc16f6
mov dword [rbp - 0x44], 0x16f716bb
mov dword [rbp - 0x40], 0x16f316f9
mov dword [rbp - 0x3c], 0x16d016fe
mov dword [rbp - 0x38], 0x16c716d1
mov dword [rbp - 0x34], 0x168416d1
mov dword [rbp - 0x30], 0x16d316d7
mov dword [rbp - 0x2c], 0x16c616c9
mov dword [rbp - 0x28], 0x16c416c0
mov dword [rbp - 0x24], 0x169316cc
mov dword [rbp - 0x20], 0x168c
mov byte [rbp - 0x1c], 1
mov ecx, 0x165d
nop word [rax + rax]
lea eax, [rcx + rbx]
xor word [rsp + rbx*2 + 0x40], ax
inc rbx
cmp rbx, 0x51
jb 0x140057520
mov byte [rbp - 0x1c], 0
lea rdx, [rsp + 0x40]
jmp 0x14005700b
mov r9d, recv
lea r8, [rbp - 0x10]
mov rdx, qword [0x140097810]
mov rcx, rdi
call fcn.14004d400
test al, al
je 0x140057027
mov rcx, r15
call r14
mov r9d, recv
lea r8, [rbp]
mov rdx, qword [0x140097810]
mov rcx, rdi
call fcn.14004d400
mov al, 1
jmp 0x140057029