Function at 0x140057d00
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 [0x140097848]
test rsi, rsi
je 0x140057e4a
mov dword [rsp + 0x20], 0x171e0d16
mov dword [rsp + 0x24], 0x131a5310
mov word [rsp + 0x28], 0xec
mov byte [rsp + 0x2a], 1
xor ebx, ebx
mov ecx, ebx
nop dword [rax]
lea eax, [rcx + 0x78]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 9
jb 0x140057d60
mov byte [rsp + 0x2a], bl
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r8, rax
test rax, rax
jne 0x140057e6f
mov dword [rsp + 0x40], 0xc654c623
mov dword [rsp + 0x44], 0xc65bc627
mov dword [rsp + 0x48], 0xc61cc63a
mov dword [rsp + 0x4c], 0xc613c617
mov dword [rsp + 0x50], 0xc6e5c6e5
mov dword [rsp + 0x54], 0xc6f7c6a2
mov dword [rsp + 0x58], 0xc6a5c6eb
mov dword [rsp + 0x5c], 0xc6e8c6ea
mov dword [rsp + 0x60], 0xc6edc6e9
mov dword [rsp + 0x64], 0xc6e5c6aa
mov dword [rsp + 0x68], 0xc6e9c6f8
mov dword [rsp + 0x6c], 0xc6e3c6e2
mov dword [rsp + 0x70], 0xc6f5c6be
mov dword [rsp + 0x74], 0xc6ffc6fe
mov word [rsp + 0x78], bx
mov byte [rsp + 0x7a], 1
mov ecx, 0x3988
nop word [rax + rax]
movzx eax, bx
sub ax, cx
xor word [rsp + rbx*2 + 0x40], ax
inc rbx
cmp rbx, 0x1c
jb 0x140057e10
mov byte [rsp + 0x7a], 0
lea rdx, [rsp + 0x40]
mov rcx, qword [0x140070250]
call fcn.140054b30
lea rdx, [0x140054d10]
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.14006d260
mov rbx, qword [rsp + 0x158]
add rsp, 0x120
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov dword [rsp + 0x30], 0x1f3b0d36
mov dword [rsp + 0x34], 0x100a3c18
mov word [rsp + 0x38], 0xed
mov byte [rsp + 0x3a], 1
mov rcx, rbx
nop
lea eax, [rcx + 0x78]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 9
jb 0x140057e90
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 0x140057f92
mov dword [rsp + 0x40], 0xc654c623
mov dword [rsp + 0x44], 0xc65bc627
mov dword [rsp + 0x48], 0xc61cc63a
mov dword [rsp + 0x4c], 0xc613c617
mov dword [rsp + 0x50], 0xc6e5c6e5
mov dword [rsp + 0x54], 0xc6f7c6a2
mov dword [rsp + 0x58], 0xc6a5c6eb
mov dword [rsp + 0x5c], 0xc6e2c6e1
mov dword [rsp + 0x60], 0xc6a9c6fc
mov dword [rsp + 0x64], 0xc6f3c6ef
mov dword [rsp + 0x68], 0xc6e2c6fc
mov dword [rsp + 0x6c], 0xc6fbc6fc
mov dword [rsp + 0x70], 0xc6ffc6b0
mov dword [rsp + 0x74], 0xc6f7c6e6
mov dword [rsp + 0x78], 0xc6f9c6f8
mov dword [rsp + 0x7c], 0xc6d9c6b8
mov dword [rbp - 0x80], 0xc6d8c6ec
mov dword [rbp - 0x7c], 0xc6ffc6fe
mov dword [rbp - 0x78], 0xc6e9c6dd
mov dword [rbp - 0x74], 0xc6f2c6f1
mov word [rbp - 0x70], bx
mov byte [rbp - 0x6e], 1
mov ecx, 0x3988
nop word [rax + rax]
movzx eax, bx
sub ax, cx
xor word [rsp + rbx*2 + 0x40], ax
inc rbx
cmp rbx, 0x28
jb 0x140057f70
mov byte [rbp - 0x6e], 0
lea rdx, [rsp + 0x40]
jmp 0x140057e2e
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 [0x140097868], eax
jle 0x1400580c2
lea rcx, [0x140097868]
call fcn.14006d550
cmp dword [0x140097868], 0xffffffff
jne 0x1400580c2
mov dword [rsp + 0x20], 0x1f3b0d36
mov dword [rsp + 0x24], 0x100a3c18
mov word [rsp + 0x28], 0xed
mov byte [rsp + 0x2a], 1
mov rcx, rbx
nop word [rax + rax]
lea eax, [rcx + 0x78]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 9
jb 0x140058000
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 0x140058040
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140054980
nop
lea r8, [rsp + 0x40]
mov rdx, qword [0x140094078]
mov rcx, rdi
call fcn.14004e550
mov qword [0x140097890], rax
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1400580b6
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400580b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400580b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006d350
nop
lea rcx, [0x140097868]
call fcn.14006d4f0
mov r8, qword [0x140097890]
test r8, r8
jne 0x1400581b2
mov dword [rsp + 0x40], 0xc654c623
mov dword [rsp + 0x44], 0xc65bc627
mov dword [rsp + 0x48], 0xc61cc63a
mov dword [rsp + 0x4c], 0xc613c617
mov dword [rsp + 0x50], 0xc6e5c6e5
mov dword [rsp + 0x54], 0xc6f7c6a2
mov dword [rsp + 0x58], 0xc6a5c6eb
mov dword [rsp + 0x5c], 0xc6e2c6e1
mov dword [rsp + 0x60], 0xc6a9c6fc
mov dword [rsp + 0x64], 0xc6f3c6ef
mov dword [rsp + 0x68], 0xc6e2c6fc
mov dword [rsp + 0x6c], 0xc6fbc6fc
mov dword [rsp + 0x70], 0xc6ffc6b0
mov dword [rsp + 0x74], 0xc6fcc6e6
mov dword [rsp + 0x78], 0xc6fec6e7
mov dword [rsp + 0x7c], 0xc6f9c6e4
mov dword [rbp - 0x80], 0xc6b7c6f4
mov dword [rbp - 0x7c], 0xc6efc6d4
mov dword [rbp - 0x78], 0xc6f9c6dd
mov dword [rbp - 0x74], 0xc6dec6fa
mov dword [rbp - 0x70], 0xc6cec6d4
mov dword [rbp - 0x6c], 0xc6cf
mov byte [rbp - 0x68], 1
mov ecx, 0x3988
nop word [rax + rax]
movzx eax, bx
sub ax, cx
xor word [rsp + rbx*2 + 0x40], ax
inc rbx
cmp rbx, 0x2b
jb 0x140058190
mov byte [rbp - 0x68], 0
lea rdx, [rsp + 0x40]
jmp 0x140057e2e
mov r9d, recv
lea rdx, [rbp]
mov rcx, rdi
call fcn.14004d3a0
test al, al
je 0x140057e4a
movzx eax, byte [rbp - 0x10]
cmp byte [rbp], al
jne 0x140058362
movzx eax, byte [rbp - 0xf]
cmp byte [rbp + 1], al
jne 0x140058362
movzx eax, byte [rbp - 6]
cmp byte [rbp + 0xa], al
jne 0x140058362
movzx eax, byte [rbp - 5]
cmp byte [rbp + 0xb], al
jne 0x140058362
mov dword [rsp + 0x40], 0xc654c623
mov dword [rsp + 0x44], 0xc65bc627
mov dword [rsp + 0x48], 0xc63cc63a
mov dword [rsp + 0x4c], 0xc633c637
mov dword [rsp + 0x50], 0xc6c5c6c5
mov dword [rsp + 0x54], 0xc6b9c6a3
mov dword [rsp + 0x58], 0xc6d1c6a4
mov dword [rsp + 0x5c], 0xc6e2c6ee
mov dword [rsp + 0x60], 0xc6eac6a8
mov dword [rsp + 0x64], 0xc6efc6e5
mov dword [rsp + 0x68], 0xc6adc6e9
mov dword [rsp + 0x6c], 0xc6eec6f9
mov dword [rsp + 0x70], 0xc6b1c6e3
mov dword [rsp + 0x74], 0xc6ffc6f3
mov dword [rsp + 0x78], 0xc6f0c6e6
mov dword [rsp + 0x7c], 0xc6f3c6f7
mov dword [rbp - 0x80], 0xc6b9c6e1
mov dword [rbp - 0x7c], 0xc6f4c6f2
mov dword [rbp - 0x78], 0xc6f6c6f3
mov dword [rbp - 0x74], 0xc6fbc6fb
mov dword [rbp - 0x70], 0xc680c681
mov dword [rbp - 0x6c], 0xc6c2c682
mov dword [rbp - 0x68], 0xc6cac6ca
mov dword [rbp - 0x64], 0xc6cfc6d2
mov dword [rbp - 0x60], 0xc6dbc6cd
mov dword [rbp - 0x5c], 0xc6c2c68a
mov dword [rbp - 0x58], 0xc6dec6c2
mov dword [rbp - 0x54], 0xc6cec6da
mov dword [rbp - 0x50], 0xc6d2c6de
mov dword [rbp - 0x4c], 0xc693c6d7
mov dword [rbp - 0x48], 0xc6d3c6db
mov dword [rbp - 0x44], 0xc6dcc696
mov dword [rbp - 0x40], 0xc6d4c6dc
mov dword [rbp - 0x3c], 0xc6cbc6db
mov dword [rbp - 0x38], 0xc6d8c6cc
mov dword [rbp - 0x34], 0xc69fc6cc
mov dword [rbp - 0x30], 0xc6b4c6b2
mov dword [rbp - 0x2c], 0xc6adc6ac
mov dword [rbp - 0x28], 0xc6abc6ad
mov dword [rbp - 0x24], 0xc6f8c6a1
mov dword [rbp - 0x20], 0xc6e9
mov byte [rbp - 0x1c], 1
mov ecx, 0x3988
nop dword [rax + rax]
movzx eax, bx
sub ax, cx
xor word [rsp + rbx*2 + 0x40], ax
inc rbx
cmp rbx, 0x51
jb 0x140058340
mov byte [rbp - 0x1c], 0
lea rdx, [rsp + 0x40]
jmp 0x140057e2e
mov r9d, recv
lea r8, [rbp - 0x10]
mov rdx, qword [0x140097890]
mov rcx, rdi
call fcn.14004d440
test al, al
je 0x140057e4a
mov rcx, r15
call r14
mov r9d, recv
lea r8, [rbp]
mov rdx, qword [0x140097890]
mov rcx, rdi
call fcn.14004d440
mov al, 1
jmp 0x140057e4c