Function at 0x1000834c4
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, 0xb0
mov rax, qword [0x1004946a0]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov eax, dword [0x1002f3aa4]
lea r11, [0x100000000]
lea r14, [0x100000000]
mov qword [rsp + 0x70], rdx
lea r13, [rcx + 0x18]
mov ebp, 0xfffffff
mov r15, qword [r13]
mov qword [rsp + 0x90], rcx
mov r12d, dword [r15 + 5]
mov edx, dword [r15 + 1]
mov rcx, rax
and rdx, rbp
and r12, rbp
mov qword [rsp + 0x98], r13
lea rsi, [rax + rdx - 1]
mov rax, rsi
xor edx, edx
add r12, r14
div rcx
sub rsi, rdx
mov eax, dword [0x1002f3aa4]
mov qword [rsp + 0x80], r12
mov r10d, dword [0x10005e244]
mov eax, dword [0x1002f3aa4]
mov eax, dword [0x10005e244]
test eax, eax
je 0x100083601
xor r8d, r8d
xor eax, eax
mov edi, dword [0x10005e244]
add edi, 0xffffffff
add rdi, 1
mov r9, rdi
je 0x1000835ba
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 0x10008358e
mov qword [0x100495210], rcx
xor edx, edx
div rdi
test r10, r10
je 0x1000835f6
add r8, 1
mov eax, 0x3bd7
mov ecx, 0xffffc428
lock cmpxchg dword [r11 + rdx*4 + 0x478cb0], ecx
je 0x10008386f
lea rax, [rdx + 1]
xor edx, edx
mov ecx, dword [0x10005e244]
div rcx
cmp r8, r10
jb 0x1000835c4
xor ebx, ebx
test rbx, rbx
jne 0x10008372a
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov ebp, eax
add rdi, 1
xor eax, eax
mov rcx, qword [0x10047b438]
test rcx, rcx
mov r8, rcx
mov r9, rcx
je 0x100083656
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 0x10008362a
mov qword [0x100495210], rcx
xor edx, edx
mov r9d, 0x40
div r8
mov rcx, rdx
shl rcx, 0x10
mov rdx, rsi
add rcx, qword [0x100493ee0]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
mov rbx, rax
je 0x1000836c1
mov rdx, rax
mov r8d, esi
and qword [rsp + 0x28], 0
mov rcx, rax
and qword [rsp + 0x20], 0
lea r9, [0x1003c433c]
or rcx, 3
call qword [sym.imp.ntdll.dll_RtlInstallFunctionTableCallback]
test al, al
jne 0x1000836d5
xor edx, edx
mov rcx, rbx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp rdi, 0x11
jb 0x10008360b
xor ebx, ebx
cmp rbx, 0x10000
jb 0x1000836e3
test bl, 3
je 0x100083708
test rbx, rbx
je 0x100083706
mov rcx, rbx
or rcx, 3
call qword [sym.imp.ntdll.dll_RtlDeleteFunctionTable]
mov rcx, rbx
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ebx, ebx
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r11, [0x100000000]
test rbx, rbx
je 0x100083555
mov rdi, rbx
mov rcx, rsi
xor eax, eax
rep stosb byte [rdi], al
mov eax, 0x78005a9
mov esi, r12d
add qword [r13], 9
mov r15d, dword [r15 + 1]
mov ebp, 0xfffffff
mov edi, dword [0x1002f3aa4]
and r15, rbp
sub esi, r14d
mov qword [rsp + 0x88], r15
xor eax, eax
mov dword [rsp + 0x3c], esi
sub rdi, r15
add rdi, 1
mov r8, rdi
je 0x100083799
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 0x10008376d
mov qword [0x100495210], rcx
mov ecx, esi
xor edx, edx
div rdi
add rbx, rdx
mov rdx, r15
mov qword [rsp + 0x78], rbx
mov r8, rbx
mov eax, 0xf9ae13e3
xor dil, dil
mov rdx, qword [r12 + r15]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x68], rdx
mov eax, 0xd98012aa
mov rax, qword [0x1003f4900]
mov r10, qword [rsp + 0x68]
mov r9d, dword [rsp + 0x6c]
and qword [rsp + 0x48], 0
and r10, rbp
mov rcx, r14
and r9, rbp
mov ebp, 4
add r10, r14
sub rcx, rax
mov qword [rsp + 0x40], rcx
jne 0x100083886
xor r11d, r11d
test r9, r9
je 0x100083b6c
mov r8d, dword [rsp + 0x48]
mov r14d, 0xdf2e6555
mov edx, dword [rsp + 0x4c]
movzx eax, byte [r10 + r11]
add r11, 1
sub eax, 0x20d19aab
add r8d, eax
add eax, edx
imul rax, r14
mov qword [rsp + 0x30], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov edx, ecx
imul edx, edx, 0x7b1f
rol edx, 5
ror ecx, 5
xor edx, ecx
imul edx, edx, 0xdf2e6555
ror edx, 0x1f
add r8d, edx
cmp r11, r9
jb 0x10008381a
mov dword [rsp + 0x4c], edx
mov dword [rsp + 0x48], r8d
jmp 0x100083b6c
mov ecx, dword [0x1002f3aa4]
imul rcx, rdx
lea rbx, [rcx + r11 + 0x425000]
jmp 0x1000835f8
mov rbx, 0xfffffffffffff000
movsxd rcx, dword [0x10000003c]
mov r8d, dword [rcx + r14 + 0xb0]
add r8, r14
lea rax, [r10 + r9]
mov ecx, dword [rcx + r14 + 0xb4]
mov qword [rsp + 0x50], rax
mov eax, r10d
sub eax, r14d
mov esi, eax
mov r11d, eax
add rax, r9
and r11, rbx
mov r14, rax
and r14, rbx
sub rsi, r11
sub rax, r14
add rcx, r8
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x60], rax
jmp 0x1000838eb
mov eax, dword [r8]
cmp rax, r11
jae 0x1000838f0
mov eax, dword [r8 + 4]
add r8, rax
cmp r8, rcx
jne 0x1000838dc
xor ebx, ebx
cmp r8, rcx
je 0x10008392a
mov eax, dword [r8]
cmp rax, r11
jne 0x10008392a
mov ecx, dword [r8 + 4]
sub rcx, 8
shr rcx, 1
je 0x100083925
mov ax, word [r8 + rbx*2 + 8]
and eax, 0xfff
cmp rax, rsi
jae 0x100083925
add rbx, 1
cmp rbx, rcx
jne 0x10008390c
mov rcx, qword [rsp + 0x30]
mov edx, dword [rsp + 0x4c]
mov r13d, 0xdf2e6555
mov r9d, dword [rsp + 0x48]
mov r12, qword [rsp + 0x40]
cmp r8, rcx
je 0x100083ae5
mov eax, dword [r8]
cmp rax, r14
ja 0x100083ae5
mov edi, dword [r8 + 4]
lea rax, [rdi - 8]
shr rax, 1
cmp rbx, rax
jne 0x10008397f
add r8, rdi
cmp r8, rcx
je 0x100083ae5
mov eax, dword [r8]
cmp rax, r14
ja 0x100083ae5
xor ebx, ebx
jmp 0x100083953
mov eax, dword [r8]
cmp rax, r14
jne 0x10008399d
mov ax, word [r8 + rbx*2 + 8]
and eax, 0xfff
cmp rax, qword [rsp + 0x60]
jae 0x100083ae5
mov rax, rbx
add rbx, 1
test word [r8 + rax*2 + 8], 0xf000
je 0x10008393e
xor edi, edi
movzx r11d, word [r8 + rax*2 + 8]
lea rax, [0x100000000]
mov esi, r11d
and esi, 0xfff
add esi, dword [r8]
add rsi, rax
mov rax, rsi
sub rax, r10
je 0x100083a27
mov r15, rax
movzx eax, byte [rdi + r10]
add rdi, 1
sub eax, 0x20d19aab
add r9d, eax
add eax, edx
imul rax, r13
mov qword [rsp + 0x58], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x58]
add ecx, eax
mov edx, ecx
imul edx, edx, 0x7b1f
rol edx, 5
ror ecx, 5
xor edx, ecx
imul edx, edx, 0xdf2e6555
ror edx, 0x1f
add r9d, edx
cmp rdi, r15
jb 0x1000839d7
mov dword [rsp + 0x4c], edx
mov dword [rsp + 0x48], r9d
mov rax, qword [rsi]
mov qword [rsp + 0x58], rax
shr r11d, 0xc
cmp r11d, 3
je 0x100083a49
sub r11d, 0xa
neg r11d
sbb r10d, r10d
add r10d, 3
jmp 0x100083a4f
mov r10d, 2
mov r11, r12
neg r11
sub r10d, 2
je 0x100083a77
cmp r10d, 1
je 0x100083a67
or r10, 0xffffffffffffffff
jmp 0x100083a7f
mov r10d, 8
add rax, r11
mov qword [rsp + 0x58], rax
jmp 0x100083a7f
mov r10, rbp
add dword [rsp + 0x58], r11d
xor r11d, r11d
test r10, r10
je 0x100083ad8
movzx eax, byte [rsp + r11 + 0x58]
add r11, 1
sub eax, 0x20d19aab
add r9d, eax
add eax, edx
imul rax, r13
mov qword [rsp + 0x40], rax
mov ecx, dword [rsp + 0x40]
shr rax, 0x20
add ecx, eax
mov edx, ecx
imul edx, edx, 0x7b1f
rol edx, 5
ror ecx, 5
xor edx, ecx
imul edx, edx, 0xdf2e6555
ror edx, 0x1f
add r9d, edx
cmp r11, r10
jb 0x100083a87
mov dword [rsp + 0x4c], edx
mov dword [rsp + 0x48], r9d
mov rcx, qword [rsp + 0x30]
add r10, rsi
jmp 0x10008393e
xor r8d, r8d
mov r15, qword [rsp + 0x88]
mov r12, qword [rsp + 0x80]
mov r11, qword [rsp + 0x50]
mov dil, r8b
sub r11, r10
mov r13, qword [rsp + 0x98]
je 0x100083b63
mov r14d, 0xdf2e6555
movzx eax, byte [r10 + r8]
add r8, 1
sub eax, 0x20d19aab
add r9d, eax
add eax, edx
imul rax, r14
mov qword [rsp + 0x30], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov edx, ecx
imul edx, edx, 0x7b1f
rol edx, 5
ror ecx, 5
xor edx, ecx
imul edx, edx, 0xdf2e6555
ror edx, 0x1f
add r9d, edx
cmp r8, r11
jb 0x100083b13
mov dword [rsp + 0x4c], edx
mov dword [rsp + 0x48], r9d
mov rbx, qword [rsp + 0x78]
mov esi, dword [rsp + 0x3c]
xor ecx, ecx
mov al, cl
add rcx, 1
and eax, 7
cmp rcx, 8
mov al, byte [rsp + rax + 0x48]
mov byte [rsp + rcx + 0x9f], al
jb 0x100083b6e
mov eax, 0xf4838fee
mov r14b, r15b
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x30], r12
and r14d, 7
mov r11, rbx
mov qword [rsp + 0x40], rbx
mov r10, r12
je 0x1000840b5
not esi
xor r8d, r8d
xor ebx, ebx
mov dword [rsp + 0x60], r8d
mov dword [rsp + 0x50], ebx
xor r11d, r11d
test r14d, r14d
jle 0x100083c08
lea r9d, [r8 + 0x38]
movzx edx, byte [r10]
cmp r11d, ebp
jge 0x100083be1
lea ecx, [r9 - 0x20]
shl edx, cl
or ebx, edx
jmp 0x100083be9
mov ecx, r9d
shl edx, cl
or r8d, edx
add r11d, 1
add r10, 1
sub r9d, 8
cmp r11d, r14d
jl 0x100083bce
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x60], r8d
mov qword [rsp + 0x30], r10
mov ebp, dword [rsp + 0xa4]
movzx r9d, word [rsp + 0xa2]
mov ecx, eax
movzx r11d, word [rsp + 0xa6]
xor ecx, esi
movzx ebx, ax
movzx r10d, word [rsp + 0xa4]
sub ebp, ecx
xor ebp, dword [rsp + 0x3c]
mov edx, ebp
mov ecx, ebx
xor ecx, ebp
ror edx, 9
imul ecx, r11d
add edx, ecx
mov ecx, r11d
xor esi, edx
xor ecx, esi
mov edx, esi
ror edx, 5
imul ecx, r10d
xor edx, ecx
xor ebp, edx
mov ecx, ebp
sub ecx, r9d
xor ecx, dword [rsp + 0xa4]
xor esi, ecx
mov ecx, esi
ror ecx, 7
sub ecx, ebx
imul ecx, r9d
xor ebp, ecx
mov ecx, r11d
mov edx, ebp
mov r8d, ebp
sub r8d, eax
ror r8d, 7
rol edx, 4
imul ecx, r8d
mov r8d, r9d
sub ecx, edx
xor esi, ecx
mov ecx, r10d
xor r8d, esi
rol r8d, 6
mov edx, esi
ror edx, 0xf
imul ecx, r8d
sub ecx, edx
mov r8d, dword [rsp + 0xa4]
xor ebp, ecx
sub r8d, ebp
mov ecx, r9d
ror r8d, 4
mov edx, ebp
ror edx, 2
imul ecx, r8d
mov r8d, dword [rsp + 0xa4]
add edx, ecx
xor esi, edx
mov ecx, ebx
xor r8d, esi
mov edx, esi
ror r8d, 7
ror edx, 0x10
imul ecx, r8d
mov r8d, eax
xor edx, ecx
mov ecx, r11d
xor ebp, edx
sub r8d, ebp
ror r8d, 6
mov edx, ebp
rol edx, 0xe
imul ecx, r8d
sub ecx, edx
xor esi, ecx
mov ecx, esi
sub ecx, eax
sub ecx, r10d
xor ebp, ecx
xor r11d, ebp
mov ecx, ebp
shr ecx, 0xb
imul r11d, r9d
xor r11d, ecx
xor esi, r11d
mov edx, esi
mov ecx, esi
sub edx, r10d
shr ecx, 3
xor r10d, r10d
rol edx, 4
imul edx, ebx
mov ebx, dword [rsp + 0x60]
xor edx, ecx
xor esi, ebx
xor edx, dword [rsp + 0x50]
xor ebp, edx
mov r9d, esi
test r14d, r14d
lea edx, [r10 + 4]
mov r8d, ebp
jle 0x100083d81
mov rcx, qword [rsp + 0x40]
cmp r10d, edx
jge 0x100083d65
rol r8d, 8
mov byte [rcx], r8b
add rcx, 1
xor dil, r8b
jmp 0x100083d73
rol r9d, 8
mov byte [rcx], r9b
add rcx, 1
xor dil, r9b
add r10d, 1
cmp r10d, r14d
jl 0x100083d50
mov qword [rsp + 0x40], rcx
lea ecx, [r14 - 4]
test ecx, ecx
jle 0x10008409d
sub edx, ecx
shl edx, 3
mov ecx, edx
shr esi, cl
shl esi, cl
mov r14d, dword [rsp + 0x50]
mov r11, qword [rsp + 0x40]
mov r10, qword [rsp + 0x30]
mov rcx, r15
shr rcx, 3
mov qword [rsp + 0x30], rcx
je 0x100083fe7
movzx r12d, word [rsp + 0xa4]
mov r13, qword [rsp + 0x30]
movzx ecx, word [rsp + 0xa6]
mov dword [rsp + 0x3c], ecx
movzx ecx, word [rsp + 0xa2]
mov dword [rsp + 0x40], ecx
movzx ecx, word [rsp + 0xa4]
neg ecx
mov dword [rsp + 0x60], ecx
mov r15d, dword [rsp + 0x60]
movzx ecx, ax
mov dword [rsp + 0x50], ecx
movzx r9d, byte [r10 + 1]
movzx r8d, byte [r10 + 4]
movzx ecx, byte [r10]
shl ecx, 8
shl r8d, 8
mov edx, dword [rsp + 0xa4]
or r9d, ecx
movzx ecx, byte [r10 + 2]
add r10, 8
shl r9d, 8
or r9d, ecx
movzx ecx, byte [r10 - 5]
shl r9d, 8
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
xor esi, r8d
mov ecx, eax
xor ecx, esi
sub edx, ecx
mov ecx, dword [rsp + 0x50]
xor edx, r9d
xor ebp, edx
mov edx, ebp
xor ecx, ebp
ror edx, 9
imul ecx, dword [rsp + 0x3c]
add edx, ecx
xor esi, edx
movzx ecx, word [rsp + 0xa6]
mov edx, esi
xor ecx, esi
ror edx, 5
imul ecx, r12d
xor edx, ecx
xor ebp, edx
movzx edx, word [rsp + 0xa2]
mov ecx, ebp
sub ecx, edx
xor ecx, dword [rsp + 0xa4]
xor esi, ecx
mov ecx, esi
ror ecx, 7
sub ecx, dword [rsp + 0x50]
imul ecx, edx
xor ebp, ecx
mov ecx, ebp
mov edx, ebp
sub edx, eax
ror edx, 7
rol ecx, 4
imul edx, dword [rsp + 0x3c]
sub edx, ecx
xor esi, edx
mov ecx, esi
movzx edx, word [rsp + 0xa2]
xor edx, esi
rol edx, 6
ror ecx, 0xf
imul edx, r12d
sub edx, ecx
xor ebp, edx
mov ecx, ebp
mov edx, dword [rsp + 0xa4]
sub edx, ebp
ror edx, 4
ror ecx, 2
imul edx, dword [rsp + 0x40]
add ecx, edx
mov edx, dword [rsp + 0xa4]
xor esi, ecx
mov ecx, esi
xor edx, esi
ror edx, 7
ror ecx, 0x10
imul edx, dword [rsp + 0x50]
xor ecx, edx
mov edx, eax
xor ebp, ecx
mov ecx, ebp
sub edx, ebp
ror edx, 6
rol ecx, 0xe
imul edx, dword [rsp + 0x3c]
sub edx, ecx
xor esi, edx
mov ecx, esi
movzx edx, word [rsp + 0xa6]
sub ecx, eax
sub ecx, r12d
xor ebp, ecx
xor edx, ebp
movzx ecx, word [rsp + 0xa2]
imul edx, ecx
mov ecx, ebp
shr ecx, 0xb
xor edx, ecx
xor esi, edx
mov ecx, esi
lea edx, [rsi + r15]
shr ecx, 3
xor esi, ebx
mov byte [r11 + 7], sil
mov ebx, r8d
rol edx, 4
imul edx, dword [rsp + 0x50]
xor edx, ecx
xor edx, r14d
mov r14d, r9d
xor ebp, edx
mov byte [r11 + 3], bpl
xor dil, bpl
ror ebp, 8
mov byte [r11 + 2], bpl
xor dil, sil
ror esi, 8
mov byte [r11 + 6], sil
xor dil, bpl
ror ebp, 8
xor dil, sil
mov byte [r11 + 1], bpl
ror esi, 8
mov byte [r11 + 5], sil
xor dil, bpl
ror ebp, 8
xor dil, sil
mov byte [r11], bpl
ror esi, 8
mov byte [r11 + 4], sil
add r11, 8
mov cl, sil
xor cl, bpl
xor dil, cl
ror ebp, 8
ror esi, 8
sub r13, 1
jne 0x100083df9
mov r12, qword [rsp + 0x80]
mov r15, qword [rsp + 0x88]
mov r13, qword [rsp + 0x98]
cmp dil, byte [r15 + r12 + 8]
je 0x1000840dc
call fcn.1002d3e40
and r13, 0xfffffffffffffff8
mov r10d, 0xffff
lea rbp, [0x1003e8888]
mov r11, qword [rsp + 0x90]
mov r9, rax
lea r8, [r13 + 0xfff]
mov rax, 0xfffffffffffff000
mov qword [r11 + 0x10], rbp
and r9, rax
mov rcx, qword [0x100495210]
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 0x100084034
mov qword [0x100495210], rcx
movabs rax, 0x8000800080008001
mul rdi
shr rdx, 0xf
imul rdx, rdx, 0xffff
sub rdi, rdx
add rdi, 1
mov rax, qword [rsp + 0x70]
mov qword [rax + 0x98], r9
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x70], 0
jmp 0x1000840d2
xor esi, esi
test ecx, ecx
jns 0x100083d98
neg ecx
shl ecx, 3
shr ebp, cl
shl ebp, cl
jmp 0x100083d98
mov ebx, esi
mov r14d, esi
not ebx
xor esi, esi
xor ebp, ebp
jmp 0x100083da7
mov rax, qword [rsp + 0x70]
mov qword [r13], rax
add r13, 8
cmp r13, r8
jb 0x1000840c5
jmp 0x1000841f3
mov rax, qword [0x1003f4900]
mov rbp, qword [rsp + 0x78]
lea r14, [0x100000000]
mov rsi, r14
mov rbx, r12
sub rbx, rbp
sub rsi, rax
jne 0x100084106
test rbx, rbx
je 0x1000841e0
xor edi, edi
mov rcx, qword [0x1000016e8]
mov r11, rbp
sub r11, r12
lea r8d, [rcx - 1]
sub r12d, r14d
lea r13d, [r15 + r12]
test r8d, r8d
lea r15, [0x100000000]
js 0x10008415c
lea eax, [r8 + rdi]
cdq
sub eax, edx
sar eax, 1
movsxd rdx, eax
mov r9d, dword [r15 + rdx*4 + 0x16ec]
and r9d, 0xfffffff
cmp r12d, r9d
jae 0x100084152
lea r8d, [rax - 1]
jmp 0x100084157
jbe 0x100084161
lea edi, [rax + 1]
cmp r8d, edi
jge 0x10008412c
movsxd r10, edi
jmp 0x1000841d9
movsxd r10, eax
jmp 0x1000841d9
mov edx, dword [r15 + r10*4 + 0x16ec]
mov eax, edx
and eax, 0xfffffff
cmp eax, r13d
jae 0x1000841e0
mov edi, edx
mov r8, rdx
sar edx, 0x1e
shl edi, 2
and r8d, 0xfffffff
and edx, 3
sar edi, 0x1e
add r8, r14
xor r9d, r9d
and edi, 3
sub edi, 1
je 0x1000841b4
sub edi, 1
je 0x1000841af
cmp edi, 1
jne 0x1000841ba
mov r9, rsi
jmp 0x1000841ba
mov r9, rbx
jmp 0x1000841ba
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x1000841ca
cmp edx, 1
jne 0x1000841d5
add qword [r8 + r11], r9
jmp 0x1000841ce
add dword [r8 + r11], r9d
mov rcx, qword [0x1000016e8]
add r10, 1
mov eax, ecx
cmp r10, rax
jb 0x100084166
mov eax, dword [0x1002f3aa4]
mov eax, 0x769857e5
mov r11, qword [rsp + 0x90]
mov qword [r11 + 0x10], rbp
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1002d532c
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret