Function at 0x10005d028
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 [0x100404bb0]
xor rax, rsp
mov qword [rsp + 0xb8], rax
lea rax, [0x100000000]
mov qword [rsp + 0x70], rdx
lea r11, [0x100000000]
mov qword [rsp + 0x88], rcx
lea r12, [rcx + 0x18]
mov ecx, 0xfffffff
mov r14, qword [r12]
mov esi, dword [r14 + 1]
mov edx, dword [r14 + 5]
mov qword [rsp + 0x98], r12
and rdx, rcx
shr rsi, 1
and rsi, rcx
add rsi, rax
mov eax, dword [0x100015964]
lea rbp, [rax + rdx - 1]
xor edx, edx
mov rcx, rax
mov rax, rbp
div rcx
mov qword [rsp + 0x90], rsi
sub rbp, rdx
mov eax, dword [0x100015964]
xor r15d, r15d
mov eax, dword [0x100015964]
mov r10d, dword [0x10028bf00]
mov eax, dword [0x10028bf00]
cmp eax, r15d
je 0x10005d171
mov edi, dword [0x10028bf00]
dec edi
mov r8, r15
mov rax, r15
inc rdi
cmp rdi, r15
mov r9, rdi
je 0x10005d12a
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 0x10005d0fb
mov qword [0x1003fe198], rcx
xor edx, edx
div rdi
cmp r10, r15
jbe 0x10005d165
inc r8
mov ecx, 0xffff10f4
mov eax, 0xef0b
lock cmpxchg dword [r11 + rdx*4 + 0x4059e0], ecx
je 0x10005d3eb
mov ecx, dword [0x10028bf00]
lea rax, [rdx + 1]
xor edx, edx
div rcx
cmp r8, r10
jb 0x10005d134
mov rbx, r15
cmp rbx, r15
jne 0x10005d2a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
mov rdi, r15
inc rdi
mov rcx, qword [0x100405548]
mov r9, rcx
mov r8, rcx
cmp rcx, r15
mov rax, r15
je 0x10005d1cb
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 0x10005d19c
mov qword [0x1003fe198], rcx
mov r9d, 0x40
xor edx, edx
div r8
mov r8d, 0x3000
mov rcx, rdx
shl rcx, 0x10
add rcx, qword [0x10041cd78]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
cmp rax, r15
je 0x10005d238
mov qword [rsp + 0x28], r15
mov r8d, ebp
mov rdx, rax
mov qword [rsp + 0x20], r15
mov rcx, rax
or rcx, 3
lea r9, [0x100363da0]
call qword [sym.imp.ntdll.dll_RtlInstallFunctionTableCallback]
movzx edx, al
cmp edx, r15d
jne 0x10005d24d
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 0x10005d17d
mov rbx, r15
cmp rbx, 0x10000
jb 0x10005d25b
test bl, 3
je 0x10005d281
cmp rbx, r15
je 0x10005d27e
mov rcx, rbx
or rcx, 3
call qword [sym.imp.ntdll.dll_RtlDeleteFunctionTable]
mov r8d, 0x8000
mov rcx, rbx
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 0x10005d0bf
mov rdi, rbx
mov rcx, rbp
xor eax, eax
rep stosb byte [rdi], al
mov eax, 0xe8ac806d
lea r13, [0x100000000]
add qword [r12], 9
mov r8d, dword [0x100015964]
mov r14d, dword [r14 + 5]
mov ebp, esi
and r14d, 0xfffffff
mov qword [rsp + 0x80], r14
sub r8, r14
mov rax, r15
inc r8
sub ebp, r13d
cmp r8, r15
mov rdi, r8
mov dword [rsp + 0x38], ebp
je 0x10005d31f
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 0x10005d2f0
mov qword [0x1003fe198], rcx
mov ecx, ebp
xor edx, edx
div r8
add rbx, rdx
mov qword [rsp + 0x78], rbx
mov rdx, r14
mov r8, rbx
mov eax, 0x88530a61
lea rcx, [rsp + 0x68]
mov rdx, qword [r14 + rsi]
mov dil, r15b
mov qword [rsp + 0x68], rdx
mov eax, 0x3db418d2
mov rcx, r13
mov r9d, dword [rsp + 0x6c]
mov eax, 0xfffffff
mov r10, qword [rsp + 0x68]
and r10, rax
and r9, rax
mov rax, qword [0x10014dad0]
mov qword [rsp + 0x50], r15
add r10, r13
mov r15d, 4
sub rcx, rax
mov qword [rsp + 0x60], rcx
jne 0x10005d402
xor r8d, r8d
test r9, r9
je 0x10005d700
mov ecx, dword [rsp + 0x54]
mov edx, dword [rsp + 0x50]
movzx eax, byte [r8 + r10]
inc r8
add eax, 0x7028c642
add edx, eax
add eax, ecx
imul rax, rax, 0x7028c642
mov qword [rsp + 0x30], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x30]
add eax, ecx
imul rax, rax, 0x7028c642
mov qword [rsp + 0x30], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x30]
add ecx, eax
add edx, ecx
cmp r8, r9
jb 0x10005d39a
mov dword [rsp + 0x54], ecx
mov dword [rsp + 0x50], edx
jmp 0x10005d700
mov ecx, dword [0x100015964]
imul rcx, rdx
lea rbx, [rcx + r11 + 0x3df000]
jmp 0x10005d168
mov rbx, 0xfffffffffffff000
lea rax, [r10 + r9]
movsxd rcx, dword [0x10000003c]
mov r8d, dword [rcx + r13 + 0xb0]
mov qword [rsp + 0xa8], rax
mov eax, r10d
sub eax, r13d
add r8, r13
mov r11d, eax
and r11, rbx
mov r13d, dword [rcx + r13 + 0xb4]
mov ecx, eax
sub rax, r11
mov qword [rsp + 0x30], rax
lea rax, [rcx + r9]
mov rcx, rax
and rcx, rbx
mov qword [rsp + 0x40], rcx
sub rax, rcx
add r13, r8
mov qword [rsp + 0xa0], r13
mov qword [rsp + 0x48], rax
jmp 0x10005d478
mov eax, dword [r8]
cmp rax, r11
jae 0x10005d47d
mov eax, dword [r8 + 4]
add r8, rax
cmp r8, r13
jne 0x10005d469
xor ebx, ebx
cmp r8, r13
je 0x10005d4c0
mov eax, dword [r8]
cmp rax, r11
jne 0x10005d4c0
mov ecx, dword [r8 + 4]
sub rcx, 8
shr rcx, 1
je 0x10005d4bb
mov r9, qword [rsp + 0x30]
lea rdx, [r8 + 8]
movzx eax, word [rdx]
and eax, 0xfff
cmp rax, r9
jae 0x10005d4bb
inc rbx
add rdx, 2
cmp rbx, rcx
jne 0x10005d4a2
mov rcx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x60]
lea rsi, [0x100000000]
mov edx, dword [rsp + 0x54]
mov r9d, dword [rsp + 0x50]
cmp r8, r13
je 0x10005d680
mov eax, dword [r8]
cmp rax, rcx
ja 0x10005d680
mov r11d, dword [r8 + 4]
lea rax, [r11 - 8]
shr rax, 1
cmp rbx, rax
jne 0x10005d516
add r8, r11
cmp r8, r13
je 0x10005d680
mov eax, dword [r8]
cmp rax, rcx
ja 0x10005d680
xor ebx, ebx
jmp 0x10005d4ea
mov eax, dword [r8]
cmp rax, rcx
jne 0x10005d534
movzx eax, word [r8 + rbx*2 + 8]
and eax, 0xfff
cmp rax, qword [rsp + 0x48]
jae 0x10005d680
mov rax, rbx
inc rbx
mov r11d, 0xf000
test word [r8 + rax*2 + 8], r11w
je 0x10005d4d5
movzx r11d, word [r8 + rax*2 + 8]
mov r13d, r11d
xor ebp, ebp
and r13d, 0xfff
add r13d, dword [r8]
add r13, rsi
mov rax, r13
sub rax, r10
je 0x10005d5ba
mov r12, rax
movzx eax, byte [r10 + rbp]
inc rbp
add eax, 0x7028c642
add r9d, eax
add eax, edx
imul rax, rax, 0x7028c642
mov qword [rsp + 0x58], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x58]
add eax, ecx
imul rax, rax, 0x7028c642
mov qword [rsp + 0x58], rax
mov edx, dword [rsp + 0x58]
shr rax, 0x20
add edx, eax
add r9d, edx
cmp rbp, r12
jb 0x10005d56b
mov dword [rsp + 0x54], edx
mov dword [rsp + 0x50], r9d
mov rax, qword [r13]
mov qword [rsp + 0x58], rax
shr r11d, 0xc
cmp r11d, 3
je 0x10005d5dd
sub r11d, 0xa
neg r11d
sbb r10d, r10d
add r10d, 3
jmp 0x10005d5e3
mov r10d, 2
mov r11, r14
neg r11
sub r10d, 2
je 0x10005d60b
cmp r10d, 1
je 0x10005d5fb
or r10, 0xffffffffffffffff
jmp 0x10005d613
add rax, r11
mov r10d, 8
mov qword [rsp + 0x58], rax
jmp 0x10005d613
add dword [rsp + 0x58], r11d
mov r10, r15
xor r11d, r11d
test r10, r10
je 0x10005d66b
movzx eax, byte [rsp + r11 + 0x58]
inc r11
add eax, 0x7028c642
add r9d, eax
add eax, edx
imul rax, rax, 0x7028c642
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x30]
shr rax, 0x20
add eax, ecx
imul rax, rax, 0x7028c642
mov qword [rsp + 0x30], rax
mov edx, dword [rsp + 0x30]
shr rax, 0x20
add edx, eax
add r9d, edx
cmp r11, r10
jb 0x10005d61b
mov dword [rsp + 0x54], edx
mov dword [rsp + 0x50], r9d
add r10, r13
mov r13, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x40]
jmp 0x10005d4d5
mov ebp, dword [rsp + 0x38]
mov r12, qword [rsp + 0x98]
mov r11, qword [rsp + 0xa8]
xor r8d, r8d
mov r14, qword [rsp + 0x80]
sub r11, r10
mov rsi, qword [rsp + 0x90]
je 0x10005d6fb
movzx eax, byte [r8 + r10]
inc r8
add eax, 0x7028c642
add r9d, eax
add eax, edx
imul rax, rax, 0x7028c642
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x30]
shr rax, 0x20
add eax, ecx
imul rax, rax, 0x7028c642
mov qword [rsp + 0x30], rax
mov edx, dword [rsp + 0x30]
shr rax, 0x20
add edx, eax
add r9d, edx
cmp r8, r11
jb 0x10005d6ac
mov dword [rsp + 0x54], edx
mov dword [rsp + 0x50], r9d
mov rbx, qword [rsp + 0x78]
xor ecx, ecx
mov rax, rcx
inc rcx
and eax, 7
cmp rcx, 8
mov al, byte [rsp + rax + 0x50]
mov byte [rsp + rcx + 0xaf], al
jb 0x10005d702
mov eax, 0xb535fadd
mov rax, qword [rsp + 0xb0]
mov r10, rsi
mov r13, r14
mov qword [rsp + 0x40], rsi
mov r11, rbx
and r13d, 7
mov qword [rsp + 0x30], rbx
je 0x10005dbf7
xor r8d, r8d
xor ebx, ebx
mov dword [rsp + 0x48], r8d
not ebp
xor r11d, r11d
mov dword [rsp + 0x60], ebx
test r13d, r13d
jle 0x10005d79a
lea r9d, [r8 + 0x38]
cmp r11d, r15d
movzx edx, byte [r10]
jge 0x10005d775
lea ecx, [r9 - 0x20]
shl edx, cl
or ebx, edx
jmp 0x10005d77d
mov ecx, r9d
shl edx, cl
or r8d, edx
inc r11d
inc r10
sub r9d, 8
cmp r11d, r13d
jl 0x10005d762
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x48], r8d
mov qword [rsp + 0x40], r10
mov r8d, dword [rsp + 0x38]
movzx r11d, word [rsp + 0xb2]
mov ecx, r8d
mov edx, r8d
sub edx, r11d
movzx r9d, word [rsp + 0xb6]
shr ecx, 0xd
rol edx, 3
imul edx, r9d
xor edx, ecx
xor ebp, edx
mov ecx, eax
mov ebx, ebp
mov edx, dword [rsp + 0xb4]
xor ecx, ebp
rol ecx, 0xa
rol ebx, 3
movzx r10d, dx
imul ecx, r10d
xor ebx, ecx
xor ebx, r8d
movzx r8d, ax
mov ecx, ebx
ror ecx, 5
sub ecx, r11d
imul ecx, r10d
xor ebp, ecx
mov ecx, ebp
mov dword [rsp + 0x38], ebp
mov ebp, edx
ror ecx, 2
mov edx, r8d
xor ebp, eax
xor ebp, dword [rsp + 0x38]
xor ecx, r8d
imul ecx, r11d
xor ebx, ecx
xor ebp, ebx
xor edx, ebp
mov ecx, ebp
rol edx, 7
rol ecx, 0xe
imul edx, r10d
xor ecx, edx
xor ebx, ecx
mov ecx, ebx
mov edx, ebx
sub edx, dword [rsp + 0xb4]
ror edx, 2
rol ecx, 5
imul edx, r11d
xor ecx, edx
mov edx, r11d
xor ebp, ecx
xor edx, ebp
rol edx, 7
mov ecx, ebp
ror ecx, 0xd
imul edx, r8d
sub edx, ecx
mov r8d, dword [rsp + 0xb4]
xor ebx, edx
mov ecx, ebx
mov edx, r10d
xor edx, ebx
shr ecx, 1
imul edx, r9d
xor edx, ecx
xor ebp, edx
mov edx, eax
xor edx, ebp
mov ecx, ebp
rol edx, 0xb
ror ecx, 7
imul edx, r10d
sub edx, ecx
xor ebx, edx
lea edx, [r8 + rbx]
mov ecx, ebx
ror edx, 6
ror ecx, 0xa
imul edx, r11d
xor r9d, r9d
sub edx, ecx
mov ecx, eax
xor ebp, edx
mov edx, r8d
xor ecx, ebp
xor ebp, dword [rsp + 0x48]
mov r8d, ebp
sub edx, ecx
mov ecx, dword [rsp + 0x60]
xor edx, ecx
xor ebx, edx
test r13d, r13d
mov edx, ebx
jle 0x10005d8ed
mov rcx, qword [rsp + 0x30]
cmp r9d, r15d
jge 0x10005d8d3
rol edx, 8
mov byte [rcx], dl
inc rcx
xor dil, dl
jmp 0x10005d8e0
rol r8d, 8
mov byte [rcx], r8b
inc rcx
xor dil, r8b
inc r9d
cmp r9d, r13d
jl 0x10005d8c1
mov qword [rsp + 0x30], rcx
lea ecx, [r13 - 4]
test ecx, ecx
jle 0x10005dbdf
sub r15d, ecx
shl r15d, 3
mov ecx, r15d
shr ebp, cl
shl ebp, cl
mov r11, qword [rsp + 0x30]
mov r10, qword [rsp + 0x40]
mov r13d, dword [rsp + 0x48]
mov r15, r14
shr r15, 3
test r15, r15
je 0x10005db27
movzx ecx, word [rsp + 0xb2]
mov r12d, dword [rsp + 0xb4]
mov r14d, ecx
mov esi, dword [rsp + 0x60]
neg r14d
mov dword [rsp + 0x40], ecx
mov ecx, dword [rsp + 0xb4]
mov edx, ecx
movzx ecx, cx
xor edx, eax
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x30], edx
movzx edx, ax
mov dword [rsp + 0x38], edx
movzx r8d, byte [r10 + 4]
movzx ecx, byte [r10]
shl ecx, 8
shl r8d, 8
movzx r9d, byte [r10 + 1]
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]
xor ebx, r9d
shl r8d, 8
or r8d, ecx
lea edx, [rbx + r14]
movzx ecx, byte [r10 - 1]
shl r8d, 8
or r8d, ecx
movzx ecx, word [rsp + 0xb6]
rol edx, 3
imul edx, ecx
mov ecx, ebx
shr ecx, 0xd
xor edx, ecx
xor edx, r8d
xor ebp, edx
mov edx, eax
xor edx, ebp
mov ecx, ebp
rol edx, 0xa
rol ecx, 3
imul edx, dword [rsp + 0x48]
xor ecx, edx
mov edx, dword [rsp + 0x40]
xor ebx, ecx
mov ecx, ebx
ror ecx, 5
sub ecx, edx
imul ecx, dword [rsp + 0x48]
xor ebp, ecx
mov ecx, ebp
ror ecx, 2
xor ecx, dword [rsp + 0x38]
imul ecx, edx
xor ebx, ecx
mov edx, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x30]
xor ebp, ecx
xor ebp, ebx
mov ecx, ebp
xor edx, ebp
rol edx, 7
rol ecx, 0xe
imul edx, dword [rsp + 0x48]
xor ecx, edx
xor ebx, ecx
mov edx, ebx
mov ecx, ebx
sub edx, r12d
ror edx, 2
rol ecx, 5
imul edx, dword [rsp + 0x40]
xor ecx, edx
xor ebp, ecx
mov edx, dword [rsp + 0x40]
mov ecx, ebp
xor edx, ebp
rol edx, 7
ror ecx, 0xd
imul edx, dword [rsp + 0x38]
sub edx, ecx
movzx ecx, word [rsp + 0xb6]
xor ebx, edx
mov edx, dword [rsp + 0x48]
xor edx, ebx
imul edx, ecx
mov ecx, ebx
shr ecx, 1
xor edx, ecx
xor ebp, edx
mov ecx, ebp
mov edx, eax
xor edx, ebp
rol edx, 0xb
ror ecx, 7
imul edx, dword [rsp + 0x48]
sub edx, ecx
xor ebx, edx
mov ecx, ebx
lea edx, [r12 + rbx]
ror edx, 6
ror ecx, 0xa
imul edx, dword [rsp + 0x40]
sub edx, ecx
mov ecx, eax
xor ebp, edx
mov edx, r12d
xor ecx, ebp
xor ebp, r13d
mov byte [r11 + 7], bpl
sub edx, ecx
mov r13d, r8d
xor edx, esi
xor ebx, edx
mov byte [r11 + 3], bl
xor dil, bl
ror ebx, 8
mov esi, r9d
mov byte [r11 + 2], bl
xor dil, bpl
ror ebp, 8
xor dil, bl
mov byte [r11 + 6], bpl
ror ebx, 8
xor dil, bpl
mov byte [r11 + 1], bl
ror ebp, 8
mov byte [r11 + 5], bpl
xor dil, bl
ror ebx, 8
xor dil, bpl
mov byte [r11], bl
ror ebp, 8
mov byte [r11 + 4], bpl
add r11, 8
mov cl, bpl
xor cl, bl
xor dil, cl
ror ebx, 8
ror ebp, 8
sub r15, 1
jne 0x10005d961
mov r12, qword [rsp + 0x98]
mov r14, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x90]
mov al, byte [r14 + rsi + 8]
xor al, dil
je 0x10005dc21
call fcn.10000228c
and r12, 0xfffffffffffffff8
lea r8, [r12 + 0xfff]
lea r13, [0x10006d7ac]
mov r11, qword [rsp + 0x88]
mov r9d, 0xffff
mov r10, rax
mov rax, 0xfffffffffffff000
and r10, rax
mov qword [r11 + 0x10], r13
mov rcx, qword [0x1003fe198]
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 0x10005db78
mov qword [0x1003fe198], rcx
movabs rax, 0x8000800080008001
mul rdi
shr rdx, 0xf
mov rax, qword [rsp + 0x70]
mov qword [rax + 0x98], r10
imul rdx, rdx, 0xffff
sub rdi, rdx
inc rdi
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x70], r9
jmp 0x10005dc17
xor ebp, ebp
test ecx, ecx
jns 0x10005d907
neg ecx
shl ecx, 3
shr ebx, cl
shl ebx, cl
jmp 0x10005d907
mov r13d, ebp
not r13d
mov dword [rsp + 0x60], ebp
xor ebp, ebp
xor ebx, ebx
jmp 0x10005d916
mov rax, qword [rsp + 0x70]
mov qword [r12], rax
add r12, 8
cmp r12, r8
jb 0x10005dc0a
jmp 0x10005dd37
mov r13, qword [rsp + 0x78]
mov rax, qword [0x10014dad0]
mov rbx, rsi
sub rbx, r13
lea r15, [0x100000000]
mov rbp, r15
sub rbp, rax
jne 0x10005dc4b
test rbx, rbx
je 0x10005dd24
mov rcx, qword [0x100019a28]
lea r8d, [rcx - 1]
xor edi, edi
mov r11, r13
sub r11, rsi
sub esi, r15d
test r8d, r8d
lea r12d, [r14 + rsi]
lea r14, [0x100000000]
js 0x10005dca1
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 esi, r9d
jae 0x10005dc97
lea r8d, [rax - 1]
jmp 0x10005dc9c
jbe 0x10005dca6
lea edi, [rax + 1]
cmp r8d, edi
jge 0x10005dc71
movsxd r10, edi
jmp 0x10005dd1d
movsxd r10, eax
jmp 0x10005dd1d
mov edx, dword [r14 + r10*4 + 0x19a2c]
mov eax, edx
and eax, 0xfffffff
cmp eax, r12d
jae 0x10005dd24
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 0x10005dcf9
sub edi, 1
je 0x10005dcf4
cmp edi, 1
jne 0x10005dcff
mov r9, rbp
jmp 0x10005dcff
mov r9, rbx
jmp 0x10005dcff
mov r9, rbp
sub r9, rbx
sub edx, 2
je 0x10005dd0f
cmp edx, 1
jne 0x10005dd1a
add qword [r8 + r11], r9
jmp 0x10005dd13
add dword [r8 + r11], r9d
mov rcx, qword [0x100019a28]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x10005dcab
mov eax, dword [0x100015964]
mov eax, 0xd435beb2
mov r11, qword [rsp + 0x88]
mov qword [r11 + 0x10], r13
mov rcx, qword [rsp + 0xb8]
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