Function at 0x10005c9a4
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 [0x1003fe1f8]
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 [0x100015b94]
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 [0x100015b94]
xor r15d, r15d
mov eax, dword [0x100015b94]
mov r10d, dword [0x10028bffc]
mov eax, dword [0x10028bffc]
cmp eax, r15d
je 0x10005caed
mov edi, dword [0x10028bffc]
dec edi
mov r8, r15
mov rax, r15
inc rdi
cmp rdi, r15
mov r9, rdi
je 0x10005caa6
mov rcx, qword [0x1003feeb8]
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 0x10005ca77
mov qword [0x1003feeb8], rcx
xor edx, edx
div rdi
cmp r10, r15
jbe 0x10005cae1
inc r8
mov ecx, 0xffff10f4
mov eax, 0xef0b
lock cmpxchg dword [r11 + rdx*4 + 0x41a130], ecx
je 0x10005cd67
mov ecx, dword [0x10028bffc]
lea rax, [rdx + 1]
xor edx, edx
div rcx
cmp r8, r10
jb 0x10005cab0
mov rbx, r15
cmp rbx, r15
jne 0x10005cc20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
mov rdi, r15
inc rdi
mov rcx, qword [0x10041aa98]
mov r9, rcx
mov r8, rcx
cmp rcx, r15
mov rax, r15
je 0x10005cb47
mov rcx, qword [0x1003feeb8]
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 0x10005cb18
mov qword [0x1003feeb8], rcx
mov r9d, 0x40
xor edx, edx
div r8
mov r8d, 0x3000
mov rcx, rdx
shl rcx, 0x10
add rcx, qword [0x10041cce0]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
cmp rax, r15
je 0x10005cbb4
mov qword [rsp + 0x28], r15
mov r8d, ebp
mov rdx, rax
mov qword [rsp + 0x20], r15
mov rcx, rax
or rcx, 3
lea r9, [0x100363f08]
call qword [sym.imp.ntdll.dll_RtlInstallFunctionTableCallback]
movzx edx, al
cmp edx, r15d
jne 0x10005cbc9
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 0x10005caf9
mov rbx, r15
cmp rbx, 0x10000
jb 0x10005cbd7
test bl, 3
je 0x10005cbfd
cmp rbx, r15
je 0x10005cbfa
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 0x10005ca3b
mov rdi, rbx
mov rcx, rbp
xor eax, eax
rep stosb byte [rdi], al
mov eax, 0x57ce85c4
lea r13, [0x100000000]
add qword [r12], 9
mov r8d, dword [0x100015b94]
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 0x10005cc9b
mov rcx, qword [0x1003feeb8]
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 0x10005cc6c
mov qword [0x1003feeb8], 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, 0xecece8ff
lea rcx, [rsp + 0x68]
mov rdx, qword [r14 + rsi]
mov dil, r15b
mov qword [rsp + 0x68], rdx
mov eax, 0xbcc259a4
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 [0x10014d838]
mov qword [rsp + 0x50], r15
add r10, r13
mov r15d, 4
sub rcx, rax
mov qword [rsp + 0x60], rcx
jne 0x10005cd7e
xor r8d, r8d
test r9, r9
je 0x10005d07c
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 0x10005cd16
mov dword [rsp + 0x54], ecx
mov dword [rsp + 0x50], edx
jmp 0x10005d07c
mov ecx, dword [0x100015b94]
imul rcx, rdx
lea rbx, [rcx + r11 + 0x3df000]
jmp 0x10005cae4
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 0x10005cdf4
mov eax, dword [r8]
cmp rax, r11
jae 0x10005cdf9
mov eax, dword [r8 + 4]
add r8, rax
cmp r8, r13
jne 0x10005cde5
xor ebx, ebx
cmp r8, r13
je 0x10005ce3c
mov eax, dword [r8]
cmp rax, r11
jne 0x10005ce3c
mov ecx, dword [r8 + 4]
sub rcx, 8
shr rcx, 1
je 0x10005ce37
mov r9, qword [rsp + 0x30]
lea rdx, [r8 + 8]
movzx eax, word [rdx]
and eax, 0xfff
cmp rax, r9
jae 0x10005ce37
inc rbx
add rdx, 2
cmp rbx, rcx
jne 0x10005ce1e
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 0x10005cffc
mov eax, dword [r8]
cmp rax, rcx
ja 0x10005cffc
mov r11d, dword [r8 + 4]
lea rax, [r11 - 8]
shr rax, 1
cmp rbx, rax
jne 0x10005ce92
add r8, r11
cmp r8, r13
je 0x10005cffc
mov eax, dword [r8]
cmp rax, rcx
ja 0x10005cffc
xor ebx, ebx
jmp 0x10005ce66
mov eax, dword [r8]
cmp rax, rcx
jne 0x10005ceb0
movzx eax, word [r8 + rbx*2 + 8]
and eax, 0xfff
cmp rax, qword [rsp + 0x48]
jae 0x10005cffc
mov rax, rbx
inc rbx
mov r11d, 0xf000
test word [r8 + rax*2 + 8], r11w
je 0x10005ce51
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 0x10005cf36
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 0x10005cee7
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 0x10005cf59
sub r11d, 0xa
neg r11d
sbb r10d, r10d
add r10d, 3
jmp 0x10005cf5f
mov r10d, 2
mov r11, r14
neg r11
sub r10d, 2
je 0x10005cf87
cmp r10d, 1
je 0x10005cf77
or r10, 0xffffffffffffffff
jmp 0x10005cf8f
add rax, r11
mov r10d, 8
mov qword [rsp + 0x58], rax
jmp 0x10005cf8f
add dword [rsp + 0x58], r11d
mov r10, r15
xor r11d, r11d
test r10, r10
je 0x10005cfe7
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 0x10005cf97
mov dword [rsp + 0x54], edx
mov dword [rsp + 0x50], r9d
add r10, r13
mov r13, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x40]
jmp 0x10005ce51
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 0x10005d077
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 0x10005d028
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 0x10005d07e
mov eax, 0x90803bdf
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 0x10005d573
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 0x10005d116
lea r9d, [r8 + 0x38]
cmp r11d, r15d
movzx edx, byte [r10]
jge 0x10005d0f1
lea ecx, [r9 - 0x20]
shl edx, cl
or ebx, edx
jmp 0x10005d0f9
mov ecx, r9d
shl edx, cl
or r8d, edx
inc r11d
inc r10
sub r9d, 8
cmp r11d, r13d
jl 0x10005d0de
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 0x10005d269
mov rcx, qword [rsp + 0x30]
cmp r9d, r15d
jge 0x10005d24f
rol edx, 8
mov byte [rcx], dl
inc rcx
xor dil, dl
jmp 0x10005d25c
rol r8d, 8
mov byte [rcx], r8b
inc rcx
xor dil, r8b
inc r9d
cmp r9d, r13d
jl 0x10005d23d
mov qword [rsp + 0x30], rcx
lea ecx, [r13 - 4]
test ecx, ecx
jle 0x10005d55b
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 0x10005d4a3
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 0x10005d2dd
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 0x10005d59d
call fcn.1000024bc
and r12, 0xfffffffffffffff8
lea r8, [r12 + 0xfff]
lea r13, [0x100059e28]
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 [0x1003feeb8]
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 0x10005d4f4
mov qword [0x1003feeb8], 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 0x10005d593
xor ebp, ebp
test ecx, ecx
jns 0x10005d283
neg ecx
shl ecx, 3
shr ebx, cl
shl ebx, cl
jmp 0x10005d283
mov r13d, ebp
not r13d
mov dword [rsp + 0x60], ebp
xor ebp, ebp
xor ebx, ebx
jmp 0x10005d292
mov rax, qword [rsp + 0x70]
mov qword [r12], rax
add r12, 8
cmp r12, r8
jb 0x10005d586
jmp 0x10005d6b3
mov r13, qword [rsp + 0x78]
mov rax, qword [0x10014d838]
mov rbx, rsi
sub rbx, r13
lea r15, [0x100000000]
mov rbp, r15
sub rbp, rax
jne 0x10005d5c7
test rbx, rbx
je 0x10005d6a0
mov rcx, qword [0x1000199f8]
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 0x10005d61d
lea eax, [r8 + rdi]
cdq
sub eax, edx
sar eax, 1
movsxd rdx, eax
mov r9d, dword [r14 + rdx*4 + 0x199fc]
and r9d, 0xfffffff
cmp esi, r9d
jae 0x10005d613
lea r8d, [rax - 1]
jmp 0x10005d618
jbe 0x10005d622
lea edi, [rax + 1]
cmp r8d, edi
jge 0x10005d5ed
movsxd r10, edi
jmp 0x10005d699
movsxd r10, eax
jmp 0x10005d699
mov edx, dword [r14 + r10*4 + 0x199fc]
mov eax, edx
and eax, 0xfffffff
cmp eax, r12d
jae 0x10005d6a0
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 0x10005d675
sub edi, 1
je 0x10005d670
cmp edi, 1
jne 0x10005d67b
mov r9, rbp
jmp 0x10005d67b
mov r9, rbx
jmp 0x10005d67b
mov r9, rbp
sub r9, rbx
sub edx, 2
je 0x10005d68b
cmp edx, 1
jne 0x10005d696
add qword [r8 + r11], r9
jmp 0x10005d68f
add dword [r8 + r11], r9d
mov rcx, qword [0x1000199f8]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x10005d627
mov eax, dword [0x100015b94]
mov eax, 0xcec9b604
mov r11, qword [rsp + 0x88]
mov qword [r11 + 0x10], r13
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1002d7828
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret