Function at 0x10007f3a4
Capabilities:
Allocate or change rwx memory
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x1004946a0]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x78], rdx
lea r11, [0x100000000]
mov qword [rsp + 0x90], rcx
lea rax, [0x100000000]
lea r12, [rcx + 0x18]
mov r14, qword [r12]
mov edx, dword [r14 + 1]
mov ebp, dword [r14 + 5]
mov qword [rsp + 0x88], r12
mov ecx, 0xfffffff
and rdx, rcx
and rbp, rcx
add rbp, rax
mov eax, dword [0x1002f3aa4]
lea rsi, [rax + rdx - 1]
mov qword [rsp + 0xa0], rbp
mov rcx, rax
mov rax, rsi
xor edx, edx
div rcx
mov eax, dword [0x1002f3aa4]
sub rsi, rdx
xor r15d, r15d
mov r10d, dword [0x10005e244]
mov eax, dword [0x1002f3aa4]
mov eax, dword [0x10005e244]
cmp eax, r15d
je 0x10007f4ea
mov rax, r15
mov r8, r15
mov edi, dword [0x10005e244]
add edi, 0xffffffff
add rdi, 1
mov r9, rdi
cmp rdi, r15
je 0x10007f4a2
mov rcx, qword [0x100495210]
imul rcx, rcx, 0x343fd
shl rax, 0x10
add rcx, 0x269ec3
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
shr r9, 0x10
jne 0x10007f476
mov qword [0x100495210], rcx
xor edx, edx
div rdi
cmp r10, r15
jbe 0x10007f4de
mov eax, 0x3bd7
add r8, 1
mov ecx, 0xffffc428
lock cmpxchg dword [r11 + rdx*4 + 0x478cb0], ecx
je 0x10007f76b
lea rax, [rdx + 1]
mov ecx, dword [0x10005e244]
xor edx, edx
div rcx
cmp r8, r10
jb 0x10007f4ac
mov rbx, r15
cmp rbx, r15
jne 0x10007f61b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, r15
mov r13d, eax
mov rax, r15
add rdi, 1
mov rcx, qword [0x10047b438]
mov r8, rcx
mov r9, rcx
cmp rcx, r15
je 0x10007f542
mov rcx, qword [0x100495210]
imul rcx, rcx, 0x343fd
shl rax, 0x10
add rcx, 0x269ec3
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
shr r9, 0x10
jne 0x10007f516
mov qword [0x100495210], rcx
xor edx, edx
mov r9d, 0x40
div r8
mov r8d, 0x3000
mov rcx, rdx
shl rcx, 0x10
mov rdx, rsi
add rcx, qword [0x100493ee0]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
cmp rax, r15
je 0x10007f5af
mov rcx, rax
mov qword [rsp + 0x28], r15
mov r8d, esi
mov rdx, rax
lea r9, [0x1003c433c]
or rcx, 3
mov qword [rsp + 0x20], r15
call qword [sym.imp.ntdll.dll_RtlInstallFunctionTableCallback]
movzx edx, al
cmp edx, r15d
jne 0x10007f5c4
mov rcx, rbx
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp rdi, 0x11
jb 0x10007f4f6
mov rbx, r15
cmp rbx, 0x10000
jb 0x10007f5d2
test bl, 3
je 0x10007f5f8
cmp rbx, r15
je 0x10007f5f5
mov rcx, rbx
or rcx, 3
call qword [sym.imp.ntdll.dll_RtlDeleteFunctionTable]
mov rcx, rbx
mov r8d, 0x8000
xor edx, edx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbx, r15
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rbx, r15
lea r11, [0x100000000]
je 0x10007f438
mov rdi, rbx
mov rcx, rsi
xor eax, eax
rep stosb byte [rdi], al
mov eax, 0xb05eb318
mov rax, r15
add qword [r12], 9
mov esi, ebp
lea r13, [0x100000000]
mov r14d, dword [r14 + 1]
and r14d, 0xfffffff
mov edi, dword [0x1002f3aa4]
mov qword [rsp + 0x98], r14
sub rdi, r14
add rdi, 1
sub esi, r13d
mov dword [rsp + 0x34], esi
mov r8, rdi
cmp rdi, r15
je 0x10007f693
mov rcx, qword [0x100495210]
imul rcx, rcx, 0x343fd
shl rax, 0x10
add rcx, 0x269ec3
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
shr r8, 0x10
jne 0x10007f667
mov qword [0x100495210], rcx
xor edx, edx
div rdi
mov ecx, esi
add rbx, rdx
mov rdx, r14
mov qword [rsp + 0x70], rbx
mov r8, rbx
mov eax, 0xd32cf6ef
mov dil, r15b
lea rcx, [rsp + 0x80]
mov rdx, qword [r14 + rbp]
mov qword [rsp + 0x80], rdx
mov eax, 0x88b10158
mov r9d, dword [rsp + 0x84]
mov eax, 0xfffffff
mov rcx, r13
mov r10, qword [rsp + 0x80]
and r10, rax
and r9, rax
add r10, r13
mov rax, qword [0x1003f4900]
sub rcx, rax
mov qword [rsp + 0x48], r15
mov r15d, 4
mov qword [rsp + 0x58], rcx
jne 0x10007f782
xor r11d, r11d
test r9, r9
je 0x10007fa4e
mov edx, dword [rsp + 0x4c]
mov r8d, dword [rsp + 0x48]
movzx ecx, byte [r11 + r10]
add r11, 1
add ecx, 0x65c64b23
add r8d, ecx
add ecx, edx
mov eax, ecx
imul eax, eax, 0x39e9
rol eax, 3
ror ecx, 3
xor eax, ecx
imul rax, rax, 0x65c64b23
mov qword [rsp + 0x38], rax
shr rax, 0x20
mov edx, dword [rsp + 0x38]
add edx, eax
add r8d, edx
cmp r11, r9
jb 0x10007f71b
mov dword [rsp + 0x4c], edx
mov dword [rsp + 0x48], r8d
jmp 0x10007fa4e
mov ecx, dword [0x1002f3aa4]
imul rcx, rdx
lea rbx, [rcx + r11 + 0x425000]
jmp 0x10007f4e1
movsxd rcx, dword [0x10000003c]
lea rax, [r10 + r9]
mov r8d, dword [rcx + r13 + 0xb0]
mov rbx, 0xfffffffffffff000
add r8, r13
mov ecx, dword [rcx + r13 + 0xb4]
mov qword [rsp + 0x68], rax
mov eax, r10d
sub eax, r13d
mov esi, eax
mov r11d, eax
add rax, r9
and r11, rbx
mov r13, rax
and r13, rbx
sub rsi, r11
sub rax, r13
add rcx, r8
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x50], rax
jmp 0x10007f7e7
mov eax, dword [r8]
cmp rax, r11
jae 0x10007f7ec
mov eax, dword [r8 + 4]
add r8, rax
cmp r8, rcx
jne 0x10007f7d8
xor ebx, ebx
cmp r8, rcx
je 0x10007f826
mov eax, dword [r8]
cmp rax, r11
jne 0x10007f826
mov ecx, dword [r8 + 4]
sub rcx, 8
shr rcx, 1
je 0x10007f821
mov ax, word [r8 + rbx*2 + 8]
and eax, 0xfff
cmp rax, rsi
jae 0x10007f821
add rbx, 1
cmp rbx, rcx
jne 0x10007f808
mov rcx, qword [rsp + 0x38]
lea rbp, [0x100000000]
mov edx, dword [rsp + 0x4c]
mov r9d, dword [rsp + 0x48]
mov r14, qword [rsp + 0x58]
cmp r8, rcx
je 0x10007f9d2
mov eax, dword [r8]
cmp rax, r13
ja 0x10007f9d2
mov edi, dword [r8 + 4]
lea rax, [rdi - 8]
shr rax, 1
cmp rbx, rax
jne 0x10007f87c
add r8, rdi
cmp r8, rcx
je 0x10007f9d2
mov eax, dword [r8]
cmp rax, r13
ja 0x10007f9d2
xor ebx, ebx
jmp 0x10007f850
mov eax, dword [r8]
cmp rax, r13
jne 0x10007f89a
mov ax, word [r8 + rbx*2 + 8]
and eax, 0xfff
cmp rax, qword [rsp + 0x50]
jae 0x10007f9d2
mov rax, rbx
add rbx, 1
test word [r8 + rax*2 + 8], 0xf000
je 0x10007f83b
xor r12d, r12d
movzx r11d, word [r8 + rax*2 + 8]
mov esi, r11d
and esi, 0xfff
add esi, dword [r8]
add rsi, rbp
mov rax, rsi
sub rax, r10
je 0x10007f919
mov rdi, rax
movzx ecx, byte [r10 + r12]
add r12, 1
add ecx, 0x65c64b23
add r9d, ecx
add ecx, edx
mov eax, ecx
imul eax, eax, 0x39e9
rol eax, 3
ror ecx, 3
xor eax, ecx
imul rax, rax, 0x65c64b23
mov qword [rsp + 0x60], rax
mov edx, dword [rsp + 0x60]
shr rax, 0x20
add edx, eax
add r9d, edx
cmp r12, rdi
jb 0x10007f8ce
mov dword [rsp + 0x4c], edx
mov dword [rsp + 0x48], r9d
mov rax, qword [rsi]
shr r11d, 0xc
mov qword [rsp + 0x60], rax
cmp r11d, 3
je 0x10007f93b
sub r11d, 0xa
neg r11d
sbb r10d, r10d
add r10d, 3
jmp 0x10007f941
mov r10d, 2
mov r11, r14
neg r11
sub r10d, 2
je 0x10007f969
cmp r10d, 1
je 0x10007f959
or r10, 0xffffffffffffffff
jmp 0x10007f971
mov r10d, 8
add rax, r11
mov qword [rsp + 0x60], rax
jmp 0x10007f971
add dword [rsp + 0x60], r11d
mov r10, r15
xor r11d, r11d
test r10, r10
je 0x10007f9c5
movzx ecx, byte [rsp + r11 + 0x60]
add r11, 1
add ecx, 0x65c64b23
add r9d, ecx
add ecx, edx
mov eax, ecx
imul eax, eax, 0x39e9
rol eax, 3
ror ecx, 3
xor eax, ecx
imul rax, rax, 0x65c64b23
mov qword [rsp + 0x58], rax
shr rax, 0x20
mov edx, dword [rsp + 0x58]
add edx, eax
add r9d, edx
cmp r11, r10
jb 0x10007f979
mov dword [rsp + 0x4c], edx
mov dword [rsp + 0x48], r9d
mov rcx, qword [rsp + 0x38]
add r10, rsi
jmp 0x10007f83b
xor r8d, r8d
mov dil, r8b
mov r14, qword [rsp + 0x98]
mov rbp, qword [rsp + 0xa0]
mov r11, qword [rsp + 0x68]
mov r12, qword [rsp + 0x88]
sub r11, r10
je 0x10007fa45
movzx ecx, byte [r10 + r8]
add r8, 1
add ecx, 0x65c64b23
add r9d, ecx
add ecx, edx
mov eax, ecx
imul eax, eax, 0x39e9
rol eax, 3
ror ecx, 3
xor eax, ecx
imul rax, rax, 0x65c64b23
mov qword [rsp + 0x38], rax
mov edx, dword [rsp + 0x38]
shr rax, 0x20
add edx, eax
add r9d, edx
cmp r8, r11
jb 0x10007f9fa
mov dword [rsp + 0x4c], edx
mov dword [rsp + 0x48], r9d
mov esi, dword [rsp + 0x34]
mov rbx, qword [rsp + 0x70]
xor ecx, ecx
mov al, cl
add rcx, 1
and eax, 7
mov al, byte [rsp + rax + 0x48]
cmp rcx, 8
mov byte [rsp + rcx + 0xaf], al
jb 0x10007fa50
mov eax, 0x58cb8649
mov rax, qword [rsp + 0xb0]
mov r13b, r14b
mov r10, rbp
mov r11, rbx
and r13d, 7
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x38], rbx
je 0x10007ff6b
xor r8d, r8d
mov dword [rsp + 0x30], r8d
xor ebx, ebx
mov dword [rsp + 0x68], ebx
xor r11d, r11d
not esi
test r13d, r13d
jle 0x10007faea
lea r9d, [r8 + 0x38]
movzx edx, byte [r10]
cmp r11d, r15d
jge 0x10007fac3
lea ecx, [r9 - 0x20]
shl edx, cl
or ebx, edx
jmp 0x10007facb
mov ecx, r9d
shl edx, cl
or r8d, edx
add r11d, 1
add r10, 1
sub r9d, 8
cmp r11d, r13d
jl 0x10007fab0
mov dword [rsp + 0x68], ebx
mov dword [rsp + 0x30], r8d
mov qword [rsp + 0x50], r10
mov edx, dword [rsp + 0xb4]
movzx r9d, ax
mov ebx, edx
mov ecx, eax
movzx r11d, dx
xor ecx, esi
movzx r8d, word [rsp + 0xb2]
movzx r10d, word [rsp + 0xb6]
sub ebx, ecx
xor ebx, dword [rsp + 0x34]
mov ecx, ebx
ror ecx, 0xc
sub ecx, r10d
imul ecx, r11d
xor esi, ecx
mov ecx, esi
not ecx
ror ecx, 0xc
add ecx, r11d
imul ecx, r10d
xor ebx, ecx
mov ecx, ebx
mov edx, ebx
xor ecx, r10d
ror edx, 2
imul ecx, r8d
xor edx, ecx
xor esi, edx
mov dword [rsp + 0x58], esi
mov edx, eax
mov ecx, esi
mov esi, dword [rsp + 0xb4]
ror ecx, 8
xor esi, eax
xor esi, dword [rsp + 0x58]
xor ecx, r9d
imul ecx, r11d
xor ebx, ecx
xor esi, ebx
mov ecx, esi
xor edx, esi
shr ecx, 9
rol edx, 6
imul edx, r11d
sub edx, ecx
xor ebx, edx
mov ecx, ebx
shr ecx, 3
mov edx, ebx
xor edx, r9d
imul edx, r8d
xor edx, ecx
xor esi, edx
mov edx, dword [rsp + 0xb4]
add edx, esi
mov ecx, esi
rol edx, 0xa
rol ecx, 7
imul edx, r9d
add ecx, edx
xor ebx, ecx
mov ecx, ebx
mov edx, ebx
xor edx, r11d
rol edx, 6
rol ecx, 9
imul edx, r10d
add ecx, edx
xor esi, ecx
mov ecx, esi
xor ecx, r8d
mov edx, esi
ror edx, 3
imul ecx, r11d
sub ecx, edx
xor ebx, ecx
mov ecx, ebx
sub ecx, r8d
mov r8d, dword [rsp + 0xb4]
xor ecx, r8d
xor esi, ecx
mov ecx, esi
mov edx, esi
xor esi, dword [rsp + 0x30]
sub edx, r8d
ror edx, 0xb
ror ecx, 0x10
imul edx, r9d
xor r9d, r9d
sub edx, ecx
mov ecx, dword [rsp + 0x68]
xor edx, ecx
xor ebx, edx
mov ecx, ebx
test r13d, r13d
mov edx, esi
jle 0x10007fc3f
mov r8, qword [rsp + 0x38]
cmp r9d, r15d
jge 0x10007fc24
rol ecx, 8
mov byte [r8], cl
add r8, 1
xor dil, cl
jmp 0x10007fc31
rol edx, 8
mov byte [r8], dl
add r8, 1
xor dil, dl
add r9d, 1
cmp r9d, r13d
jl 0x10007fc10
mov qword [rsp + 0x38], r8
lea ecx, [r13 - 4]
test ecx, ecx
jle 0x10007ff53
sub r15d, ecx
shl r15d, 3
mov ecx, r15d
shr esi, cl
shl esi, cl
mov r13d, dword [rsp + 0x30]
mov r11, qword [rsp + 0x38]
mov r10, qword [rsp + 0x50]
mov rcx, r14
shr rcx, 3
mov qword [rsp + 0xa8], rcx
je 0x10007fe9c
mov r15d, dword [rsp + 0xb4]
mov r12d, dword [rsp + 0x68]
mov rbp, qword [rsp + 0xa8]
mov ecx, r15d
xor ecx, eax
mov dword [rsp + 0x38], ecx
movzx ecx, word [rsp + 0xb6]
mov r14d, dword [rsp + 0x38]
mov dword [rsp + 0x50], ecx
movzx ecx, r15w
mov dword [rsp + 0x30], ecx
movzx ecx, word [rsp + 0xb2]
mov dword [rsp + 0x58], ecx
movzx ecx, ax
mov dword [rsp + 0x34], ecx
movzx r8d, byte [r10 + 4]
movzx r9d, byte [r10 + 1]
mov edx, r15d
movzx ecx, byte [r10]
shl ecx, 8
shl r8d, 8
add r10, 8
or r9d, ecx
movzx ecx, byte [r10 - 6]
shl r9d, 8
or r9d, ecx
shl r9d, 8
movzx ecx, byte [r10 - 5]
or r9d, ecx
movzx ecx, byte [r10 - 3]
or r8d, ecx
movzx ecx, byte [r10 - 2]
shl r8d, 8
or r8d, ecx
shl r8d, 8
movzx ecx, byte [r10 - 1]
or r8d, ecx
mov ecx, eax
xor esi, r8d
xor ecx, esi
sub edx, ecx
xor edx, r9d
xor ebx, edx
mov ecx, ebx
ror ecx, 0xc
movzx edx, word [rsp + 0xb6]
sub ecx, edx
mov edx, dword [rsp + 0x30]
imul ecx, edx
xor esi, ecx
mov ecx, esi
not ecx
ror ecx, 0xc
add ecx, edx
movzx edx, word [rsp + 0xb6]
imul ecx, edx
xor ebx, ecx
mov ecx, ebx
mov edx, ebx
xor ecx, dword [rsp + 0x50]
ror edx, 2
imul ecx, dword [rsp + 0x58]
xor edx, ecx
xor esi, edx
mov edx, eax
mov ecx, esi
ror ecx, 8
xor ecx, dword [rsp + 0x34]
imul ecx, dword [rsp + 0x30]
xor ebx, ecx
xor esi, ebx
xor esi, r14d
mov ecx, esi
xor edx, esi
rol edx, 6
shr ecx, 9
imul edx, dword [rsp + 0x30]
sub edx, ecx
movzx ecx, word [rsp + 0xb2]
xor ebx, edx
mov edx, ebx
xor edx, dword [rsp + 0x34]
imul edx, ecx
mov ecx, ebx
shr ecx, 3
xor edx, ecx
xor esi, edx
lea edx, [rsi + r15]
mov ecx, esi
rol edx, 0xa
rol ecx, 7
imul edx, dword [rsp + 0x34]
add ecx, edx
xor ebx, ecx
mov edx, ebx
xor edx, dword [rsp + 0x30]
rol edx, 6
mov ecx, ebx
rol ecx, 9
imul edx, dword [rsp + 0x50]
add ecx, edx
xor esi, ecx
mov edx, esi
mov ecx, esi
xor ecx, dword [rsp + 0x58]
ror edx, 3
imul ecx, dword [rsp + 0x30]
sub ecx, edx
movzx edx, word [rsp + 0xb2]
xor ebx, ecx
mov ecx, ebx
sub ecx, edx
xor ecx, r15d
xor esi, ecx
mov ecx, esi
mov edx, esi
xor esi, r13d
mov r13d, r8d
sub edx, r15d
mov byte [r11 + 7], sil
ror edx, 0xb
ror ecx, 0x10
imul edx, dword [rsp + 0x34]
sub edx, ecx
xor edx, r12d
mov r12d, r9d
xor ebx, edx
mov byte [r11 + 3], bl
xor dil, bl
ror ebx, 8
mov byte [r11 + 2], bl
xor dil, sil
ror esi, 8
mov byte [r11 + 6], sil
xor dil, bl
ror ebx, 8
xor dil, sil
mov byte [r11 + 1], bl
ror esi, 8
xor dil, bl
mov byte [r11 + 5], sil
ror ebx, 8
mov byte [r11], bl
xor dil, sil
ror esi, 8
mov cl, sil
mov byte [r11 + 4], sil
add r11, 8
xor cl, bl
xor dil, cl
ror ebx, 8
ror esi, 8
sub rbp, 1
jne 0x10007fcc7
mov r14, qword [rsp + 0x98]
mov rbp, qword [rsp + 0xa0]
mov r12, qword [rsp + 0x88]
cmp dil, byte [r14 + rbp + 8]
je 0x10007ff95
call fcn.1002d3e40
lea r13, [0x1003e8888]
mov r10d, 0xffff
mov r9, rax
mov r11, qword [rsp + 0x90]
mov qword [r11 + 0x10], r13
mov rax, 0xfffffffffffff000
and r12, 0xfffffffffffffff8
mov rcx, qword [0x100495210]
and r9, rax
lea r8, [r12 + 0xfff]
and r8, rax
xor edi, edi
imul rcx, rcx, 0x343fd
shl rdi, 0x10
add rcx, 0x269ec3
mov rax, rcx
shr rax, 0x10
movzx edx, ax
or rdi, rdx
shr r10, 0x10
jne 0x10007feea
movabs rax, 0x8000800080008001
mul rdi
mov qword [0x100495210], rcx
mov rax, qword [rsp + 0x78]
shr rdx, 0xf
imul rdx, rdx, 0xffff
mov qword [rax + 0x98], r9
sub rdi, rdx
add rdi, 1
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x78], 0
jmp 0x10007ff8b
xor esi, esi
test ecx, ecx
jns 0x10007fc59
neg ecx
shl ecx, 3
shr ebx, cl
shl ebx, cl
jmp 0x10007fc59
mov r13d, esi
not r13d
mov dword [rsp + 0x68], esi
xor esi, esi
xor ebx, ebx
jmp 0x10007fc68
mov rax, qword [rsp + 0x78]
mov qword [r12], rax
add r12, 8
cmp r12, r8
jb 0x10007ff7e
jmp 0x1000800ac
mov rax, qword [0x1003f4900]
mov rbx, rbp
mov r13, qword [rsp + 0x70]
lea r15, [0x100000000]
mov rsi, r15
sub rbx, r13
sub rsi, rax
jne 0x10007ffbf
test rbx, rbx
je 0x100080099
mov r11, r13
mov rcx, qword [0x1000016e8]
lea r8d, [rcx - 1]
xor edi, edi
sub r11, rbp
sub ebp, r15d
lea r12d, [r14 + rbp]
test r8d, r8d
lea r14, [0x100000000]
js 0x100080015
lea eax, [r8 + rdi]
cdq
sub eax, edx
sar eax, 1
movsxd rdx, eax
mov r9d, dword [r14 + rdx*4 + 0x16ec]
and r9d, 0xfffffff
cmp ebp, r9d
jae 0x10008000b
lea r8d, [rax - 1]
jmp 0x100080010
jbe 0x10008001a
lea edi, [rax + 1]
cmp r8d, edi
jge 0x10007ffe5
movsxd r10, edi
jmp 0x100080092
movsxd r10, eax
jmp 0x100080092
mov edx, dword [r14 + r10*4 + 0x16ec]
mov eax, edx
and eax, 0xfffffff
cmp eax, r12d
jae 0x100080099
mov edi, edx
mov r8, rdx
sar edx, 0x1e
shl edi, 2
and r8d, 0xfffffff
and edx, 3
sar edi, 0x1e
add r8, r15
xor r9d, r9d
and edi, 3
sub edi, 1
je 0x10008006d
sub edi, 1
je 0x100080068
cmp edi, 1
jne 0x100080073
mov r9, rsi
jmp 0x100080073
mov r9, rbx
jmp 0x100080073
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x100080083
cmp edx, 1
jne 0x10008008e
add qword [r8 + r11], r9
jmp 0x100080087
add dword [r8 + r11], r9d
mov rcx, qword [0x1000016e8]
add r10, 1
mov eax, ecx
cmp r10, rax
jb 0x10008001f
mov eax, dword [0x1002f3aa4]
mov eax, 0x44a4a1f1
mov r11, qword [rsp + 0x90]
mov qword [r11 + 0x10], r13
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1002d532c
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret