Function at 0x1401ec0b0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r14
lea rbp, [rsp - 0x78]
mov eax, 0x178
call fcn.140215a20
sub rsp, rax
mov rax, qword [0x140320c20]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0xe0]
mov r13, r8
mov r14, qword [rbp + 0xf8]
xor r8d, r8d
shr r13, 3
mov rbx, rdx
mov rdx, qword [rbp + 0xd0]
mov rsi, r9
mov qword [rbp - 0x38], rax
mov r12d, r8d
mov rax, qword [rbp + 0xf0]
mov qword [rbp - 0x40], rax
lea eax, [r13 - 0x14]
mov qword [rbp - 0x50], rcx
mov rcx, qword [rbp + 0xe8]
mov qword [rbp - 0x70], r9
mov qword [rsp + 0x78], rdx
mov qword [rbp - 0x48], rcx
mov qword [rsp + 0x58], r14
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x40], r8d
mov qword [rbp - 0x60], 2
test eax, 0xfffffff3
jne 0x1401ec8bd
cmp r13d, 0x18
je 0x1401ec8bd
mov qword [rsp + 0x168], r15
test r9, r9
jne 0x1401ec17a
call fcn.140127e50
mov rdx, qword [rsp + 0x78]
mov rsi, rax
mov qword [rbp - 0x70], rax
xor r8d, r8d
mov rcx, qword [rbp + 0xd8]
mov eax, 0x200
cmp rbx, rax
cmovb rbx, rax
lea rax, [rbx + 0x3f]
and rax, 0xffffffffffffffc0
mov qword [rbp - 0x80], rax
test rcx, rcx
je 0x1401ec1ad
movsxd rax, r13d
cmp rcx, rax
cmovb rdx, r8
mov qword [rsp + 0x78], rdx
movsxd r15, r13d
cmp rcx, r15
cmova rcx, r15
mov qword [rbp + 0xd8], rcx
test rdx, rdx
je 0x1401ec1cf
mov r8, rcx
lea rcx, [rbp + 0x10]
call fcn.140218780
call fcn.1401b6e60
mov qword [rsp + 0x70], rax
test rax, rax
je 0x1401ec470
mov qword [rsp + 0x170], rdi
call fcn.14015c3c0
mov qword [rsp + 0x38], rax
mov rdi, rax
test rax, rax
je 0x1401ec45e
mov rcx, rax
call fcn.14015c440
mov rcx, rdi
call fcn.14015c330
mov r12, qword [rsp + 0x38]
mov rdi, rax
mov rcx, r12
call fcn.14015c330
mov rcx, r12
mov qword [rsp + 0x68], rax
call fcn.14015c330
mov rcx, r12
mov qword [rbp - 0x78], rax
call fcn.14015c330
mov rcx, r12
mov qword [rsp + 0x48], rax
call fcn.14015c330
mov rcx, r12
mov qword [rsp + 0x50], rax
call fcn.14015c330
mov rcx, r12
mov qword [rbp - 0x58], rax
call fcn.14015c330
mov rcx, r12
mov qword [rsp + 0x60], rax
call fcn.14015c330
mov qword [rbp - 0x68], rax
mov rbx, rax
test rax, rax
je 0x1401ec445
call fcn.140123420
mov r8, qword [rbp - 0x80]
mov rdx, rax
dec r8d
mov rcx, rbx
call fcn.1401a40f0
test eax, eax
je 0x1401ec445
nop dword [rax + rax]
mov ebx, dword [rsp + 0x40]
xor edx, edx
mov r8d, ebx
mov rcx, r14
call fcn.1401f8710
inc ebx
mov dword [rsp + 0x40], ebx
test eax, eax
je 0x1401ec445
cmp qword [rbp + 0xd8], 0
je 0x1401ec2de
cmp qword [rsp + 0x78], 0
je 0x1401ec2de
xor eax, eax
mov ebx, eax
mov qword [rbp + 0xd8], rax
jmp 0x1401ec2f7
mov edx, r13d
lea rcx, [rbp + 0x10]
call fcn.14013cca0
test eax, eax
jle 0x1401ec445
mov ebx, 1
mov r8, r15
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x10]
call fcn.140218780
mov r8, r15
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x30]
call fcn.140218780
lea rax, [r15 - 1]
test rax, rax
js 0x1401ec32d
add byte [rbp + rax - 0x10], 1
jne 0x1401ec32d
sub rax, 1
jns 0x1401ec320
mov qword [rsp + 0x28], 0
lea r8, [rbp - 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
mov rdx, r15
lea rcx, [rbp + 0x10]
call fcn.140127510
test eax, eax
je 0x1401ec445
mov qword [rsp + 0x28], 0
lea r8, [rbp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
mov rdx, r15
lea rcx, [rbp - 0x10]
call fcn.140127510
test eax, eax
je 0x1401ec445
xor eax, eax
mov ecx, eax
test r13d, r13d
jle 0x1401ec3e5
cmp r13d, 0x20
jb 0x1401ec3e5
mov edx, r13d
and edx, 0x8000001f
jge 0x1401ec3a0
dec edx
or edx, 0xffffffe0
inc edx
mov eax, r13d
sub eax, edx
movsxd rdx, eax
nop dword [rax + rax]
movdqu xmm0, xmmword [rbp + rcx - 0x30]
movdqu xmm1, xmmword [rbp + rcx + 0x30]
pxor xmm1, xmm0
movdqu xmmword [rbp + rcx - 0x30], xmm1
movdqu xmm0, xmmword [rbp + rcx - 0x20]
movdqu xmm1, xmmword [rbp + rcx + 0x40]
pxor xmm1, xmm0
movdqu xmmword [rbp + rcx - 0x20], xmm1
add rcx, 0x20
cmp rcx, rdx
jl 0x1401ec3b0
cmp rcx, r15
jge 0x1401ec401
nop word [rax + rax]
movzx eax, byte [rbp + rcx + 0x30]
xor byte [rbp + rcx - 0x30], al
inc rcx
cmp rcx, r15
jl 0x1401ec3f0
or byte [rbp - 0x30], 0x80
lea rcx, [rbp - 0x30]
mov r8, qword [rsp + 0x48]
mov edx, r13d
or byte [rbp + r15 - 0x31], 1
call fcn.1401227f0
test rax, rax
je 0x1401ec445
mov rcx, qword [rsp + 0x48]
mov r9d, ebx
mov r8, r12
mov qword [rsp + 0x20], r14
mov edx, reloc.WLDAP32.dll_Ordinal_50
call fcn.1401f8a70
test eax, eax
jg 0x1401ec480
je 0x1401ec2a0
mov r12d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call fcn.14015c270
mov rcx, qword [rsp + 0x38]
call fcn.14015c2f0
mov rcx, qword [rsp + 0x70]
call fcn.1401b6e10
mov rdi, qword [rsp + 0x170]
mov r15, qword [rsp + 0x168]
mov eax, r12d
jmp 0x1401ec8bf
xor r8d, r8d
mov rcx, r14
lea edx, [r8 + 2]
call fcn.1401f8710
test eax, eax
je 0x1401ec445
xor r8d, r8d
mov rcx, r14
lea edx, [r8 + 3]
call fcn.1401f8710
test eax, eax
je 0x1401ec445
mov rcx, qword [rbp - 0x80]
lea rsi, [r15 - 1]
mov rbx, qword [rbp - 0x78]
dec rcx
movabs rax, 0xcccccccccccccccd
xor r12d, r12d
mul rcx
mov r14, rdx
shr r14, 7
nop dword [rax]
test r12d, r12d
je 0x1401ec4ec
mov rcx, qword [rsp + 0x58]
mov r8d, r12d
xor edx, edx
call fcn.1401f8710
test eax, eax
je 0x1401ec445
xor edx, edx
mov rcx, rbx
call fcn.140123340
xor ecx, ecx
mov ebx, ecx
test r14d, r14d
js 0x1401ec5a4
mov rax, rsi
test rsi, rsi
js 0x1401ec51d
nop dword [rax + rax]
add byte [rbp + rax - 0x10], 1
jne 0x1401ec51d
sub rax, 1
jns 0x1401ec510
mov rax, qword [rbp - 0x70]
lea r8, [rbp - 0x30]
mov qword [rsp + 0x28], rcx
xor r9d, r9d
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov rdx, r15
call fcn.140127510
test eax, eax
je 0x1401ec445
mov r8, rdi
lea rcx, [rbp - 0x30]
mov edx, r13d
call fcn.1401227f0
test rax, rax
je 0x1401ec445
lea r8d, [r13*8]
mov rdx, rdi
imul r8d, ebx
mov rcx, rdi
call fcn.1401a40f0
test eax, eax
je 0x1401ec445
mov rdx, qword [rbp - 0x78]
mov r8, rdi
mov rcx, rdx
call fcn.14015c6e0
test eax, eax
je 0x1401ec445
inc ebx
mov ecx, 0
cmp ebx, r14d
jle 0x1401ec503
mov rdx, qword [rbp - 0x80]
mov rbx, qword [rbp - 0x78]
dec edx
mov rcx, rbx
call fcn.140123010
test eax, eax
je 0x1401ec445
mov rcx, qword [rsp + 0x50]
mov rdx, rbx
call fcn.140122e20
test rax, rax
je 0x1401ec445
mov rdx, qword [rsp + 0x50]
mov r8, qword [rbp - 0x68]
mov rcx, rdx
call fcn.14015c6e0
test eax, eax
je 0x1401ec445
mov rdx, qword [rsp + 0x48]
mov rcx, rdi
call fcn.1401a42b0
test eax, eax
je 0x1401ec445
mov rax, qword [rsp + 0x38]
mov r9, rdi
mov r8, qword [rsp + 0x50]
xor ecx, ecx
mov rdx, qword [rbp - 0x58]
mov qword [rsp + 0x20], rax
call fcn.1401b66e0
test eax, eax
je 0x1401ec445
call fcn.140123420
mov rdx, qword [rbp - 0x58]
mov r8, rax
mov rcx, rdi
call fcn.14015c790
test eax, eax
je 0x1401ec445
mov rdx, qword [rsp + 0x50]
mov r8, rdi
mov rcx, qword [rsp + 0x60]
call fcn.14015c790
test eax, eax
je 0x1401ec445
mov rdx, qword [rbp - 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140122a40
test eax, eax
js 0x1401ec69c
mov rax, qword [rsp + 0x58]
mov r9d, 1
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x31]
call fcn.1401f8a70
test eax, eax
jg 0x1401ec6bf
jne 0x1401ec445
inc r12d
cmp r12d, 0x1000
jl 0x1401ec4d0
mov rsi, qword [rbp - 0x70]
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x38]
jmp 0x1401ec2a0
mov rbx, qword [rsp + 0x58]
mov edx, 2
mov rcx, rbx
lea r8d, [rdx - 1]
call fcn.1401f8710
test eax, eax
je 0x1401ec445
call fcn.140123420
mov r13, qword [rsp + 0x60]
mov r8, rax
mov r14, qword [rbp - 0x68]
mov rdx, r13
mov rcx, r14
call fcn.14015c790
test eax, eax
je 0x1401ec445
mov rsi, qword [rsp + 0x38]
mov r8, r14
mov r9, qword [rsp + 0x48]
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call fcn.1401b66e0
test eax, eax
je 0x1401ec445
mov edx, 2
mov rcx, r14
call fcn.140123340
test eax, eax
je 0x1401ec445
mov rcx, qword [rsp + 0x70]
mov r8, rsi
mov rdx, r13
call fcn.1401b6ee0
test eax, eax
je 0x1401ec445
mov rax, qword [rsp + 0x70]
mov r9, r13
mov rcx, qword [rsp + 0x68]
mov r8, rdi
mov qword [rsp + 0x28], rax
mov rdx, r14
mov qword [rsp + 0x20], rsi
call fcn.1401b4e70
test eax, eax
je 0x1401ec445
nop dword [rax]
mov rcx, qword [rsp + 0x68]
cmp dword [rcx + 8], 1
jne 0x1401ec7e3
mov rax, qword [rcx]
cmp qword [rax], 1
jne 0x1401ec7e3
cmp dword [rcx + 0x10], 0
jne 0x1401ec7e3
call fcn.140123420
mov r8, rax
mov rdx, r14
mov rcx, r14
call fcn.14015c6e0
test eax, eax
je 0x1401ec445
mov rax, qword [rsp + 0x70]
mov r9, r13
mov rcx, qword [rsp + 0x68]
mov r8, rdi
inc dword [rbp - 0x60]
mov rdx, r14
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call fcn.1401b4e70
test eax, eax
jne 0x1401ec780
jmp 0x1401ec445
mov edx, 3
mov rcx, rbx
lea r8d, [rdx - 2]
call fcn.1401f8710
test eax, eax
je 0x1401ec445
mov dword [rsp + 0x30], 1
nop dword [rax]
nop dword [rax + rax]
mov rbx, qword [rbp - 0x50]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1401ec822
call fcn.140122f70
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401ec830
call fcn.140122f70
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1401ec83e
call fcn.140122f70
mov rcx, r13
call fcn.140122f00
mov rcx, qword [rsp + 0x48]
mov qword [rbx + 0x10], rax
call fcn.140122f00
mov rcx, qword [rsp + 0x68]
mov qword [rbx + 0x18], rax
call fcn.140122f00
cmp qword [rbx + 0x10], 0
mov qword [rbx + 0x20], rax
je 0x1401ec8b5
cmp qword [rbx + 0x18], 0
je 0x1401ec8b5
test rax, rax
je 0x1401ec8b5
mov rax, qword [rbp - 0x48]
test rax, rax
je 0x1401ec885
mov dword [rax], r12d
mov rdx, qword [rbp - 0x40]
test rdx, rdx
je 0x1401ec894
mov rax, qword [rbp - 0x60]
mov dword [rdx], eax
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x1401ec445
mov r8, r15
lea rdx, [rbp + 0x10]
mov rcx, rax
call fcn.140218780
jmp 0x1401ec445
xor r12d, r12d
jmp 0x1401ec44a
xor eax, eax
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140215090
add rsp, 0x178
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret