Function at 0x542af0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x188
call fcn.005555e0
sub rsp, rax
mov rax, qword [0x005c3458]
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x1c0]
mov qword [rsp + 0x180], rbx
mov rbx, qword [rsp + 0x1b0]
mov qword [rsp + 0x178], rbp
mov rbp, qword [rsp + 0x1d0]
mov qword [rsp + 0x168], rdi
mov qword [rsp + 0x160], r12
mov qword [rsp + 0x150], r14
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x1c8]
mov r14, r8
mov rdi, rdx
xor edx, edx
shr r14, 3
mov qword [rsp + 0x148], r15
cmp r14d, 0x14
mov qword [rsp + 0x98], rax
mov r12, r9
mov qword [rsp + 0x80], r9
mov qword [rsp + 0xa8], rcx
mov qword [rsp + 0x60], rbp
mov r15d, edx
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x40], edx
mov qword [rsp + 0x68], 2
je 0x542bbd
cmp r14d, 0x1c
je 0x542bbd
cmp r14d, 0x20
je 0x542bbd
xor eax, eax
jmp 0x5433fd
test r9, r9
jne 0x542bd4
call fcn.004c3780
xor edx, edx
mov r12, rax
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x1b8]
mov eax, 0x200
cmp rdi, rax
cmovb rdi, rax
lea rax, [rdi + 0x3f]
and rax, 0xffffffffffffffc0
test rcx, rcx
mov qword [rsp + 0x78], rax
je 0x542c04
movsxd rax, r14d
cmp rcx, rax
cmovb rbx, rdx
mov qword [rsp + 0x170], rsi
movsxd rsi, r14d
cmp rcx, rsi
cmova rcx, rsi
test rbx, rbx
mov qword [rsp + 0x1b8], rcx
je 0x542c36
mov r8, rcx
lea rcx, [rsp + 0xf8]
mov rdx, rbx
call sub.msvcrt.dll_memcpy
mov qword [rsp + 0x158], r13
call fcn.004c6ed0
test rax, rax
mov r13, rax
mov qword [rsp + 0x38], rax
je 0x5433ea
call fcn.004e1040
test rax, rax
mov qword [rsp + 0x50], rax
je 0x5433c8
mov rcx, r13
call fcn.004c6ff0
mov rcx, r13
call fcn.004c7170
mov rcx, r13
mov rdi, rax
call fcn.004c7170
mov rcx, r13
mov qword [rsp + 0xb0], rax
call fcn.004c7170
mov rcx, r13
mov r15, rax
call fcn.004c7170
mov rcx, r13
mov qword [rsp + 0x48], rax
call fcn.004c7170
mov rcx, r13
mov qword [rsp + 0x90], rax
call fcn.004c7170
mov rcx, r13
mov qword [rsp + 0x88], rax
call fcn.004c7170
mov rcx, r13
mov qword [rsp + 0x70], rax
call fcn.004c7170
mov rbx, rax
mov qword [rsp + 0x58], rax
call fcn.00480b30
mov r8, qword [rsp + 0x78]
mov rcx, rbx
mov rdx, rax
dec r8d
call fcn.00480770
test eax, eax
je 0x5433bc
nop
mov ebx, dword [rsp + 0x40]
xor edx, edx
mov rcx, rbp
mov r8d, ebx
call fcn.0054c1b0
inc ebx
test eax, eax
mov dword [rsp + 0x40], ebx
je 0x5433b5
cmp qword [rsp + 0x1b8], 0
jne 0x542d41
lea rcx, [rsp + 0xf8]
mov edx, r14d
call fcn.004c3cc0
mov ebx, 1
jmp 0x542d4d
xor eax, eax
mov ebx, eax
mov qword [rsp + 0x1b8], rax
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0xd8]
mov r8, rsi
call sub.msvcrt.dll_memcpy
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0x118]
mov r8, rsi
call sub.msvcrt.dll_memcpy
lea r11, [rsi - 1]
test r11, r11
js 0x542d95
inc byte [rsp + r11 + 0xd8]
jne 0x542d95
dec r11
jns 0x542d86
lea r8, [rsp + 0xb8]
lea rcx, [rsp + 0xf8]
xor r9d, r9d
mov rdx, rsi
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], r12
call fcn.004d6700
lea r8, [rsp + 0x118]
lea rcx, [rsp + 0xd8]
xor r9d, r9d
mov rdx, rsi
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], r12
call fcn.004d6700
xor r11d, r11d
test r14d, r14d
jle 0x542e09
nop
movzx eax, byte [rsp + r11 + 0x118]
inc r11
xor byte [rsp + r11 + 0xb7], al
cmp r11, rsi
jl 0x542df0
or byte [rsp + 0xb8], 0x80
mov r8, qword [rsp + 0x48]
or byte [rsp + rsi + 0xb7], 1
lea rcx, [rsp + 0xb8]
mov edx, r14d
call fcn.004812b0
test rax, rax
je 0x5433ae
mov rcx, qword [rsp + 0x48]
mov r9d, ebx
mov r8, r13
mov edx, gethostbyname
mov qword [rsp + 0x20], rbp
call fcn.0054c7c0
test eax, eax
jg 0x542e67
test eax, eax
je 0x542d00
mov r15d, dword [rsp + 0x30]
jmp 0x5433c8
xor r8d, r8d
mov rcx, rbp
lea edx, [r8 + 2]
call fcn.0054c1b0
test eax, eax
je 0x5433a7
xor r8d, r8d
mov rcx, rbp
lea edx, [r8 + 3]
call fcn.0054c1b0
test eax, eax
je 0x5433a0
mov rcx, qword [rsp + 0x78]
movabs rax, 0xcccccccccccccccd
xor r12d, r12d
dec rcx
lea r13, [rsi - 1]
mul rcx
mov rbp, rdx
shr rbp, 7
test r12d, r12d
je 0x542ed4
mov rcx, qword [rsp + 0x60]
mov r8d, r12d
xor edx, edx
call fcn.0054c1b0
test eax, eax
je 0x54336a
xor edx, edx
mov rcx, r15
call fcn.00481210
xor ecx, ecx
test ebp, ebp
mov ebx, ecx
js 0x542f9b
nop
nop
test r13, r13
mov rax, r13
js 0x542f0e
nop
nop
inc byte [rsp + rax + 0xd8]
jne 0x542f0e
dec rax
jns 0x542f00
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rcx
lea r8, [rsp + 0xb8]
lea rcx, [rsp + 0xd8]
xor r9d, r9d
mov rdx, rsi
mov qword [rsp + 0x20], rax
call fcn.004d6700
lea rcx, [rsp + 0xb8]
mov r8, rdi
mov edx, r14d
call fcn.004812b0
test rax, rax
je 0x54335e
lea r8d, [r14*8]
mov rdx, rdi
mov rcx, rdi
imul r8d, ebx
call fcn.00480770
test eax, eax
je 0x543352
mov r8, rdi
mov rdx, r15
mov rcx, r15
call fcn.004ca490
test eax, eax
je 0x543346
inc ebx
mov ecx, 0
cmp ebx, ebp
jle 0x542ef0
mov rdx, qword [rsp + 0x78]
mov rcx, r15
dec edx
call fcn.004817c0
test eax, eax
je 0x543337
mov rbx, qword [rsp + 0x90]
mov rdx, r15
mov rcx, rbx
call fcn.00481020
test rax, rax
je 0x543328
mov r8, qword [rsp + 0x58]
mov rdx, rbx
mov rcx, rbx
call fcn.004ca490
test eax, eax
je 0x543319
mov rdx, qword [rsp + 0x48]
mov rcx, rdi
call fcn.00480570
test eax, eax
je 0x54330a
mov rax, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x88]
mov r9, rdi
mov r8, rbx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.004e28a0
test eax, eax
je 0x5432fb
call fcn.00480b30
mov rdx, qword [rsp + 0x88]
mov rcx, rdi
mov r8, rax
call fcn.004ca3b0
test eax, eax
je 0x5432ec
mov rdx, rbx
mov rbx, qword [rsp + 0x70]
mov r8, rdi
mov rcx, rbx
call fcn.004ca3b0
test eax, eax
je 0x5432dd
mov rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.00481580
test eax, eax
js 0x54309d
mov rbx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
mov r9d, 1
mov qword [rsp + 0x20], rbx
lea edx, [r9 + 0x31]
call fcn.0054c7c0
test eax, eax
jg 0x5430c4
test eax, eax
jne 0x5432ce
inc r12d
cmp r12d, 0x1000
jl 0x542eb8
mov rbp, qword [rsp + 0x60]
mov r12, qword [rsp + 0x80]
mov r13, qword [rsp + 0x38]
jmp 0x542d00
mov r15d, 2
mov r8d, 1
mov rcx, rbx
mov edx, r15d
call fcn.0054c1b0
test eax, eax
je 0x5432bf
call fcn.00480b30
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x58]
mov rdx, rsi
mov rcx, rbp
mov r8, rax
call fcn.004ca3b0
test eax, eax
je 0x5432b0
mov r14, qword [rsp + 0x48]
mov r13, qword [rsp + 0x38]
mov r8, rbp
xor edx, edx
mov rcx, rdi
mov r9, r14
mov qword [rsp + 0x20], r13
call fcn.004e28a0
test eax, eax
je 0x543399
mov rdx, r15
mov rcx, rbp
call fcn.00481210
test eax, eax
je 0x543392
mov r15, qword [rsp + 0x50]
mov r8, r13
mov rdx, rsi
mov rcx, r15
call fcn.004e0cb0
test eax, eax
je 0x54338b
mov qword [rsp + 0x28], r15
mov r15, qword [rsp + 0xb0]
mov r9, rsi
mov r8, rdi
mov rdx, rbp
mov rcx, r15
mov qword [rsp + 0x20], r13
call fcn.004e01b0
test eax, eax
je 0x543384
cmp dword [r15 + 8], 1
jne 0x5431ec
mov rax, qword [r15]
cmp qword [rax], 1
jne 0x5431ec
cmp dword [r15 + 0x10], 0
jne 0x5431ec
call fcn.00480b30
mov rdx, rbp
mov rcx, rbp
mov r8, rax
call fcn.004ca490
test eax, eax
je 0x54337d
mov rax, qword [rsp + 0x50]
inc dword [rsp + 0x68]
mov r9, rsi
mov qword [rsp + 0x28], rax
mov r8, rdi
mov rdx, rbp
mov rcx, r15
mov qword [rsp + 0x20], r13
call fcn.004e01b0
test eax, eax
jne 0x543188
mov r15d, dword [rsp + 0x30]
jmp 0x5433c8
mov edx, 3
mov rcx, rbx
lea r8d, [rdx - 2]
call fcn.0054c1b0
test eax, eax
je 0x543376
mov rbx, qword [rsp + 0xa8]
mov dword [rsp + 0x30], 1
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x543223
call fcn.00480d60
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x543231
call fcn.00480d60
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x54323f
call fcn.00480d60
mov rcx, rsi
call fcn.004819d0
mov rcx, r14
mov qword [rbx + 0x10], rax
call fcn.004819d0
mov rcx, r15
mov qword [rbx + 0x18], rax
call fcn.004819d0
cmp qword [rbx + 0x10], 0
mov qword [rbx + 0x20], rax
je 0x543276
cmp qword [rbx + 0x18], 0
je 0x543276
test rax, rax
jne 0x54327e
xor r15d, r15d
jmp 0x5433c8
mov rax, qword [rsp + 0xa0]
test rax, rax
je 0x54328e
mov dword [rax], r12d
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x5433c3
mov rax, qword [rsp + 0x68]
mov r15d, dword [rsp + 0x30]
mov dword [rcx], eax
jmp 0x5433c8
mov r13, qword [rsp + 0x38]
mov r15d, dword [rsp + 0x30]
jmp 0x5433c8
mov r13, qword [rsp + 0x38]
mov r15d, dword [rsp + 0x30]
jmp 0x5433c8
mov r13, qword [rsp + 0x38]
mov r15d, dword [rsp + 0x30]
jmp 0x5433c8
mov r13, qword [rsp + 0x38]
mov r15d, dword [rsp + 0x30]
jmp 0x5433c8
mov r13, qword [rsp + 0x38]
mov r15d, dword [rsp + 0x30]
jmp 0x5433c8
mov r13, qword [rsp + 0x38]
mov r15d, dword [rsp + 0x30]
jmp 0x5433c8
mov r13, qword [rsp + 0x38]
mov r15d, dword [rsp + 0x30]
jmp 0x5433c8
mov r13, qword [rsp + 0x38]
mov r15d, dword [rsp + 0x30]
jmp 0x5433c8
mov r13, qword [rsp + 0x38]
mov r15d, dword [rsp + 0x30]
jmp 0x5433c8
mov r13, qword [rsp + 0x38]
mov r15d, dword [rsp + 0x30]
jmp 0x5433c8
mov r13, qword [rsp + 0x38]
mov r15d, dword [rsp + 0x30]
jmp 0x5433c8
mov r13, qword [rsp + 0x38]
mov r15d, dword [rsp + 0x30]
jmp 0x5433c8
mov r13, qword [rsp + 0x38]
mov r15d, dword [rsp + 0x30]
jmp 0x5433c8
mov r13, qword [rsp + 0x38]
mov r15d, dword [rsp + 0x30]
jmp 0x5433c8
mov r15d, dword [rsp + 0x30]
jmp 0x5433c8
mov r15d, dword [rsp + 0x30]
jmp 0x5433c8
mov r15d, dword [rsp + 0x30]
jmp 0x5433c8
mov r15d, dword [rsp + 0x30]
jmp 0x5433c8
mov r15d, dword [rsp + 0x30]
jmp 0x5433c8
mov r15d, dword [rsp + 0x30]
jmp 0x5433c8
mov r15d, dword [rsp + 0x30]
jmp 0x5433c8
mov r15d, dword [rsp + 0x30]
jmp 0x5433c8
mov r15d, dword [rsp + 0x30]
jmp 0x5433c8
mov r15d, dword [rsp + 0x30]
jmp 0x5433c8
mov r15d, dword [rsp + 0x30]
jmp 0x5433c8
mov r15d, dword [rsp + 0x30]
mov rcx, r13
call fcn.004c70f0
mov rcx, r13
call fcn.004c6f50
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x5433ea
mov rcx, rax
call fcn.004e0c60
mov r13, qword [rsp + 0x158]
mov rsi, qword [rsp + 0x170]
mov eax, r15d
mov r15, qword [rsp + 0x148]
mov r14, qword [rsp + 0x150]
mov r12, qword [rsp + 0x160]
mov rdi, qword [rsp + 0x168]
mov rbp, qword [rsp + 0x178]
mov rbx, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x138]
call fcn.005555b0
add rsp, 0x188
ret