Function at 0x100324f00
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, 0xb0
mov rax, qword [0x100404bb0]
xor rax, rsp
mov qword [rsp + 0xa8], rax
lea r11, [0x100000000]
mov eax, dword [0x100015964]
mov r12, qword [rcx + 0x10]
mov qword [rsp + 0x68], rdx
mov r15d, 0x269ec3
mov r14d, 0xfffffff
mov r13d, 0x8000
mov edx, dword [r12 + 1]
shr rdx, 1
and rdx, r14
lea rsi, [rax + rdx - 1]
xor edx, edx
mov qword [rsp + 0x90], rcx
mov rcx, rax
mov rax, rsi
div rcx
sub rsi, rdx
mov eax, dword [0x100015964]
mov eax, dword [0x100015964]
mov eax, dword [0x10028bf00]
test eax, eax
mov r10d, dword [0x10028bf00]
je 0x100325025
mov edi, dword [0x10028bf00]
xor r8d, r8d
xor eax, eax
dec edi
inc rdi
mov r9, rdi
je 0x100324fdf
mov rcx, qword [0x1003fe198]
imul rcx, rcx, 0x343fd
shl rax, 0x10
shr r9, 0x10
add rcx, r15
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
test r9, r9
jne 0x100324fb4
mov qword [0x1003fe198], rcx
xor edx, edx
div rdi
test r10, r10
je 0x10032501a
mov eax, 0xef0b
mov ecx, 0xffff10f4
inc r8
lock cmpxchg dword [r11 + rdx*4 + 0x4059e0], ecx
je 0x10032529f
mov ecx, dword [0x10028bf00]
lea rax, [rdx + 1]
xor edx, edx
div rcx
cmp r8, r10
jb 0x100324fe9
xor ebx, ebx
test rbx, rbx
jne 0x100325146
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov ebp, eax
mov rcx, qword [0x100405548]
inc rdi
mov r8, rcx
xor eax, eax
test rcx, rcx
mov r9, rcx
je 0x100325078
mov rcx, qword [0x1003fe198]
imul rcx, rcx, 0x343fd
shl rax, 0x10
shr r9, 0x10
add rcx, r15
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
test r9, r9
jne 0x10032504d
mov qword [0x1003fe198], rcx
mov r9d, 0x40
xor edx, edx
div r8
mov rcx, rdx
mov rdx, rsi
shl rcx, 0x10
mov r8d, 0x3000
add rcx, qword [0x10041cd78]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x1003250e0
and qword [rsp + 0x28], 0
mov rcx, rax
mov rdx, rax
mov r8d, esi
lea r9, [0x100363da0]
and qword [rsp + 0x20], 0
or rcx, 3
call qword [sym.imp.ntdll.dll_RtlInstallFunctionTableCallback]
test al, al
jne 0x1003250f4
mov rcx, rbx
xor edx, edx
mov r8d, r13d
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp rdi, 0x11
jb 0x10032502f
xor ebx, ebx
cmp rbx, 0x10000
jb 0x100325102
test bl, 3
je 0x100325124
test rbx, rbx
je 0x100325122
mov rcx, rbx
or rcx, 3
call qword [sym.imp.ntdll.dll_RtlDeleteFunctionTable]
mov r8d, r13d
xor edx, edx
mov rcx, rbx
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 0x100324f7d
xor eax, eax
mov rdi, rbx
mov rcx, rsi
rep stosb byte [rdi], al
mov eax, 0xac59ba0c
mov r8d, dword [0x100015964]
lea r13, [0x100000000]
mov ebp, dword [r12 + 1]
mov rax, rbp
shr rbp, 1
shr rax, 0x1d
lea r12, [rax + r12 + 9]
and rbp, r14
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x80], rbp
mov esi, r12d
sub r8, rbp
xor eax, eax
sub esi, r13d
mov dword [rsp + 0x30], esi
inc r8
mov rdi, r8
je 0x1003251c9
mov rcx, qword [0x1003fe198]
imul rcx, rcx, 0x343fd
shl rax, 0x10
shr rdi, 0x10
add rcx, r15
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
test rdi, rdi
jne 0x10032519e
mov qword [0x1003fe198], rcx
xor edx, edx
div r8
mov ecx, esi
add rbx, rdx
mov r8, rbx
mov qword [rsp + 0x70], rbx
mov rdx, rbp
mov eax, 0xdfc45a14
lea rcx, [rsp + 0x60]
mov rdx, qword [r12 + rbp]
mov qword [rsp + 0x60], rdx
xor dil, dil
mov eax, 0x28f611bc
mov r8d, dword [rsp + 0x64]
mov rax, qword [0x10014dad0]
mov r11, qword [rsp + 0x60]
and qword [rsp + 0x38], 0
mov rcx, r13
and r11, r14
and r8, r14
add r11, r13
sub rcx, rax
mov qword [rsp + 0x58], rcx
mov r14d, 4
jne 0x1003252b6
xor r10d, r10d
test r8, r8
je 0x1003255a8
mov ecx, dword [rsp + 0x3c]
mov r9d, dword [rsp + 0x38]
mov r13d, 0xaba54d66
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 0x10032524b
mov dword [rsp + 0x3c], ecx
mov dword [rsp + 0x38], r9d
jmp 0x1003255a8
mov ecx, dword [0x100015964]
imul rcx, rdx
lea rbx, [rcx + r11 + 0x3df000]
jmp 0x10032501c
movsxd rcx, dword [0x10000003c]
lea rax, [r11 + r8]
mov r9d, dword [rcx + r13 + 0xb0]
mov ecx, dword [rcx + r13 + 0xb4]
mov qword [rsp + 0x78], rax
add r9, r13
mov eax, r11d
sub eax, r13d
lea r13, [rax + r8]
mov r10d, eax
and r10, 0xfffffffffffff000
mov ebx, eax
mov r15, r13
sub rbx, r10
and r15, 0xfffffffffffff000
sub r13, r15
add rcx, r9
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x98], r13
jmp 0x100325320
mov eax, dword [r9]
cmp rax, r10
jae 0x100325325
mov eax, dword [r9 + 4]
add r9, rax
cmp r9, rcx
jne 0x100325311
xor esi, esi
cmp r9, rcx
je 0x100325363
mov eax, dword [r9]
cmp rax, r10
jne 0x100325363
mov ecx, dword [r9 + 4]
sub rcx, 8
shr rcx, 1
je 0x10032535e
lea rdx, [r9 + 8]
movzx eax, word [rdx]
and eax, 0xfff
cmp rax, rbx
jae 0x10032535e
inc rsi
add rdx, 2
cmp rsi, rcx
jne 0x100325345
mov rcx, qword [rsp + 0x40]
mov r10d, dword [rsp + 0x38]
mov r8d, dword [rsp + 0x3c]
mov edi, 0xaba54d66
cmp r9, rcx
je 0x100325524
mov eax, dword [r9]
cmp rax, r15
ja 0x100325524
mov edx, dword [r9 + 4]
lea rax, [rdx - 8]
shr rax, 1
cmp rsi, rax
jne 0x1003253b3
add r9, rdx
cmp r9, rcx
je 0x100325524
mov eax, dword [r9]
cmp rax, r15
ja 0x100325524
xor esi, esi
jmp 0x100325387
mov eax, dword [r9]
cmp rax, r15
jne 0x1003253cf
movzx eax, word [r9 + rsi*2 + 8]
and eax, 0xfff
cmp rax, r13
jae 0x100325524
mov rax, rsi
mov edx, 0xf000
inc rsi
test word [r9 + rax*2 + 8], dx
je 0x100325372
xor ebp, ebp
movzx ebx, word [r9 + rax*2 + 8]
lea rax, [0x100000000]
mov r13d, ebx
and r13d, 0xfff
add r13d, dword [r9]
add r13, rax
mov rax, r13
sub rax, r11
je 0x100325461
mov r12, rax
movzx eax, byte [r11 + rbp]
inc rbp
sub eax, 0x545ab29a
add r10d, eax
add eax, r8d
imul rax, rdi
mov qword [rsp + 0x48], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x48]
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 rbp, r12
jb 0x10032540c
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x38], r10d
mov rax, qword [r13]
mov qword [rsp + 0x48], rax
shr ebx, 0xc
cmp ebx, 3
je 0x10032547e
sub ebx, 0xa
neg ebx
sbb edx, edx
add edx, 3
jmp 0x100325483
mov edx, 2
mov r11, qword [rsp + 0x58]
neg r11
sub edx, 2
je 0x1003254ab
cmp edx, 1
je 0x10032549b
or r11, 0xffffffffffffffff
jmp 0x1003254b3
add rax, r11
mov r11d, 8
mov qword [rsp + 0x48], rax
jmp 0x1003254b3
add dword [rsp + 0x48], r11d
mov r11, r14
xor ebx, ebx
test r11, r11
je 0x10032550f
movzx eax, byte [rsp + rbx + 0x48]
inc rbx
sub eax, 0x545ab29a
add r10d, eax
add eax, r8d
imul rax, rdi
mov qword [rsp + 0x50], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x50]
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 0x1003254ba
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x38], r10d
mov rcx, qword [rsp + 0x40]
add r11, r13
mov r13, qword [rsp + 0x98]
jmp 0x100325372
mov rbp, qword [rsp + 0x80]
mov r12, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x78]
xor r9d, r9d
sub rbx, r11
mov dil, r9b
je 0x10032559f
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 + 0x78], rax
mov ecx, dword [rsp + 0x78]
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 r9, rbx
jb 0x10032554a
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
mov al, byte [rsp + rax + 0x38]
cmp rcx, 8
mov byte [rsp + rcx + 0x9f], al
jb 0x1003255aa
mov eax, 0x94dcd03
mov r10, rbx
mov r15, r12
mov r13, rbp
mov rax, qword [rsp + 0xa0]
and r13d, 7
mov qword [rsp + 0x40], rbx
je 0x100325a65
mov ebx, esi
xor r8d, r8d
xor r11d, r11d
mov dword [rsp + 0x58], r8d
not ebx
xor r10d, r10d
mov dword [rsp + 0x50], r11d
test r13d, r13d
jle 0x10032563e
lea r9d, [r8 + 0x38]
cmp r10d, r14d
movzx edx, byte [r15]
jge 0x10032561d
lea ecx, [r9 - 0x20]
shl edx, cl
or r11d, edx
jmp 0x100325625
mov ecx, r9d
shl edx, cl
or r8d, edx
inc r10d
inc r15
sub r9d, 8
cmp r10d, r13d
jl 0x100325609
mov dword [rsp + 0x50], r11d
mov dword [rsp + 0x58], r8d
mov ecx, esi
movzx r9d, ax
mov edx, dword [rsp + 0xa4]
movzx r8d, word [rsp + 0xa2]
movzx r10d, word [rsp + 0xa4]
movzx r11d, word [rsp + 0xa6]
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
mov edx, dword [rsp + 0xa4]
xor ebx, ecx
mov ecx, ebx
sub edx, ebx
rol edx, 0xe
ror ecx, 0xb
imul edx, r9d
add ecx, edx
xor esi, ecx
mov ecx, esi
mov edx, eax
xor edx, esi
rol edx, 7
rol ecx, 0xd
imul edx, r11d
xor ecx, edx
xor ebx, ecx
mov ecx, ebx
mov edx, ebx
xor edx, r11d
shr ecx, 0xc
rol edx, 2
imul edx, r10d
add edx, ecx
xor esi, edx
mov edx, esi
mov ecx, esi
sub edx, dword [rsp + 0xa4]
rol edx, 5
ror ecx, 0xb
imul edx, r8d
xor ecx, edx
xor ebx, ecx
mov ecx, ebx
mov edx, ebx
xor edx, r10d
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
mov r11d, dword [rsp + 0x58]
imul edx, r9d
shr ecx, 7
xor ebx, r11d
xor r9d, r9d
add edx, ecx
mov r8d, ebx
xor edx, dword [rsp + 0x50]
xor esi, edx
test r13d, r13d
mov edx, esi
jle 0x100325784
mov rcx, qword [rsp + 0x40]
cmp r9d, r14d
jge 0x10032576a
rol edx, 8
mov byte [rcx], dl
inc rcx
xor dil, dl
jmp 0x100325777
rol r8d, 8
mov byte [rcx], r8b
inc rcx
xor dil, r8b
inc r9d
cmp r9d, r13d
jl 0x100325758
mov qword [rsp + 0x40], rcx
lea ecx, [r13 - 4]
test ecx, ecx
jle 0x100325a4d
sub r14d, ecx
shl r14d, 3
mov ecx, r14d
shr ebx, cl
shl ebx, cl
mov r14d, dword [rsp + 0x50]
mov r10, qword [rsp + 0x40]
mov r13, rbp
shr r13, 3
test r13, r13
je 0x100325992
movzx r12d, word [rsp + 0xa6]
movzx ebp, word [rsp + 0xa4]
movzx ecx, word [rsp + 0xa2]
mov dword [rsp + 0x58], ecx
movzx ecx, ax
mov dword [rsp + 0x30], ecx
mov edx, dword [rsp + 0xa4]
movzx r9d, byte [r15 + 1]
movzx r8d, byte [r15 + 4]
movzx ecx, byte [r15]
shl ecx, 8
shl r8d, 8
or r9d, ecx
movzx ecx, byte [r15 + 2]
add r15, 8
shl r9d, 8
or r9d, ecx
movzx ecx, byte [r15 - 5]
shl r9d, 8
or r9d, ecx
movzx ecx, byte [r15 - 3]
or r8d, ecx
movzx ecx, byte [r15 - 2]
xor esi, r9d
shl r8d, 8
or r8d, ecx
shl r8d, 8
movzx ecx, byte [r15 - 1]
or r8d, ecx
mov ecx, esi
sub ecx, r12d
xor ecx, eax
xor ecx, r8d
xor ebx, ecx
mov ecx, ebx
not ecx
ror ecx, 5
add ecx, ebp
imul ecx, r12d
xor esi, ecx
xor edx, esi
mov ecx, eax
sub ecx, edx
mov edx, dword [rsp + 0xa4]
xor ebx, ecx
mov ecx, ebx
sub edx, ebx
rol edx, 0xe
ror ecx, 0xb
imul edx, dword [rsp + 0x30]
add ecx, edx
xor esi, ecx
mov ecx, esi
mov edx, eax
xor edx, esi
rol edx, 7
rol ecx, 0xd
imul edx, r12d
xor ecx, edx
xor ebx, ecx
mov edx, ebx
xor edx, r12d
mov ecx, ebx
shr ecx, 0xc
rol edx, 2
imul edx, ebp
add edx, ecx
xor esi, edx
mov ecx, esi
mov edx, esi
sub edx, dword [rsp + 0xa4]
rol edx, 5
ror ecx, 0xb
imul edx, dword [rsp + 0x58]
xor ecx, edx
xor ebx, ecx
mov edx, ebx
xor edx, ebp
rol edx, 1
mov ecx, ebx
rol ecx, 1
imul edx, dword [rsp + 0x30]
sub edx, ecx
xor esi, edx
mov edx, esi
sub edx, ebp
imul edx, r12d
mov ecx, esi
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, ebp
sub edx, ecx
xor esi, edx
movzx edx, word [rsp + 0xa2]
mov ecx, esi
ror ecx, 6
sub ecx, edx
imul ecx, r12d
xor ebx, ecx
mov ecx, ebx
mov edx, ebx
xor ebx, r11d
mov byte [r10 + 7], bl
mov r11d, r8d
xor edx, r12d
shr ecx, 7
imul edx, dword [rsp + 0x30]
add edx, ecx
xor edx, r14d
xor esi, edx
mov byte [r10 + 3], sil
mov r14d, r9d
xor dil, sil
ror esi, 8
mov byte [r10 + 2], sil
xor dil, bl
ror ebx, 8
xor dil, sil
ror esi, 8
mov byte [r10 + 6], bl
mov byte [r10 + 1], sil
xor dil, bl
ror ebx, 8
xor dil, sil
mov byte [r10 + 5], bl
ror esi, 8
xor dil, bl
mov byte [r10], sil
ror ebx, 8
mov cl, bl
mov byte [r10 + 4], bl
add r10, 8
xor cl, sil
xor dil, cl
ror esi, 8
ror ebx, 8
sub r13, 1
jne 0x1003257dc
mov r12, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
mov al, byte [r12 + rbp + 8]
xor al, dil
je 0x100325a8d
call fcn.10000228c
mov rbx, qword [rsp + 0x90]
lea r13, [0x10006d7ac]
mov qword [rbx + 0x10], r13
mov rcx, qword [0x1003fe198]
lea r8, [rbx + 0x18]
and r8, 0xfffffffffffffff8
mov r11, rax
mov rax, 0xfffffffffffff000
mov r10d, 0xffff
and r11, rax
lea r9, [r8 + 0xfff]
and r9, rax
xor edi, edi
imul rcx, rcx, 0x343fd
shl rdi, 0x10
shr r10, 0x10
add rcx, 0x269ec3
mov rax, rcx
shr rax, 0x10
movzx edx, ax
or rdi, rdx
test r10, r10
jne 0x1003259e6
movabs rax, 0x8000800080008001
mul rdi
shr rdx, 0xf
imul rdx, rdx, 0xffff
sub rdi, rdx
mov qword [0x1003fe198], rcx
inc rdi
mov rax, qword [rsp + 0x68]
mov qword [rax + 0x98], r11
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x68], r10
jmp 0x100325a83
xor ebx, ebx
test ecx, ecx
jns 0x10032579e
neg ecx
shl ecx, 3
shr esi, cl
shl esi, cl
jmp 0x10032579e
xor ebx, ebx
mov r11d, esi
not r11d
mov r14d, esi
xor esi, esi
jmp 0x1003257a8
mov rax, qword [rsp + 0x68]
mov qword [r8], rax
add r8, 8
cmp r8, r9
jb 0x100325a77
jmp 0x100325ba1
lea r14, [0x100000000]
mov rax, qword [0x10014dad0]
mov r13, qword [rsp + 0x70]
mov rsi, r14
mov rbx, r12
sub rbx, r13
sub rsi, rax
jne 0x100325ab7
test rbx, rbx
je 0x100325b8e
mov r11, r13
mov rcx, qword [0x100019a28]
lea r8d, [rcx - 1]
xor edi, edi
sub r11, r12
sub r12d, r14d
lea r15, [0x100000000]
add ebp, r12d
test r8d, r8d
js 0x100325b0c
lea eax, [r8 + rdi]
cdq
sub eax, edx
sar eax, 1
movsxd rdx, eax
mov r9d, dword [r15 + rdx*4 + 0x19a2c]
and r9d, 0xfffffff
cmp r12d, r9d
jae 0x100325b02
lea r8d, [rax - 1]
jmp 0x100325b07
jbe 0x100325b11
lea edi, [rax + 1]
cmp r8d, edi
jge 0x100325adc
movsxd r10, edi
jmp 0x100325b87
movsxd r10, eax
jmp 0x100325b87
mov edx, dword [r15 + r10*4 + 0x19a2c]
mov eax, edx
and eax, 0xfffffff
cmp eax, ebp
jae 0x100325b8e
mov r8, rdx
mov edi, edx
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 0x100325b63
sub edi, 1
je 0x100325b5e
cmp edi, 1
jne 0x100325b69
mov r9, rsi
jmp 0x100325b69
mov r9, rbx
jmp 0x100325b69
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x100325b79
cmp edx, 1
jne 0x100325b84
add qword [r8 + r11], r9
jmp 0x100325b7d
add dword [r8 + r11], r9d
mov rcx, qword [0x100019a28]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x100325b16
mov eax, dword [0x100015964]
mov eax, 0x7cfa46b5
mov rbx, qword [rsp + 0x90]
mov qword [rbx + 0x10], r13
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1003005f0
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret