Function at 0x180056d60
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword gs:[0x60]
xor esi, esi
movaps xmmword [rsp + 0x40], xmm6
mov r14, rcx
mov rbp, qword [rax + 0x10]
movsxd rax, dword [rbp + 0x3c]
mov r12d, dword [rax + rbp + 0x50]
test r12d, r12d
jle 0x180056fb3
mov r13d, dword [0x18010b088]
lea rdi, [rbp + 3]
movzx eax, byte [rdi - 3]
sub al, 0x48
test al, 0xfb
jne 0x180056fa5
cmp byte [rdi - 2], 0x8d
jne 0x180056fa5
mov eax, dword [rdi]
add eax, 7
movsxd r15, esi
movsxd rbx, eax
mov rax, qword gs:[0x60]
add rbx, r15
add rbx, rbp
mov rdx, qword [rax + 0x10]
cmp rbx, rdx
jbe 0x180056fa5
movsxd rax, dword [rdx + 0x3c]
mov ecx, dword [rax + rdx + 0x50]
add rcx, rdx
cmp rbx, rcx
jae 0x180056fa5
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.180026450
cmp word [r14 + 0x1a], 0
je 0x180056f42
xor ecx, ecx
cmp r13d, 2
jl 0x180056f09
movdqa xmm2, xmmword [0x1800f9b20]
mov ecx, 8
movdqa xmm3, xmmword [0x1800f9b40]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x1800f9d80]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800f9b90]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [r14]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
paddw xmm2, xmmword [0x1800f9c90]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
movq qword [r14], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800f9b90]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [r14 + 8]
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [0x1800f9c90]
xorps xmm2, xmm0
movq qword [r14 + 8], xmm2
movsxd rax, ecx
lea r8, [r14 + rax*2]
mov eax, 0x4d4873ed
lea r8, [r8 + 2]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub ax, dx
movzx eax, ax
imul edx, eax, 0x35
add dx, cx
inc ecx
xor word [r8 - 2], dx
cmp ecx, 0xe
jl 0x180056f10
mov rax, r14
sub rbx, r14
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + rbx]
sub edx, ecx
jne 0x180056f63
add rax, 2
test ecx, ecx
jne 0x180056f50
test edx, edx
mov rdx, qword [rsp + 0x38]
je 0x180056fd8
cmp rdx, 7
jbe 0x180056fa5
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180056fa0
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005701a
call fcn.1800b31bc
inc esi
inc rdi
cmp esi, r12d
jl 0x180056db0
xor eax, eax
movaps xmm6, xmmword [rsp + 0x40]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rbx, [r15 + rbp]
cmp rdx, 7
jbe 0x180057015
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180057010
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005701a
call fcn.1800b31bc
mov rax, rbx
jmp 0x180056fb5
call fcn.1800b9e6c
int3