Function at 0x140171130
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r8
mov r14d, edx
mov r12, rcx
mov esi, 0x520
add rsi, qword [rcx + 0x18]
mov rcx, rsi
mov edx, 0x82af8e01
mov r8d, 0x282b2d72
mov r9d, 0x11c4075f
call fcn.1400abfa0
mov rbx, qword [0x1406126d8]
mov r15d, 0xfffffff5
test rbx, rbx
je 0x1401713e1
mov eax, 0xb2917202
add eax, dword [0x1405a4148]
mov dword [rbx + 0xc], eax
mov rdx, qword [r12 + 0x18]
movzx r8d, byte [rbx + 0x10]
movsxd rax, dword [0x1404cd928]
mov ecx, dword [0x1404cd924]
xor r8b, 1
mov byte [rdx + 0x6ed], r8b
cmp byte [rbx + 0x11], 0
je 0x14017130b
mov qword [rbp - 0x10], r12
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x18], rsi
lea rdx, [0x1404cd928]
mov r8, rax
not r8
mov r9, rdx
not r9
mov r10, rax
and r10, r9
and r9, r8
and r8, rdx
or r10, r8
xor rax, rdx
or r9, rax
not r9
lea rdx, [r10 + r9*2]
mov dword [rbp - 4], 0
mov rax, qword [rbx + 0x20]
mov qword [rbp - 0x20], rax
mov r8d, 0xb2917203
lea r9, [fcn.140171130]
lea r10d, [r9 + r9]
add r10d, 0x2ee0
nop word [rax + rax]
mov r11d, dword [0x1405a4148]
add r11d, r8d
xor r11d, r10d
not r11d
test r11d, r10d
jne 0x140171251
cmp dword [0x1405a4148], 0x4d6e8dfe
je 0x14017128d
lea eax, [r9 + r9]
add eax, 0x15a1
lea r11d, [r9 + r9]
add r11d, 0x15a0
not r11d
mov esi, r11d
and esi, 0xfffffffe
mov r15d, r11d
and r15d, eax
xor r11d, eax
xor eax, esi
and r15d, esi
xor eax, r15d
and r11d, r15d
or r11d, eax
cmp r11d, 0xffffffff
jne 0x140171230
jmp 0x140171245
mov r8d, dword [0x1405a3cc0]
lea r9d, [r8 + 0x8478330]
mov r10d, r9d
xor r10d, 1
and r9d, 1
lea r11d, [r10 + r9*2]
lea r9d, [r10 + r9*2]
add r9d, 0xf7b87cd0
mov dword [0x1405a3cc0], r9d
mov r12d, 0x847832f
sub r12d, r11d
and r12d, r8d
mov r10d, r8d
mov r8d, 0xb2917201
add r8d, dword [0x1405a4148]
not r10d
xor r8d, r10d
xor r8d, r9d
not r8d
and r8d, r10d
and r10d, r9d
or r12d, r10d
mov r9d, dword [0x1406127a0]
lea r10d, [r9 - 1]
imul r10d, r9d
test r10b, 1
jne 0x1401716fd
jmp 0x1401716f0
mov rax, qword [r12 + 0x18]
mov byte [rax + 0x6ed], 0
jmp 0x1401713e1
mov r13, rax
nop
lea rdx, [rcx + 0x10]
cmp dword [rcx + 0x20], r14d
cmovae r13, rcx
cmovae rdx, rcx
mov rcx, qword [rdx]
movzx edx, byte [0x140612621]
add dl, byte [rcx + 0x19]
movzx r8d, byte [0x1405a414c]
add r8b, 0x94
cmp dl, r8b
je 0x140171320
cmp byte [r13 + 0x19], 0
je 0x1401713fd
mov eax, 0xb2917202
add eax, dword [0x1405a4148]
cmp dword [rbp - 4], eax
mov r10, qword [rbp - 0x10]
jne 0x140171374
mov dword [rbp - 4], 0xfffffffd
mov rax, qword [r10 + 0x18]
mov byte [rax + 0x6ed], 0
cmp qword [0x1406127a8], 0
mov r8, qword [rbp - 0x28]
jne 0x1401713b6
mov ecx, 0x700
call fcn.14048512c
mov qword [rbp - 0x20], rax
mov rcx, rax
call fcn.1400958f0
mov rax, qword [rbp - 0x20]
mov qword [0x1406127a8], rax
mov r8, qword [rbp - 0x28]
mov r10, qword [rbp - 0x10]
mov rax, qword [0x1406127a8]
mov rax, qword [rax + 0x6f0]
mov r9d, dword [rbp - 4]
mov edx, dword [r10 + 0xc]
mov qword [rsp + 0x20], rax
mov rcx, rbx
call fcn.140161ec0
mov r15d, dword [rbp - 4]
mov rsi, qword [rbp - 0x18]
mov rcx, rsi
call fcn.14015edb0
mov eax, r15d
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp dword [r13 + 0x20], r14d
ja 0x140171359
cmp r13, rax
je 0x140171359
lea r15, [r13 + 0x30]
mov edx, dword [0x140612378]
add edx, dword [r13 + 0x28]
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov r8, r15
call qword [case.0x14016c073.0]
lea r14, [r13 + 0x28]
mov r8d, dword [r15]
mov edx, dword [r14]
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14016c073.0]
mov r8d, eax
mov rax, qword [rbp - 0x10]
mov r9, qword [rax + 0x18]
mov eax, 0xb2917203
add eax, dword [0x1405a4148]
lea rcx, [fcn.140171130]
add ecx, ecx
add ecx, 0x30a0
not ecx
mov edx, ecx
xor edx, eax
or ecx, eax
and ecx, edx
xor eax, ecx
not eax
test eax, ecx
jne 0x1401714f6
jmp 0x140171486
movzx ecx, word [0x1404cd930]
mov r10d, dword [0x1406127a0]
mov edx, dword [0x1405a4148]
mov eax, edx
xor eax, 0xb2917203
mov r11d, edx
and r11d, 0x32917203
add r11d, r11d
mov r15d, edx
xor r15d, eax
xor r15d, 0x45228404
and r15d, r11d
xor r15d, eax
and r11d, eax
lea r11d, [r15 + r11*2]
mov eax, r10d
sub eax, r11d
imul eax, r10d
mov r10d, edx
xor r10d, 0xb2917204
not edx
and edx, 0x4d6e8dfb
or edx, r10d
not edx
lea r10d, [r10 + rdx*2]
xor edx, edx
div r10d
test edx, edx
je 0x1401714ff
movzx eax, word [0x1404cd930]
jmp 0x140171486
xor eax, eax
test r12d, r12d
setne al
lea edx, [rax + 0x4d6a]
xor edx, 0xffffb295
lea eax, [rdx + rax*2]
sub ecx, esi
mov edx, ecx
not edx
xor ecx, eax
not eax
and eax, edx
or eax, ecx
mov ecx, eax
not ecx
mov edx, ecx
shr edx, 8
mov r10d, eax
and r10b, dl
or al, dl
and edx, ecx
not al
or al, r10b
mov ecx, edx
not cl
mov r10d, edx
xor r10b, al
mov r11d, ecx
and cl, al
not al
and r11b, al
or r11b, r10b
xor al, dl
or al, cl
not al
or al, cl
not al
mov ecx, eax
xor cl, r11b
or al, r11b
not al
or al, cl
movzx r10d, byte [0x140612621]
mov ecx, r10d
xor cl, 0xc1
not r10b
and r10b, 0x3e
or r10b, cl
not r10b
add r10b, r10b
add r10b, cl
add r10b, al
mov r11d, r10d
neg r11b
lea rax, [fcn.140171130]
lea ecx, [rax + rax]
add ecx, 0x3fc0
mov edx, ecx
not edx
and ecx, edx
add eax, eax
add eax, 0x3fc1
and edx, 0xfffffffe
xor edx, eax
or edx, ecx
cmp edx, 0xffffffff
jne 0x1401715d1
lea eax, [r10 + 0x3f]
mov byte [0x140612621], al
mov eax, dword [0x1406127a4]
cmp eax, 0x3f
jl 0x14017163a
lea rax, [fcn.140171130]
add eax, eax
add eax, 0x1980
mov ecx, eax
not ecx
mov edx, eax
and edx, ecx
mov esi, ecx
and esi, 0xfffffffe
or esi, edx
xor ecx, esi
or esi, eax
or esi, ecx
nop word cs:[rax + rax]
movzx eax, byte [0x1405a414c]
add al, r11b
mov cl, 0x5e
sub cl, al
movzx ecx, cl
mov eax, ecx
shl eax, 6
sub ecx, eax
add cl, 0xd
mov edx, r10d
shl dl, cl
mov eax, r10d
mov ecx, edx
shl al, cl
sub al, dl
mul dl
sub al, dl
mov byte [0x140612621], al
cmp esi, 0xffffffff
jne 0x140171600
jmp 0x1401715bc
test r8d, r8d
mov r10, qword [rbp - 0x10]
je 0x140171650
mov byte [r9 + 0x6ed], 0
jmp 0x1401716dc
movsxd rax, dword [r13 + 0x40]
mov rcx, qword [r9 + 0x370]
lea rax, [rax + rax*4]
shl rax, 5
mov edx, dword [rcx + rax + 0x24]
mov dword [r10 + 0xc], edx
mov dword [rbx + 8], edx
mov eax, dword [rcx + rax]
and eax, 8
mov ecx, dword [0x1405a4148]
mov edx, ecx
xor edx, 0xb2917202
not ecx
and ecx, 0x4d6e8dfd
or ecx, edx
not ecx
lea ecx, [rdx + rcx*2]
cmp eax, ecx
jne 0x1401716ae
mov rcx, qword [r10 + 0x18]
mov edx, dword [r10 + 0xc]
xor r8d, r8d
call fcn.1403a7230
test rax, rax
mov r10, qword [rbp - 0x10]
je 0x1401716e4
mov rax, qword [r10]
mov rax, qword [rax + 0x20]
lea r8, [rbp - 4]
mov rcx, r10
mov rdx, r14
call qword [case.0x14016c073.0]
test eax, eax
je 0x140171359
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x18]
mov byte [rax + 0x6ed], 0
xor r15d, r15d
jmp 0x1401713dd
mov dword [rbp - 4], 0xfffffffe
jmp 0x140171374
mov r9d, dword [0x1406127a4]
cmp r9d, 0x26
jl 0x140171727
mov r9d, 0xb2917258
nop word cs:[rax + rax]
mov eax, dword [0x1406127a4]
mov r10d, dword [0x1405a4148]
add r10d, r9d
cmp eax, r10d
jge 0x140171710
jmp 0x1401716f0
or r12d, r8d
xor r12d, 0xffffffff
je 0x140171734
xor esi, esi
jmp 0x140171740
xor r8d, r8d
mov esi, 0
test ecx, ecx
jg 0x14017175a
mov rax, qword [rbp - 0x20]
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x19], 0
mov r13, rax
jne 0x14017134e
jmp 0x14017131c
mov r9d, 0xb291720e
xor esi, esi
jmp 0x1401717a5
mov eax, r8d
xor eax, 0xfffffffe
and r8d, 0x7ffffffe
lea eax, [rax + r8*2]
mov r8d, dword [0x1405a4148]
mov r10d, r8d
xor r10d, 0xb2917202
and r8d, 0x32917202
lea r8d, [r10 + r8*2]
sub r8d, eax
cmp r8d, ecx
jge 0x140171740
movsxd r10, r8d
add r10, rdx
nop dword [rax + rax]
mov r11d, dword [0x1406127a0]
lea r15d, [r11 - 1]
imul r15d, r11d
test r15b, 1
jne 0x1401717b0
movzx r10d, word [r10]
mov r11d, esi
not r11d
mov r13d, r11d
and r13d, esi
xor r13d, r11d
mov r15d, r10d
not r15d
mov r11d, r15d
xor r11d, r13d
and r11d, r13d
mov r13d, dword [0x1406127a0]
lea eax, [r13 + 1]
imul eax, r13d
test al, 1
jne 0x140171820
nop word [rax + rax]
mov eax, dword [0x1406127a0]
mov r13d, 0x4270d951
sub r13d, eax
imul r13d, eax
test r13b, 1
je 0x140171850
nop dword [rax]
mov eax, dword [0x1406127a0]
lea r13d, [rax - 1]
imul r13d, eax
and r13d, 1
mov eax, dword [0x1405a4148]
mov edi, eax
xor edi, 0xb2917202
and eax, 0x32917202
lea eax, [rdi + rax*2]
cmp r13d, eax
jne 0x140171820
jmp 0x140171800
xor r15d, esi
xor esi, r10d
and esi, r10d
or esi, r15d
not esi
or r11d, esi
mov esi, r11d
neg r8d
nop word [rax + rax]
mov eax, dword [0x1406127a4]
cmp eax, 0x50
jg 0x140171899
mov eax, dword [0x1406127a0]
mov r10d, eax
not r10d
add r10d, 2
imul r10d, eax
test r10b, 1
je 0x140171770
mov eax, dword [0x1406127a4]
mov r10d, dword [0x1405a4148]
add r10d, r9d
cmp eax, r10d
jge 0x140171870
jmp 0x14017187b