Function at 0x140052640
Capabilities:
Access peb ldr_data
Encode data using xor
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rbp
push r12
push r13
lea rbp, [rsp - 0x47]
sub rsp, 0x100
mov rax, qword [0x140181020]
xor rax, rsp
mov qword [rbp - 9], rax
mov rax, qword gs:[0x60]
mov r13d, edx
mov r12, rcx
cmp rcx, qword [rax + 0x10]
jbe 0x14005267c
xor eax, eax
jmp 0x140052d37
mov qword [rsp + 0x128], rbx
mov ebx, dword [0x140181030]
mov qword [rsp + 0x130], rsi
xor esi, esi
mov qword [rsp + 0x138], rdi
mov qword [rsp + 0xf8], r14
mov qword [rsp + 0xf0], r15
mov r15d, 0x5a4d
lea edi, [rsi + 4]
movaps xmmword [rsp + 0xe0], xmm6
lea r14d, [rsi + 0x1f]
movaps xmmword [rsp + 0xd0], xmm7
movaps xmmword [rsp + 0xc0], xmm8
mov qword [rbp - 0x41], rsi
mov qword [rbp - 0x31], 0x1b
cmp byte [rcx], sil
je 0x140052710
mov dword [rsp + 0x28], 0x40
lea r9, [rbp - 0x31]
xor r8d, r8d
mov dword [rsp + 0x20], 0x3000
lea rdx, [rbp - 0x41]
lea rcx, [rsi - 1]
call qword [r12 + 8]
mov rax, qword [rbp - 0x41]
jmp 0x1400529bd
cmp byte [0x140166b2b], sil
movups xmm0, xmmword [str.lRNIK_]
mov eax, dword [0x140166b28]
mov dword [rbp - 0x49], eax
movups xmmword [rbp - 0x59], xmm0
je 0x1400528b2
mov r8d, esi
cmp ebx, 2
jl 0x140052877
movdqa xmm0, xmmword [0x14016e120]
lea rcx, [rbp - 0x55]
movdqa xmm5, xmmword [0x14016e0d0]
movdqa xmm4, xmmword [0x14016e160]
movdqa xmm7, xmmword [str.1111]
movdqa xmmword [rbp - 0x69], xmm0
mov edx, dword [rbp - 0x69]
movd xmm6, edi
movd xmm8, r14d
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add r8d, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x14016e0f0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14016e0f0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x10
jl 0x140052772
cmp r8d, 0x14
jge 0x1400528b2
movsxd rax, r8d
lea r9, [rbp - 0x59]
add r9, rax
mov eax, 0x5397829d
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x3a
xor byte [r9 - 1], al
cmp r8d, 0x14
jl 0x140052881
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov rdi, qword [rax]
cmp qword [rdi + 0x60], rsi
je 0x14005298e
mov r11, qword [rdi + 0x30]
mov rdi, qword [rdi]
test r11, r11
je 0x140052984
cmp word [r11], r15w
jne 0x14005298e
movsxd rax, dword [r11 + 0x3c]
cmp dword [rax + r11], 0x4550
jne 0x14005298e
mov ecx, dword [rax + r11 + 0x88]
test ecx, ecx
je 0x14005298e
mov r14d, dword [r11 + rcx + 0x1c]
lea rax, [r11 + rcx]
mov r9d, dword [rax + 0x20]
add r14, r11
mov r15d, dword [rax + 0x24]
add r9, r11
mov ebx, dword [rax + 0x18]
add r15, r11
mov r10d, esi
test ebx, ebx
je 0x14005297e
mov ecx, dword [r9]
xor r8b, r8b
add rcx, r11
cmp byte [rcx], sil
je 0x140052972
lea rdx, [rbp - 0x59]
sub rdx, rcx
movzx eax, byte [rcx + rdx]
test al, al
je 0x14005296d
cmp byte [rcx], al
jne 0x140052972
inc rcx
mov r8b, 1
cmp byte [rcx], sil
jne 0x140052945
movsxd rax, r10d
movzx ecx, word [r15 + rax*2]
mov eax, dword [r14 + rcx*4]
add rax, r11
jmp 0x140052991
test r8b, r8b
jne 0x14005295c
inc r10d
add r9, 4
cmp r10d, ebx
jb 0x140052930
mov r15d, 0x5a4d
cmp qword [rdi + 0x60], rsi
jne 0x1400528d0
mov rax, rsi
mov edx, 0x1b
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rdx + 0x25]
call rax
mov ebx, dword [0x140181030]
mov edi, 4
mov qword [rbp - 0x41], rax
mov r15d, 0x5a4d
lea r14d, [rdi + 0x1b]
lea rcx, [rbp - 0x29]
mov dword [rbp - 0x39], esi
cmp rax, rcx
jbe 0x140052a00
lea rcx, [rbp - 0xe]
cmp rax, rcx
jae 0x140052a00
mov dword [rax + 0x17], 0x841f0fc3
mov dword [rax + 0x13], 0x2ecdc305
mov dword [rax + 0xf], 0xf037501
mov dword [rax + 0xb], 0x7ffe0308
mov dword [rax + 7], 0x2504f600
mov word [rax + 5], si
jmp 0x140052a29
mov dword [rax + 5], 0xf6000000
mov dword [rax + 9], 0x3082504
mov dword [rax + 0xd], 0x75017ffe
mov dword [rax + 0x11], 0xc3050f03
mov dword [rax + 0x15], 0xfc32ecd
mov word [rax + 0x19], 0x841f
mov byte [rax + 4], r13b
mov dword [rax], 0xb8d18b4c
cmp byte [r12], sil
je 0x140052a61
lea rax, [rbp - 0x39]
mov r9d, 0x10
lea r8, [rbp - 0x31]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x41]
mov rcx, 0xffffffffffffffff
call qword [r12 + 0x18]
jmp 0x140052cf2
cmp byte [0x140166b15], sil
mov eax, dword [0x140166b10]
movups xmm0, xmmword [0x140166b00]
mov dword [rbp - 0x79], eax
movzx eax, word [0x140166b14]
movups xmmword [rsp + 0x30], xmm0
mov word [rbp - 0x75], ax
je 0x140052c11
mov r8d, esi
cmp ebx, 2
jl 0x140052bd5
movdqa xmm0, xmmword [0x14016e120]
lea rcx, [rsp + 0x34]
movdqa xmm5, xmmword [0x14016e0d0]
movdqa xmm4, xmmword [0x14016e160]
movdqa xmm7, xmmword [str.1111]
movdqa xmmword [rbp - 0x69], xmm0
mov edx, dword [rbp - 0x69]
movd xmm6, edi
movd xmm8, r14d
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add r8d, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x14016e0f0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14016e0f0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x10
jl 0x140052ad0
cmp r8d, 0x16
jge 0x140052c11
movsxd rax, r8d
lea r9, [rsp + 0x30]
add r9, rax
mov eax, 0x5397829d
lea r9, [r9 + 1]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x3a
xor byte [r9 - 1], al
cmp r8d, 0x16
jl 0x140052be0
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov rdi, qword [rax]
cmp qword [rdi + 0x60], rsi
je 0x140052cde
nop
mov r11, qword [rdi + 0x30]
mov rdi, qword [rdi]
test r11, r11
je 0x140052d69
cmp word [r11], r15w
jne 0x140052cde
movsxd rax, dword [r11 + 0x3c]
cmp dword [rax + r11], 0x4550
jne 0x140052cde
mov ecx, dword [rax + r11 + 0x88]
test ecx, ecx
je 0x140052cde
mov r14d, dword [r11 + rcx + 0x1c]
lea rax, [r11 + rcx]
mov r9d, dword [rax + 0x20]
add r14, r11
mov r15d, dword [rax + 0x24]
add r9, r11
mov ebx, dword [rax + 0x18]
add r15, r11
mov r10d, esi
test ebx, ebx
je 0x140052d69
mov eax, dword [r9]
xor r8b, r8b
add rax, r11
cmp byte [rax], sil
je 0x140052d59
lea rdx, [rsp + 0x30]
sub rdx, rax
nop word [rax + rax]
movzx ecx, byte [rax + rdx]
test cl, cl
je 0x140052d50
cmp byte [rax], cl
jne 0x140052d59
inc rax
mov r8b, 1
cmp byte [rax], sil
jne 0x140052cb0
movsxd rax, r10d
movzx ecx, word [r15 + rax*2]
mov esi, dword [r14 + rcx*4]
add rsi, r11
mov rdx, qword [rbp - 0x31]
lea r9, [rbp - 0x39]
mov rcx, qword [rbp - 0x41]
mov r8d, 0x10
call rsi
mov rax, qword [rbp - 0x41]
movaps xmm8, xmmword [rsp + 0xc0]
movaps xmm7, xmmword [rsp + 0xd0]
movaps xmm6, xmmword [rsp + 0xe0]
mov r15, qword [rsp + 0xf0]
mov r14, qword [rsp + 0xf8]
mov rdi, qword [rsp + 0x138]
mov rsi, qword [rsp + 0x130]
mov rbx, qword [rsp + 0x128]
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.14012f610
add rsp, 0x100
pop r13
pop r12
pop rbp
ret
test r8b, r8b
jne 0x140052ccf
inc r10d
add r9, 4
cmp r10d, ebx
jb 0x140052c90
cmp qword [rdi + 0x60], rsi
je 0x140052cde
mov r15d, 0x5a4d
jmp 0x140052c30