Function at 0x140054de0
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 [0x140093010]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rbx, r9
mov r12, rdx
mov rsi, rcx
mov r14, qword [0x140097840]
test rdx, rdx
je 0x140054f3a
test r14, r14
je 0x140054f3a
mov dword [rsp + 0x20], 0xbcabbaa3
mov dword [rsp + 0x24], 0xb8b7fcbd
mov word [rsp + 0x28], 0xb9
mov byte [rsp + 0x2a], 1
xor edi, edi
mov ecx, edi
nop word [rax + rax]
lea eax, [rcx - 0x33]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 9
jb 0x140054e50
mov byte [rsp + 0x2a], dil
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r8, rax
test rax, rax
jne 0x140054f5a
mov dword [rsp + 0x40], 0xc5e3c596
mov dword [rsp + 0x44], 0xc5f0c592
mov dword [rsp + 0x48], 0xc5b3c597
mov dword [rsp + 0x4c], 0xc5b8c5ba
mov dword [rsp + 0x50], 0xc5b2c5b0
mov dword [rsp + 0x54], 0xc5acc5f7
mov dword [rsp + 0x58], 0xc5fac5b6
mov dword [rsp + 0x5c], 0xc5b3c5b7
mov dword [rsp + 0x60], 0xc5bac5bc
mov dword [rsp + 0x64], 0xc58ec5ff
mov dword [rsp + 0x68], 0xc586c595
mov dword [rsp + 0x6c], 0xc588c58f
mov dword [rsp + 0x70], 0xc582c5cb
mov dword [rsp + 0x74], 0xc584c58b
mov word [rsp + 0x78], di
mov byte [rsp + 0x7a], 1
mov edx, 0x3a33
nop dword [rax + rax]
movzx eax, di
sub ax, dx
xor word [rsp + rdi*2 + 0x40], ax
inc rdi
cmp rdi, 0x1c
jb 0x140054f00
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.140054ba0
lea rdx, [0x140054d80]
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.14006cad0
add rsp, 0x120
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov dword [rsp + 0x30], 0xb48eba83
mov dword [rsp + 0x34], 0xbba793b5
mov word [rsp + 0x38], 0xb8
mov byte [rsp + 0x3a], 1
mov rcx, rdi
nop dword [rax]
lea eax, [rcx - 0x33]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 9
jb 0x140054f80
mov byte [rsp + 0x3a], dil
lea rdx, [rsp + 0x30]
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
jne 0x140055082
mov dword [rsp + 0x40], 0xc5e3c596
mov dword [rsp + 0x44], 0xc5f0c592
mov dword [rsp + 0x48], 0xc5b3c597
mov dword [rsp + 0x4c], 0xc5b8c5ba
mov dword [rsp + 0x50], 0xc5b2c5b0
mov dword [rsp + 0x54], 0xc5acc5f7
mov dword [rsp + 0x58], 0xc5fac5b6
mov dword [rsp + 0x5c], 0xc5b9c5bc
mov dword [rsp + 0x60], 0xc5fec5a9
mov dword [rsp + 0x64], 0xc598c5ba
mov dword [rsp + 0x68], 0xc58dc591
mov dword [rsp + 0x6c], 0xc590c591
mov dword [rsp + 0x70], 0xc588c5c5
mov dword [rsp + 0x74], 0xc58cc593
mov dword [rsp + 0x78], 0xc586c585
mov dword [rsp + 0x7c], 0xc5a2c5c5
mov dword [rbp - 0x80], 0xc5afc599
mov dword [rbp - 0x7c], 0xc594c58b
mov dword [rbp - 0x78], 0xc586c5b0
mov dword [rbp - 0x74], 0xc599c59c
mov word [rbp - 0x70], di
mov byte [rbp - 0x6e], 1
mov edx, 0x3a33
nop dword [rax + rax]
movzx eax, di
sub ax, dx
xor word [rsp + rdi*2 + 0x40], ax
inc rdi
cmp rdi, 0x28
jb 0x140055060
mov byte [rbp - 0x6e], 0
lea rdx, [rsp + 0x40]
jmp 0x140054f1e
mov word [rbp - 0x10], 0xb848
mov word [rbp - 6], 0xe0ff
mov qword [rbp - 0xe], r14
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14009787c], eax
jle 0x1400551b2
lea rcx, [0x14009787c]
call fcn.14006cdc0
cmp dword [0x14009787c], 0xffffffff
jne 0x1400551b2
mov dword [rsp + 0x20], 0xb48eba83
mov dword [rsp + 0x24], 0xbba793b5
mov word [rsp + 0x28], 0xb8
mov byte [rsp + 0x2a], 1
mov rcx, rdi
nop word [rax + rax]
lea eax, [rcx - 0x33]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 9
jb 0x1400550f0
mov byte [rsp + 0x2a], 0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x50], rdi
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 0x140055130
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400549b0
nop
lea r8, [rsp + 0x40]
mov rdx, qword [0x140094078]
mov rcx, rsi
call fcn.14004e550
mov qword [0x140097850], rax
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1400551a6
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400551a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400551a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006cbc0
nop
lea rcx, [0x14009787c]
call fcn.14006cd60
mov r8, qword [0x140097850]
test r8, r8
jne 0x1400552a2
mov dword [rsp + 0x40], 0xc5e3c596
mov dword [rsp + 0x44], 0xc5f0c592
mov dword [rsp + 0x48], 0xc5b3c597
mov dword [rsp + 0x4c], 0xc5b8c5ba
mov dword [rsp + 0x50], 0xc5b2c5b0
mov dword [rsp + 0x54], 0xc5acc5f7
mov dword [rsp + 0x58], 0xc5fac5b6
mov dword [rsp + 0x5c], 0xc5b9c5bc
mov dword [rsp + 0x60], 0xc5fec5a9
mov dword [rsp + 0x64], 0xc598c5ba
mov dword [rsp + 0x68], 0xc58dc591
mov dword [rsp + 0x6c], 0xc590c591
mov dword [rsp + 0x70], 0xc588c5c5
mov dword [rsp + 0x74], 0xc587c593
mov dword [rsp + 0x78], 0xc581c59a
mov dword [rsp + 0x7c], 0xc582c599
mov dword [rbp - 0x80], 0xc5c0c581
mov dword [rbp - 0x7c], 0xc584c5a1
mov dword [rbp - 0x78], 0xc596c5b0
mov dword [rbp - 0x74], 0xc5b5c597
mov dword [rbp - 0x70], 0xc599c581
mov dword [rbp - 0x6c], 0xc59a
mov byte [rbp - 0x68], 1
mov edx, 0x3a33
nop word [rax + rax]
movzx eax, di
sub ax, dx
xor word [rsp + rdi*2 + 0x40], ax
inc rdi
cmp rdi, 0x2b
jb 0x140055280
mov byte [rbp - 0x68], 0
lea rdx, [rsp + 0x40]
jmp 0x140054f1e
mov r9d, recv
lea rdx, [rbp]
mov rcx, rsi
call fcn.14004d3a0
test al, al
je 0x140054f3a
movzx eax, byte [rbp - 0x10]
cmp byte [rbp], al
jne 0x140055452
movzx eax, byte [rbp - 0xf]
cmp byte [rbp + 1], al
jne 0x140055452
movzx eax, byte [rbp - 6]
cmp byte [rbp + 0xa], al
jne 0x140055452
movzx eax, byte [rbp - 5]
cmp byte [rbp + 0xb], al
jne 0x140055452
mov dword [rsp + 0x40], 0xc5e3c596
mov dword [rsp + 0x44], 0xc5f0c592
mov dword [rsp + 0x48], 0xc593c597
mov dword [rsp + 0x4c], 0xc598c59a
mov dword [rsp + 0x50], 0xc592c590
mov dword [rsp + 0x54], 0xc5e2c5f6
mov dword [rsp + 0x58], 0xc58ec5f9
mov dword [rsp + 0x5c], 0xc5b9c5b3
mov dword [rsp + 0x60], 0xc5bdc5fd
mov dword [rsp + 0x64], 0xc584c5b0
mov dword [rsp + 0x68], 0xc5c2c584
mov dword [rsp + 0x6c], 0xc585c594
mov dword [rsp + 0x70], 0xc5c6c596
mov dword [rsp + 0x74], 0xc584c586
mov dword [rsp + 0x78], 0xc58fc59b
mov dword [rsp + 0x7c], 0xc588c58a
mov dword [rbp - 0x80], 0xc5cec594
mov dword [rbp - 0x7c], 0xc59fc587
mov dword [rbp - 0x78], 0xc599c59e
mov dword [rbp - 0x74], 0xc590c596
mov dword [rbp - 0x70], 0xc5d7c5d4
mov dword [rbp - 0x6c], 0xc599c5d7
mov dword [rbp - 0x68], 0xc595c597
mov dword [rbp - 0x64], 0xc594c58f
mov dword [rbp - 0x60], 0xc58cc598
mov dword [rbp - 0x5c], 0xc669c5df
mov dword [rbp - 0x58], 0xc671c66f
mov dword [rbp - 0x54], 0xc665c677
mov dword [rbp - 0x50], 0xc665c66b
mov dword [rbp - 0x4c], 0xc628c662
mov dword [rbp - 0x48], 0xc66cc666
mov dword [rbp - 0x44], 0xc667c62b
mov dword [rbp - 0x40], 0xc663c669
mov dword [rbp - 0x3c], 0xc660c66e
mov dword [rbp - 0x38], 0xc677c661
mov dword [rbp - 0x34], 0xc634c661
mov dword [rbp - 0x30], 0xc663c667
mov dword [rbp - 0x2c], 0xc676c679
mov dword [rbp - 0x28], 0xc674c670
mov dword [rbp - 0x24], 0xc623c67c
mov dword [rbp - 0x20], 0xc63c
mov byte [rbp - 0x1c], 1
mov edx, 0x3a33
nop dword [rax + rax]
movzx eax, di
sub ax, dx
xor word [rsp + rdi*2 + 0x40], ax
inc rdi
cmp rdi, 0x51
jb 0x140055430
mov byte [rbp - 0x1c], 0
lea rdx, [rsp + 0x40]
jmp 0x140054f1e
mov r9d, recv
lea r8, [rbp - 0x10]
mov rdx, qword [0x140097850]
mov rcx, rsi
call fcn.14004d440
test al, al
je 0x140054f3a
mov r9, qword [rbp + 0x90]
mov r8, qword [rbp + 0x88]
mov rdx, qword [rbp + 0x80]
mov rcx, rbx
call r15
mov qword [r12], rax
mov r9d, recv
lea r8, [rbp]
mov rdx, qword [0x140097850]
mov rcx, rsi
call fcn.14004d440
mov al, 1
jmp 0x140054f3c