Function at 0x140056470
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 [0x140091010]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov r12, r9
mov r15, rdx
mov rdi, rcx
mov rsi, qword [0x1401bfb50]
test rdx, rdx
je 0x1400565c6
test rsi, rsi
je 0x1400565c6
mov dword [rsp + 0x30], 0xf0ffeef7
mov dword [rsp + 0x34], 0xccfbb0f1
mov word [rsp + 0x38], 0xcd
mov byte [rsp + 0x3a], 1
xor ebx, ebx
mov ecx, ebx
nop word [rax + rax]
lea eax, [rcx - 0x67]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 9
jb 0x1400564e0
mov byte [rsp + 0x3a], bl
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r8, rax
test rax, rax
jne 0x1400565e6
mov dword [rsp + 0x50], 0x41b741c2
mov dword [rsp + 0x54], 0x41bc41c6
mov dword [rsp + 0x58], 0x41ff41db
mov dword [rsp + 0x5c], 0x41cc41f6
mov dword [rsp + 0x60], 0x41c641c4
mov dword [rsp + 0x64], 0x41d04183
mov dword [rsp + 0x68], 0x418641ca
mov dword [rsp + 0x6c], 0x41c741cb
mov dword [rsp + 0x70], 0x41ce41c8
mov dword [rsp + 0x74], 0x41c2418b
mov dword [rsp + 0x78], 0x41ca41d9
mov dword [rsp + 0x7c], 0x41dc41c3
mov dword [rbp - 0x80], 0x41d6419f
mov dword [rbp - 0x7c], 0x41d841df
mov word [rbp - 0x78], bx
mov byte [rbp - 0x76], 1
mov ecx, 0x4199
nop word [rax + rax]
lea eax, [rcx + rbx]
xor word [rsp + rbx*2 + 0x50], ax
inc rbx
cmp rbx, 0x1c
jb 0x140056590
mov byte [rbp - 0x76], 0
lea rdx, [rsp + 0x50]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140055b70
lea rdx, [0x140055d50]
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.1400726c0
add rsp, 0x130
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov dword [rsp + 0x40], 0xf8daeed7
mov dword [rsp + 0x44], 0xcfebdff9
mov word [rsp + 0x48], 0xcc
mov byte [rsp + 0x4a], 1
mov rcx, rbx
nop word [rax + rax]
lea eax, [rcx - 0x67]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 9
jb 0x140056610
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 0x14005670f
mov dword [rsp + 0x50], 0x41b741c2
mov dword [rsp + 0x54], 0x41bc41c6
mov dword [rsp + 0x58], 0x41ff41db
mov dword [rsp + 0x5c], 0x41cc41f6
mov dword [rsp + 0x60], 0x41c641c4
mov dword [rsp + 0x64], 0x41d04183
mov dword [rsp + 0x68], 0x418641ca
mov dword [rsp + 0x6c], 0x41cd41c0
mov dword [rsp + 0x70], 0x418a41dd
mov dword [rsp + 0x74], 0x41d441ce
mov dword [rsp + 0x78], 0x41c141dd
mov dword [rsp + 0x7c], 0x41c441dd
mov dword [rbp - 0x80], 0x41dc4191
mov dword [rbp - 0x7c], 0x41d041c7
mov dword [rbp - 0x78], 0x41da41d9
mov ecx, 0x4199
mov dword [rbp - 0x74], 0x41f64199
mov dword [rbp - 0x70], 0x41fb41cd
mov dword [rbp - 0x6c], 0x41d841df
mov dword [rbp - 0x68], 0x41ca41fc
mov dword [rbp - 0x64], 0x41ad41d0
mov word [rbp - 0x60], bx
mov byte [rbp - 0x5e], 1
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx + rbx]
xor word [rsp + rbx*2 + 0x50], ax
inc rbx
cmp rbx, 0x28
jb 0x1400566f0
mov byte [rbp - 0x5e], 0
lea rdx, [rsp + 0x50]
jmp 0x1400565aa
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 [0x1401bfbe0], eax
jle 0x140056834
lea rcx, [0x1401bfbe0]
call fcn.1400728d0
cmp dword [0x1401bfbe0], 0xffffffff
jne 0x140056834
mov dword [rsp + 0x30], 0xf8daeed7
mov dword [rsp + 0x34], 0xcfebdff9
mov word [rsp + 0x38], 0xcc
mov byte [rsp + 0x3a], 1
mov rcx, rbx
nop word [rax + rax]
lea eax, [rcx - 0x67]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 9
jb 0x140056780
mov byte [rsp + 0x3a], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400567b2
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14005a6a0
nop
lea r8, [rsp + 0x50]
mov rdx, qword [0x1401bc9a8]
mov rcx, rdi
call fcn.14004f4a0
mov qword [0x1401bfb38], rax
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140056828
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140056822
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140056822
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400727b0
nop
lea rcx, [0x1401bfbe0]
call fcn.140072864
mov r8, qword [0x1401bfb38]
test r8, r8
jne 0x14005691f
mov dword [rsp + 0x50], 0x41b741c2
mov dword [rsp + 0x54], 0x41bc41c6
mov dword [rsp + 0x58], 0x41ff41db
mov dword [rsp + 0x5c], 0x41cc41f6
mov dword [rsp + 0x60], 0x41c641c4
mov dword [rsp + 0x64], 0x41d04183
mov dword [rsp + 0x68], 0x418641ca
mov dword [rsp + 0x6c], 0x41cd41c0
mov dword [rsp + 0x70], 0x418a41dd
mov dword [rsp + 0x74], 0x41d441ce
mov dword [rsp + 0x78], 0x41c141dd
mov dword [rsp + 0x7c], 0x41c441dd
mov dword [rbp - 0x80], 0x41dc4191
mov dword [rbp - 0x7c], 0x41db41c7
mov dword [rbp - 0x78], 0x41dd41c6
mov dword [rbp - 0x74], 0x41d641c5
mov dword [rbp - 0x70], 0x419441d5
mov dword [rbp - 0x6c], 0x41c841f5
mov dword [rbp - 0x68], 0x41da41fc
mov dword [rbp - 0x64], 0x418141db
mov dword [rbp - 0x60], 0x41ad41b5
mov dword [rbp - 0x5c], 0x41ae
mov byte [rbp - 0x58], 1
mov ecx, 0x4199
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx + rbx]
xor word [rsp + rbx*2 + 0x50], ax
inc rbx
cmp rbx, 0x2b
jb 0x140056900
mov byte [rbp - 0x58], 0
lea rdx, [rsp + 0x50]
jmp 0x1400565aa
mov r9d, recv
lea rdx, [rbp + 0x10]
mov rcx, rdi
call fcn.14004e2c0
test al, al
je 0x1400565c6
movzx eax, byte [rbp]
cmp byte [rbp + 0x10], al
jne 0x140056ac0
movzx eax, byte [rbp + 1]
cmp byte [rbp + 0x11], al
jne 0x140056ac0
movzx eax, byte [rbp + 0xa]
cmp byte [rbp + 0x1a], al
jne 0x140056ac0
movzx eax, byte [rbp + 0xb]
cmp byte [rbp + 0x1b], al
jne 0x140056ac0
mov dword [rsp + 0x50], 0x41b741c2
mov dword [rsp + 0x54], 0x41bc41c6
mov dword [rsp + 0x58], 0x41df41db
mov dword [rsp + 0x5c], 0x41ec41d6
mov dword [rsp + 0x60], 0x41e641e4
mov dword [rsp + 0x64], 0x419e4182
mov dword [rsp + 0x68], 0x41f24185
mov dword [rsp + 0x6c], 0x41cd41cf
mov dword [rsp + 0x70], 0x41c94189
mov dword [rsp + 0x74], 0x41c841c4
mov dword [rsp + 0x78], 0x418e41c8
mov dword [rsp + 0x7c], 0x41d141d8
mov dword [rbp - 0x80], 0x419241c2
mov dword [rbp - 0x7c], 0x41d841d2
mov dword [rbp - 0x78], 0x41d341c7
mov dword [rbp - 0x74], 0x41dc41d6
mov dword [rbp - 0x70], 0x419a41c0
mov dword [rbp - 0x6c], 0x41d341d3
mov dword [rbp - 0x68], 0x41d541d2
mov dword [rbp - 0x64], 0x41a441da
mov dword [rbp - 0x60], 0x41e341e0
mov dword [rbp - 0x5c], 0x41a541e3
mov dword [rbp - 0x58], 0x41a941ab
mov dword [rbp - 0x54], 0x41a041b3
mov dword [rbp - 0x50], 0x41b841ac
mov dword [rbp - 0x4c], 0x41a541eb
mov dword [rbp - 0x48], 0x41bd41a3
mov dword [rbp - 0x44], 0x41b141bb
mov dword [rbp - 0x40], 0x41b141bf
mov dword [rbp - 0x3c], 0x41f441b6
mov dword [rbp - 0x38], 0x41b041ba
mov dword [rbp - 0x34], 0x41b341f7
mov dword [rbp - 0x30], 0x41b741bd
mov dword [rbp - 0x2c], 0x41ac41ba
mov dword [rbp - 0x28], 0x41bb41ad
mov dword [rbp - 0x24], 0x41c041ad
mov dword [rbp - 0x20], 0x41974193
mov dword [rbp - 0x1c], 0x418a418d
mov dword [rbp - 0x18], 0x4188418c
mov dword [rbp - 0x14], 0x41d74180
mov dword [rbp - 0x10], 0x41c8
mov byte [rbp - 0xc], 1
mov ecx, 0x4199
lea eax, [rcx + rbx]
xor word [rsp + rbx*2 + 0x50], ax
inc rbx
cmp rbx, 0x51
jb 0x140056aa1
mov byte [rbp - 0xc], 0
lea rdx, [rsp + 0x50]
jmp 0x1400565aa
mov r9d, recv
lea r8, [rbp]
mov rdx, qword [0x1401bfb38]
mov rcx, rdi
call fcn.14004e360
test al, al
je 0x1400565c6
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 [0x1401bfb38]
mov rcx, rdi
call fcn.14004e360
mov al, 1
jmp 0x1400565c8