Function at 0x1001d8104
Capabilities:
Allocate or change rwx memory
Encode data using xor
Encrypt data using chaskey

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 [0x100404bb0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
lea r11, [0x100000000]
lea r12, [rcx + 0x18]
lea rax, [0x100000000]
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x90], rcx
mov ecx, 0xfffffff
mov r14, qword [r12]
mov edx, dword [r14 + 1]
and rdx, rcx
mov ebp, dword [r14 + 5]
and rbp, rcx
add rbp, rax
mov qword [rsp + 0x88], r12
mov eax, dword [0x100015964]
lea rsi, [rax + rdx - 1]
mov rcx, rax
mov rax, rsi
mov qword [rsp + 0x98], rbp
xor edx, edx
div rcx
sub rsi, rdx
xor r15d, r15d
mov eax, dword [0x100015964]
mov r10d, dword [0x10028bf00]
mov eax, dword [0x100015964]
mov eax, dword [0x10028bf00]
cmp eax, r15d
je 0x1001d824a
mov edi, dword [0x10028bf00]
mov rax, r15
dec edi
inc rdi
mov r8, r15
mov r9, rdi
cmp rdi, r15
je 0x1001d8203
mov rcx, qword [0x1003fe198]
imul rcx, rcx, 0x343fd
shl rax, 0x10
shr r9, 0x10
add rcx, 0x269ec3
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
cmp r9, r15
jne 0x1001d81d4
mov qword [0x1003fe198], rcx
xor edx, edx
div rdi
cmp r10, r15
jbe 0x1001d823e
mov eax, 0xef0b
inc r8
mov ecx, 0xffff10f4
lock cmpxchg dword [r11 + rdx*4 + 0x4059e0], ecx
je 0x1001d84d2
mov ecx, dword [0x10028bf00]
lea rax, [rdx + 1]
xor edx, edx
div rcx
cmp r8, r10
jb 0x1001d820d
mov rbx, r15
cmp rbx, r15
jne 0x1001d837d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
mov rdi, r15
inc rdi
mov rax, r15
mov rcx, qword [0x100405548]
mov r9, rcx
cmp rcx, r15
mov r8, rcx
je 0x1001d82a4
mov rcx, qword [0x1003fe198]
imul rcx, rcx, 0x343fd
shl rax, 0x10
shr r9, 0x10
add rcx, 0x269ec3
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
cmp r9, r15
jne 0x1001d8275
mov qword [0x1003fe198], rcx
xor edx, edx
mov r9d, 0x40
div r8
mov r8d, 0x3000
mov rcx, rdx
shl rcx, 0x10
mov rdx, rsi
add rcx, qword [0x10041cd78]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp rax, r15
mov rbx, rax
je 0x1001d8311
mov qword [rsp + 0x28], r15
mov rdx, rax
lea r9, [0x100363da0]
mov qword [rsp + 0x20], r15
mov rcx, rax
or rcx, 3
mov r8d, esi
call qword [sym.imp.ntdll.dll_RtlInstallFunctionTableCallback]
movzx edx, al
cmp edx, r15d
jne 0x1001d8326
mov r8d, 0x8000
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp rdi, 0x11
jb 0x1001d8256
mov rbx, r15
cmp rbx, 0x10000
jb 0x1001d8334
test bl, 3
je 0x1001d835a
cmp rbx, r15
je 0x1001d8357
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]
lea r11, [0x100000000]
cmp rbx, r15
je 0x1001d8198
xor eax, eax
mov rdi, rbx
mov rcx, rsi
rep stosb byte [rdi], al
mov eax, 0xb09550ba
mov esi, ebp
add qword [r12], 9
mov rax, r15
mov r8d, dword [0x100015964]
lea r13, [0x100000000]
mov r14d, dword [r14 + 1]
and r14d, 0xfffffff
sub r8, r14
mov qword [rsp + 0xa0], r14
inc r8
sub esi, r13d
mov dword [rsp + 0x30], esi
mov rdi, r8
cmp r8, r15
je 0x1001d83f8
mov rcx, qword [0x1003fe198]
imul rcx, rcx, 0x343fd
shl rax, 0x10
shr rdi, 0x10
add rcx, 0x269ec3
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
cmp rdi, r15
jne 0x1001d83c9
mov qword [0x1003fe198], rcx
xor edx, edx
div r8
mov ecx, esi
add rbx, rdx
mov rdx, r14
mov r8, rbx
mov qword [rsp + 0x70], rbx
mov eax, 0x60eb8f13
mov dil, r15b
mov rdx, qword [r14 + rbp]
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x68]
mov eax, 0xc61dd3f2
mov eax, 0xfffffff
mov rcx, r13
mov r8d, dword [rsp + 0x6c]
mov r11, qword [rsp + 0x68]
and r11, rax
and r8, rax
add r11, r13
mov rax, qword [0x10014dad0]
sub rcx, rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x48], rcx
mov r15d, 4
jne 0x1001d84e9
xor r10d, r10d
test r8, r8
je 0x1001d87fe
mov r13d, 0xaba54d66
mov r9d, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x3c]
movzx eax, byte [r11 + r10]
inc r10
sub eax, 0x545ab29a
add r9d, eax
add eax, ecx
imul rax, r13
mov qword [rsp + 0x40], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x40]
lea edx, [rcx + rax*2 - 0x7fffffff]
sar ecx, 0x1f
btr ecx, 0x1f
sub edx, ecx
mov ecx, edx
sar ecx, 0x1f
btr ecx, 0x1f
add ecx, edx
add r9d, ecx
cmp r10, r8
jb 0x1001d847e
mov dword [rsp + 0x3c], ecx
mov dword [rsp + 0x38], r9d
jmp 0x1001d87fe
mov ecx, dword [0x100015964]
imul rcx, rdx
lea rbx, [rcx + r11 + 0x3df000]
jmp 0x1001d8241
movsxd rcx, dword [0x10000003c]
mov edx, dword [rcx + r13 + 0xb4]
mov r9d, dword [rcx + r13 + 0xb0]
add r9, r13
lea rax, [r11 + r8]
mov qword [rsp + 0x80], rax
mov eax, r11d
sub eax, r13d
mov ecx, eax
mov rbx, rcx
mov r10d, eax
lea r13, [rcx + r8]
mov rax, 0xfffffffffffff000
and r10, rax
sub rbx, r10
mov rcx, r13
and rcx, rax
mov qword [rsp + 0x40], rcx
sub r13, rcx
add rdx, r9
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], r13
jmp 0x1001d855a
mov eax, dword [r9]
cmp rax, r10
jae 0x1001d855f
mov eax, dword [r9 + 4]
add r9, rax
cmp r9, rdx
jne 0x1001d854b
xor esi, esi
cmp r9, rdx
je 0x1001d85a2
mov eax, dword [r9]
cmp rax, r10
jne 0x1001d85a2
mov ecx, dword [r9 + 4]
sub rcx, 8
shr rcx, 1
je 0x1001d859d
lea rdx, [r9 + 8]
movzx eax, word [rdx]
and eax, 0xfff
cmp rax, rbx
jae 0x1001d8598
inc rsi
add rdx, 2
cmp rsi, rcx
jne 0x1001d857f
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
mov r8d, dword [rsp + 0x3c]
mov r10d, dword [rsp + 0x38]
mov r12d, 0xaba54d66
mov rbp, qword [rsp + 0x48]
cmp r9, rdx
je 0x1001d8769
mov eax, dword [r9]
cmp rax, rcx
ja 0x1001d8769
mov edi, dword [r9 + 4]
lea rax, [rdi - 8]
shr rax, 1
cmp rsi, rax
jne 0x1001d85f8
add r9, rdi
cmp r9, rdx
je 0x1001d8769
mov eax, dword [r9]
cmp rax, rcx
ja 0x1001d8769
xor esi, esi
jmp 0x1001d85cc
mov eax, dword [r9]
cmp rax, rcx
jne 0x1001d8614
movzx eax, word [r9 + rsi*2 + 8]
and eax, 0xfff
cmp rax, r13
jae 0x1001d8769
mov edi, 0xf000
mov rax, rsi
inc rsi
test word [r9 + rax*2 + 8], di
je 0x1001d85b7
movzx ebx, word [r9 + rax*2 + 8]
lea rax, [0x100000000]
mov r13d, ebx
xor edi, edi
and r13d, 0xfff
add r13d, dword [r9]
add r13, rax
mov rax, r13
sub rax, r11
je 0x1001d86a6
mov r14, rax
movzx eax, byte [r11 + rdi]
inc rdi
sub eax, 0x545ab29a
add r10d, eax
add eax, r8d
imul rax, r12
mov qword [rsp + 0x60], rax
mov ecx, dword [rsp + 0x60]
shr rax, 0x20
lea edx, [rcx + rax*2 - 0x7fffffff]
sar ecx, 0x1f
btr ecx, 0x1f
sub edx, ecx
mov r8d, edx
sar r8d, 0x1f
btr r8d, 0x1f
add r8d, edx
add r10d, r8d
cmp rdi, r14
jb 0x1001d8651
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x38], r10d
mov rax, qword [r13]
mov qword [rsp + 0x60], rax
shr ebx, 0xc
cmp ebx, 3
je 0x1001d86c3
sub ebx, 0xa
neg ebx
sbb edx, edx
add edx, 3
jmp 0x1001d86c8
mov edx, 2
mov r11, rbp
neg r11
sub edx, 2
je 0x1001d86ee
cmp edx, 1
je 0x1001d86de
or r11, 0xffffffffffffffff
jmp 0x1001d86f6
add rax, r11
mov qword [rsp + 0x60], rax
mov r11d, 8
jmp 0x1001d86f6
add dword [rsp + 0x60], r11d
mov r11, r15
xor ebx, ebx
test r11, r11
je 0x1001d8752
movzx eax, byte [rsp + rbx + 0x60]
inc rbx
sub eax, 0x545ab29a
add r10d, eax
add eax, r8d
imul rax, r12
mov qword [rsp + 0x48], rax
mov ecx, dword [rsp + 0x48]
shr rax, 0x20
lea edx, [rcx + rax*2 - 0x7fffffff]
sar ecx, 0x1f
btr ecx, 0x1f
sub edx, ecx
mov r8d, edx
sar r8d, 0x1f
btr r8d, 0x1f
add r8d, edx
add r10d, r8d
cmp rbx, r11
jb 0x1001d86fd
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x38], r10d
mov rcx, qword [rsp + 0x40]
add r11, r13
mov r13, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
jmp 0x1001d85b7
xor r9d, r9d
mov rbp, qword [rsp + 0x98]
mov r14, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x80]
sub rbx, r11
mov r12, qword [rsp + 0x88]
mov dil, r9b
je 0x1001d87f5
mov r13d, 0xaba54d66
movzx eax, byte [r11 + r9]
inc r9
sub eax, 0x545ab29a
add r10d, eax
add eax, r8d
imul rax, r13
mov qword [rsp + 0x80], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x80]
lea edx, [rcx + rax*2 - 0x7fffffff]
sar ecx, 0x1f
btr ecx, 0x1f
sub edx, ecx
mov r8d, edx
sar r8d, 0x1f
btr r8d, 0x1f
add r8d, edx
add r10d, r8d
cmp r9, rbx
jb 0x1001d879a
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x38], r10d
mov esi, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x70]
xor ecx, ecx
mov rax, rcx
inc rcx
and eax, 7
cmp rcx, 8
mov al, byte [rsp + rax + 0x38]
mov byte [rsp + rcx + 0xa7], al
jb 0x1001d8800
mov eax, 0xd0d09745
mov r11, rbx
mov r13, r14
mov rax, qword [rsp + 0xa8]
mov r10, rbp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x50], rbx
and r13d, 7
je 0x1001d8cc7
mov ebx, esi
not ebx
xor r8d, r8d
xor r11d, r11d
and dword [rsp + 0x48], r8d
mov dword [rsp + 0x58], r8d
test r13d, r13d
jle 0x1001d8897
lea r9d, [r8 + 0x38]
cmp r11d, r15d
movzx edx, byte [r10]
jge 0x1001d8876
lea ecx, [r9 - 0x20]
shl edx, cl
or dword [rsp + 0x48], edx
jmp 0x1001d887e
mov ecx, r9d
shl edx, cl
or r8d, edx
inc r11d
inc r10
sub r9d, 8
cmp r11d, r13d
jl 0x1001d8861
mov dword [rsp + 0x58], r8d
mov qword [rsp + 0x40], r10
movzx r10d, word [rsp + 0xac]
movzx r9d, ax
mov edx, dword [rsp + 0xac]
mov ecx, esi
movzx r8d, word [rsp + 0xaa]
movzx r11d, word [rsp + 0xae]
sub ecx, r11d
xor ecx, eax
xor ebx, ecx
mov ecx, eax
mov esi, ebx
not esi
ror esi, 5
add esi, r10d
imul esi, r11d
xor esi, dword [rsp + 0x30]
xor edx, esi
sub ecx, edx
xor ebx, ecx
mov ecx, ebx
mov edx, dword [rsp + 0xac]
sub edx, ebx
rol edx, 0xe
ror ecx, 0xb
imul edx, r9d
add ecx, edx
mov edx, eax
xor esi, ecx
xor edx, esi
rol edx, 7
mov ecx, esi
rol ecx, 0xd
imul edx, r11d
xor ecx, edx
xor ebx, ecx
mov edx, ebx
xor edx, r11d
mov ecx, ebx
shr ecx, 0xc
rol edx, 2
imul edx, r10d
add edx, ecx
xor esi, edx
mov ecx, esi
mov edx, esi
sub edx, dword [rsp + 0xac]
rol edx, 5
ror ecx, 0xb
imul edx, r8d
xor ecx, edx
xor ebx, ecx
mov edx, ebx
xor edx, r10d
mov ecx, ebx
rol edx, 1
rol ecx, 1
imul edx, r9d
sub edx, ecx
xor esi, edx
mov ecx, esi
mov edx, esi
sub edx, r10d
shr ecx, 1
imul edx, r11d
sub edx, ecx
xor ebx, edx
mov ecx, ebx
mov edx, eax
sub edx, ebx
rol edx, 0xe
rol ecx, 7
imul edx, r10d
sub edx, ecx
xor esi, edx
mov ecx, esi
ror ecx, 6
sub ecx, r8d
imul ecx, r11d
xor ebx, ecx
mov ecx, ebx
mov edx, ebx
xor edx, r11d
imul edx, r9d
xor ebx, dword [rsp + 0x58]
mov r8d, ebx
shr ecx, 7
xor r9d, r9d
add edx, ecx
xor edx, dword [rsp + 0x48]
xor esi, edx
test r13d, r13d
mov edx, esi
jle 0x1001d89d9
mov rcx, qword [rsp + 0x50]
cmp r9d, r15d
jge 0x1001d89bf
rol edx, 8
mov byte [rcx], dl
inc rcx
xor dil, dl
jmp 0x1001d89cc
rol r8d, 8
mov byte [rcx], r8b
inc rcx
xor dil, r8b
inc r9d
cmp r9d, r13d
jl 0x1001d89ad
mov qword [rsp + 0x50], rcx
lea ecx, [r13 - 4]
test ecx, ecx
jle 0x1001d8caf
sub r15d, ecx
shl r15d, 3
mov ecx, r15d
shr ebx, cl
shl ebx, cl
mov r13d, dword [rsp + 0x58]
mov r10, qword [rsp + 0x40]
mov r11, qword [rsp + 0x50]
mov r15, r14
shr r15, 3
test r15, r15
je 0x1001d8bf7
movzx ebp, word [rsp + 0xae]
movzx ecx, word [rsp + 0xaa]
movzx r14d, word [rsp + 0xac]
mov r12d, dword [rsp + 0x48]
mov dword [rsp + 0x58], ecx
movzx ecx, ax
mov dword [rsp + 0x30], ecx
movzx r8d, byte [r10 + 4]
mov edx, dword [rsp + 0xac]
movzx ecx, byte [r10]
movzx r9d, byte [r10 + 1]
shl ecx, 8
shl r8d, 8
or r9d, ecx
movzx ecx, byte [r10 + 2]
add r10, 8
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]
xor esi, r9d
shl r8d, 8
or r8d, ecx
movzx ecx, byte [r10 - 1]
shl r8d, 8
or r8d, ecx
mov ecx, esi
sub ecx, ebp
xor ecx, eax
xor ecx, r8d
xor ebx, ecx
mov ecx, ebx
not ecx
ror ecx, 5
add ecx, r14d
imul ecx, ebp
xor esi, ecx
xor edx, esi
mov ecx, eax
sub ecx, edx
mov edx, dword [rsp + 0xac]
xor ebx, ecx
sub edx, ebx
rol edx, 0xe
mov ecx, ebx
ror ecx, 0xb
imul edx, dword [rsp + 0x30]
add ecx, edx
mov edx, eax
xor esi, ecx
xor edx, esi
mov ecx, esi
rol edx, 7
rol ecx, 0xd
imul edx, ebp
xor ecx, edx
xor ebx, ecx
mov ecx, ebx
mov edx, ebx
xor edx, ebp
shr ecx, 0xc
rol edx, 2
imul edx, r14d
add edx, ecx
xor esi, edx
mov edx, esi
sub edx, dword [rsp + 0xac]
mov ecx, esi
rol edx, 5
ror ecx, 0xb
imul edx, dword [rsp + 0x58]
xor ecx, edx
xor ebx, ecx
mov ecx, ebx
mov edx, ebx
xor edx, r14d
rol edx, 1
rol ecx, 1
imul edx, dword [rsp + 0x30]
sub edx, ecx
xor esi, edx
mov edx, esi
mov ecx, esi
sub edx, r14d
imul edx, ebp
shr ecx, 1
sub edx, ecx
xor ebx, edx
mov ecx, ebx
mov edx, eax
sub edx, ebx
rol edx, 0xe
rol ecx, 7
imul edx, r14d
sub edx, ecx
xor esi, edx
movzx edx, word [rsp + 0xaa]
mov ecx, esi
ror ecx, 6
sub ecx, edx
imul ecx, ebp
xor ebx, ecx
mov ecx, ebx
mov edx, ebx
xor ebx, r13d
mov byte [r11 + 7], bl
mov r13d, r8d
xor edx, ebp
shr ecx, 7
imul edx, dword [rsp + 0x30]
add edx, ecx
xor edx, r12d
mov r12d, r9d
xor esi, edx
mov byte [r11 + 3], sil
xor dil, sil
ror esi, 8
mov byte [r11 + 2], sil
xor dil, bl
ror ebx, 8
mov byte [r11 + 6], bl
xor dil, sil
ror esi, 8
mov byte [r11 + 1], sil
xor dil, bl
ror ebx, 8
xor dil, sil
mov byte [r11 + 5], bl
ror esi, 8
xor dil, bl
ror ebx, 8
mov byte [r11], sil
mov byte [r11 + 4], bl
mov cl, bl
add r11, 8
xor cl, sil
xor dil, cl
ror esi, 8
ror ebx, 8
sub r15, 1
jne 0x1001d8a3b
mov rbp, qword [rsp + 0x98]
mov r14, qword [rsp + 0xa0]
mov r12, qword [rsp + 0x88]
mov al, byte [r14 + rbp + 8]
xor al, dil
je 0x1001d8cf1
call fcn.10000228c
mov r9d, 0xffff
mov r11, qword [rsp + 0x90]
and r12, 0xfffffffffffffff8
lea r13, [0x10006d7ac]
lea r8, [r12 + 0xfff]
mov r10, rax
mov rax, 0xfffffffffffff000
mov qword [r11 + 0x10], r13
mov rcx, qword [0x1003fe198]
and r10, rax
and r8, rax
xor edi, edi
imul rcx, rcx, 0x343fd
shl rdi, 0x10
shr r9, 0x10
add rcx, 0x269ec3
mov rax, rcx
shr rax, 0x10
movzx edx, ax
or rdi, rdx
test r9, r9
jne 0x1001d8c48
movabs rax, 0x8000800080008001
mov qword [0x1003fe198], rcx
mul rdi
shr rdx, 0xf
mov rax, qword [rsp + 0x78]
imul rdx, rdx, 0xffff
sub rdi, rdx
inc rdi
mov qword [rax + 0x98], r10
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x78], r9
jmp 0x1001d8ce7
xor ebx, ebx
test ecx, ecx
jns 0x1001d89f3
neg ecx
shl ecx, 3
shr esi, cl
shl esi, cl
jmp 0x1001d89f3
mov dword [rsp + 0x48], esi
xor ebx, ebx
mov r13d, esi
xor esi, esi
not r13d
jmp 0x1001d8a02
mov rax, qword [rsp + 0x78]
mov qword [r12], rax
add r12, 8
cmp r12, r8
jb 0x1001d8cda
jmp 0x1001d8e07
mov rbx, rbp
mov r13, qword [rsp + 0x70]
sub rbx, r13
lea r15, [0x100000000]
mov rsi, r15
mov rax, qword [0x10014dad0]
sub rsi, rax
jne 0x1001d8d1b
test rbx, rbx
je 0x1001d8df4
mov rcx, qword [0x100019a28]
lea r8d, [rcx - 1]
xor edi, edi
mov r11, r13
sub r11, rbp
sub ebp, r15d
test r8d, r8d
lea r12d, [r14 + rbp]
lea r14, [0x100000000]
js 0x1001d8d71
lea eax, [r8 + rdi]
cdq
sub eax, edx
sar eax, 1
movsxd rdx, eax
mov r9d, dword [r14 + rdx*4 + 0x19a2c]
and r9d, 0xfffffff
cmp ebp, r9d
jae 0x1001d8d67
lea r8d, [rax - 1]
jmp 0x1001d8d6c
jbe 0x1001d8d76
lea edi, [rax + 1]
cmp r8d, edi
jge 0x1001d8d41
movsxd r10, edi
jmp 0x1001d8ded
movsxd r10, eax
jmp 0x1001d8ded
mov edx, dword [r14 + r10*4 + 0x19a2c]
mov eax, edx
and eax, 0xfffffff
cmp eax, r12d
jae 0x1001d8df4
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 0x1001d8dc9
sub edi, 1
je 0x1001d8dc4
cmp edi, 1
jne 0x1001d8dcf
mov r9, rsi
jmp 0x1001d8dcf
mov r9, rbx
jmp 0x1001d8dcf
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x1001d8ddf
cmp edx, 1
jne 0x1001d8dea
add qword [r8 + r11], r9
jmp 0x1001d8de3
add dword [r8 + r11], r9d
mov rcx, qword [0x100019a28]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x1001d8d7b
mov eax, dword [0x100015964]
mov eax, 0x840890aa
mov r11, qword [rsp + 0x90]
mov qword [r11 + 0x10], r13
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1003005f0
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret