Function at 0x140054d00
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 0x140054e57
test r14, r14
je 0x140054e57
mov dword [rsp + 0x20], 0xc3b2a33
mov dword [rsp + 0x24], 0x8074c0d
mov word [rsp + 0x28], 9
mov byte [rsp + 0x2a], 1
xor edi, edi
mov ecx, edi
nop word [rax + rax]
lea eax, [rcx + 0x5d]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 9
jb 0x140054d70
mov byte [rsp + 0x2a], dil
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r8, rax
test rax, rax
jne 0x140054e77
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], di
mov byte [rsp + 0x7a], 1
mov edx, 0x165d
nop dword [rax + rax]
lea eax, [rdx + rdi]
xor word [rsp + rdi*2 + 0x40], ax
inc rdi
cmp rdi, 0x1c
jb 0x140054e20
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
add rsp, 0x120
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
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, rdi
nop word [rax + rax]
lea eax, [rcx + 0x5d]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 9
jb 0x140054ea0
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 0x140054f9f
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], di
mov byte [rbp - 0x6e], 1
mov edx, 0x165d
nop dword [rax + rax]
lea eax, [rdx + rdi]
xor word [rsp + rdi*2 + 0x40], ax
inc rdi
cmp rdi, 0x28
jb 0x140054f80
mov byte [rbp - 0x6e], 0
lea rdx, [rsp + 0x40]
jmp 0x140054e3b
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 0x1400550d2
lea rcx, [0x14009787c]
call fcn.14006d0f0
cmp dword [0x14009787c], 0xffffffff
jne 0x1400550d2
mov dword [rsp + 0x20], 0x41e2a13
mov dword [rsp + 0x24], 0xb172305
mov word [rsp + 0x28], 8
mov byte [rsp + 0x2a], 1
mov rcx, rdi
nop word [rax + rax]
lea eax, [rcx + 0x5d]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 9
jb 0x140055010
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 0x140055050
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140054910
nop
lea r8, [rsp + 0x40]
mov rdx, qword [0x140094078]
mov rcx, rsi
call fcn.14004e500
mov qword [0x140097850], rax
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1400550c6
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400550c0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400550c0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006cef0
nop
lea rcx, [0x14009787c]
call fcn.14006d090
mov r8, qword [0x140097850]
test r8, r8
jne 0x1400551bf
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 edx, 0x165d
nop word [rax + rax]
lea eax, [rdx + rdi]
xor word [rsp + rdi*2 + 0x40], ax
inc rdi
cmp rdi, 0x2b
jb 0x1400551a0
mov byte [rbp - 0x68], 0
lea rdx, [rsp + 0x40]
jmp 0x140054e3b
mov r9d, recv
lea rdx, [rbp]
mov rcx, rsi
call fcn.14004d360
test al, al
je 0x140054e57
movzx eax, byte [rbp - 0x10]
cmp byte [rbp], al
jne 0x14005536f
movzx eax, byte [rbp - 0xf]
cmp byte [rbp + 1], al
jne 0x14005536f
movzx eax, byte [rbp - 6]
cmp byte [rbp + 0xa], al
jne 0x14005536f
movzx eax, byte [rbp - 5]
cmp byte [rbp + 0xb], al
jne 0x14005536f
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 edx, 0x165d
nop word [rax + rax]
lea eax, [rdx + rdi]
xor word [rsp + rdi*2 + 0x40], ax
inc rdi
cmp rdi, 0x51
jb 0x140055350
mov byte [rbp - 0x1c], 0
lea rdx, [rsp + 0x40]
jmp 0x140054e3b
mov r9d, recv
lea r8, [rbp - 0x10]
mov rdx, qword [0x140097850]
mov rcx, rsi
call fcn.14004d400
test al, al
je 0x140054e57
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.14004d400
mov al, 1
jmp 0x140054e59