Function at 0x1400585e0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x140091010]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov r12, r9
mov r15, rdx
mov rdi, rcx
mov rsi, qword [0x1401bfbf8]
test rdx, rdx
je 0x140058737
test rsi, rsi
je 0x140058737
mov dword [rsp + 0x20], 0xf0ffeef7
mov dword [rsp + 0x24], 0xccfbb0f1
mov word [rsp + 0x28], 0xcd
mov byte [rsp + 0x2a], 1
xor ebx, ebx
mov ecx, ebx
nop word [rax + rax]
lea eax, [rcx - 0x67]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 9
jb 0x140058650
mov byte [rsp + 0x2a], bl
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r8, rax
test rax, rax
jne 0x140058757
mov dword [rsp + 0x40], 0x41b741c2
mov dword [rsp + 0x44], 0x41bc41c6
mov dword [rsp + 0x48], 0x41ff41db
mov dword [rsp + 0x4c], 0x41cc41f6
mov dword [rsp + 0x50], 0x41c641c4
mov dword [rsp + 0x54], 0x41d04183
mov dword [rsp + 0x58], 0x418641ca
mov dword [rsp + 0x5c], 0x41c741cb
mov dword [rsp + 0x60], 0x41ce41c8
mov dword [rsp + 0x64], 0x41c2418b
mov dword [rsp + 0x68], 0x41ca41d9
mov dword [rsp + 0x6c], 0x41dc41c3
mov dword [rsp + 0x70], 0x41d6419f
mov dword [rsp + 0x74], 0x41d841df
mov word [rsp + 0x78], bx
mov byte [rsp + 0x7a], 1
mov ecx, 0x4199
nop word [rax + rax]
lea eax, [rcx + rbx]
xor word [rsp + rbx*2 + 0x40], ax
inc rbx
cmp rbx, 0x1c
jb 0x140058700
mov byte [rsp + 0x7a], 0
lea rdx, [rsp + 0x40]
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 + 0x10]
xor rcx, rsp
call fcn.1400726c0
add rsp, 0x120
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
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 0x140058780
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 0x14005887f
mov dword [rsp + 0x40], 0x41b741c2
mov dword [rsp + 0x44], 0x41bc41c6
mov dword [rsp + 0x48], 0x41ff41db
mov dword [rsp + 0x4c], 0x41cc41f6
mov dword [rsp + 0x50], 0x41c641c4
mov dword [rsp + 0x54], 0x41d04183
mov dword [rsp + 0x58], 0x418641ca
mov dword [rsp + 0x5c], 0x41cd41c0
mov dword [rsp + 0x60], 0x418a41dd
mov dword [rsp + 0x64], 0x41d441ce
mov dword [rsp + 0x68], 0x41c141dd
mov dword [rsp + 0x6c], 0x41c441dd
mov dword [rsp + 0x70], 0x41dc4191
mov dword [rsp + 0x74], 0x41d041c7
mov dword [rsp + 0x78], 0x41da41d9
mov ecx, 0x4199
mov dword [rsp + 0x7c], 0x41f64199
mov dword [rbp - 0x80], 0x41fb41cd
mov dword [rbp - 0x7c], 0x41d841df
mov dword [rbp - 0x78], 0x41ca41fc
mov dword [rbp - 0x74], 0x41ad41d0
mov word [rbp - 0x70], bx
mov byte [rbp - 0x6e], 1
nop word [rax + rax]
lea eax, [rcx + rbx]
xor word [rsp + rbx*2 + 0x40], ax
inc rbx
cmp rbx, 0x28
jb 0x140058860
mov byte [rbp - 0x6e], 0
lea rdx, [rsp + 0x40]
jmp 0x14005871b
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 [0x1401bfbe8], eax
jle 0x1400589a4
lea rcx, [0x1401bfbe8]
call fcn.1400728d0
cmp dword [0x1401bfbe8], 0xffffffff
jne 0x1400589a4
mov dword [rsp + 0x20], 0xf8daeed7
mov dword [rsp + 0x24], 0xcfebdff9
mov word [rsp + 0x28], 0xcc
mov byte [rsp + 0x2a], 1
mov rcx, rbx
nop word [rax + rax]
lea eax, [rcx - 0x67]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 9
jb 0x1400588f0
mov byte [rsp + 0x2a], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea rax, [rsp + 0x20]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140058922
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14005a6a0
nop
lea r8, [rsp + 0x40]
mov rdx, qword [0x1401bc9a8]
mov rcx, rdi
call fcn.14004f4a0
mov qword [0x1401bfb20], rax
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140058998
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058992
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140058992
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400727b0
nop
lea rcx, [0x1401bfbe8]
call fcn.140072864
mov r8, qword [0x1401bfb20]
test r8, r8
jne 0x140058a8f
mov dword [rsp + 0x40], 0x41b741c2
mov dword [rsp + 0x44], 0x41bc41c6
mov dword [rsp + 0x48], 0x41ff41db
mov dword [rsp + 0x4c], 0x41cc41f6
mov dword [rsp + 0x50], 0x41c641c4
mov dword [rsp + 0x54], 0x41d04183
mov dword [rsp + 0x58], 0x418641ca
mov dword [rsp + 0x5c], 0x41cd41c0
mov dword [rsp + 0x60], 0x418a41dd
mov dword [rsp + 0x64], 0x41d441ce
mov dword [rsp + 0x68], 0x41c141dd
mov dword [rsp + 0x6c], 0x41c441dd
mov dword [rsp + 0x70], 0x41dc4191
mov dword [rsp + 0x74], 0x41db41c7
mov dword [rsp + 0x78], 0x41dd41c6
mov dword [rsp + 0x7c], 0x41d641c5
mov dword [rbp - 0x80], 0x419441d5
mov dword [rbp - 0x7c], 0x41c841f5
mov dword [rbp - 0x78], 0x41da41fc
mov dword [rbp - 0x74], 0x418141db
mov dword [rbp - 0x70], 0x41ad41b5
mov dword [rbp - 0x6c], 0x41ae
mov byte [rbp - 0x68], 1
mov ecx, 0x4199
nop word [rax + rax]
lea eax, [rcx + rbx]
xor word [rsp + rbx*2 + 0x40], ax
inc rbx
cmp rbx, 0x2b
jb 0x140058a70
mov byte [rbp - 0x68], 0
lea rdx, [rsp + 0x40]
jmp 0x14005871b
mov r9d, recv
lea rdx, [rbp]
mov rcx, rdi
call fcn.14004e2c0
test al, al
je 0x140058737
movzx eax, byte [rbp - 0x10]
cmp byte [rbp], al
jne 0x140058c3f
movzx eax, byte [rbp - 0xf]
cmp byte [rbp + 1], al
jne 0x140058c3f
movzx eax, byte [rbp - 6]
cmp byte [rbp + 0xa], al
jne 0x140058c3f
movzx eax, byte [rbp - 5]
cmp byte [rbp + 0xb], al
jne 0x140058c3f
mov dword [rsp + 0x40], 0x41b741c2
mov dword [rsp + 0x44], 0x41bc41c6
mov dword [rsp + 0x48], 0x41df41db
mov dword [rsp + 0x4c], 0x41ec41d6
mov dword [rsp + 0x50], 0x41e641e4
mov dword [rsp + 0x54], 0x419e4182
mov dword [rsp + 0x58], 0x41f24185
mov dword [rsp + 0x5c], 0x41cd41cf
mov dword [rsp + 0x60], 0x41c94189
mov dword [rsp + 0x64], 0x41c841c4
mov dword [rsp + 0x68], 0x418e41c8
mov dword [rsp + 0x6c], 0x41d141d8
mov dword [rsp + 0x70], 0x419241c2
mov dword [rsp + 0x74], 0x41d841d2
mov dword [rsp + 0x78], 0x41d341c7
mov dword [rsp + 0x7c], 0x41dc41d6
mov dword [rbp - 0x80], 0x419a41c0
mov dword [rbp - 0x7c], 0x41d341d3
mov dword [rbp - 0x78], 0x41d541d2
mov dword [rbp - 0x74], 0x41a441da
mov dword [rbp - 0x70], 0x41e341e0
mov dword [rbp - 0x6c], 0x41a541e3
mov dword [rbp - 0x68], 0x41a941ab
mov dword [rbp - 0x64], 0x41a041b3
mov dword [rbp - 0x60], 0x41b841ac
mov dword [rbp - 0x5c], 0x41a541eb
mov dword [rbp - 0x58], 0x41bd41a3
mov dword [rbp - 0x54], 0x41b141bb
mov dword [rbp - 0x50], 0x41b141bf
mov dword [rbp - 0x4c], 0x41f441b6
mov dword [rbp - 0x48], 0x41b041ba
mov dword [rbp - 0x44], 0x41b341f7
mov dword [rbp - 0x40], 0x41b741bd
mov dword [rbp - 0x3c], 0x41ac41ba
mov dword [rbp - 0x38], 0x41bb41ad
mov dword [rbp - 0x34], 0x41c041ad
mov dword [rbp - 0x30], 0x41974193
mov dword [rbp - 0x2c], 0x418a418d
mov dword [rbp - 0x28], 0x4188418c
mov dword [rbp - 0x24], 0x41d74180
mov dword [rbp - 0x20], 0x41c8
mov byte [rbp - 0x1c], 1
mov ecx, 0x4199
nop word [rax + rax]
lea eax, [rcx + rbx]
xor word [rsp + rbx*2 + 0x40], ax
inc rbx
cmp rbx, 0x51
jb 0x140058c20
mov byte [rbp - 0x1c], 0
lea rdx, [rsp + 0x40]
jmp 0x14005871b
mov r9d, recv
lea r8, [rbp - 0x10]
mov rdx, qword [0x1401bfb20]
mov rcx, rdi
call fcn.14004e360
test al, al
je 0x140058737
mov dl, 1
mov rcx, r12
call r14
mov byte [r15], al
mov r9d, recv
lea r8, [rbp]
mov rdx, qword [0x1401bfb20]
mov rcx, rdi
call fcn.14004e360
mov al, 1
jmp 0x140058739