Function at 0x100284890
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 [0x1004c4740]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov eax, dword [0x1002f8888]
mov r14d, 0xfffffff
mov r13d, 0x8000
mov r12, qword [rcx + 0x10]
lea r11, [0x100000000]
mov qword [rsp + 0x70], rdx
mov edx, dword [r12 + 1]
mov r15d, 0x269ec3
mov qword [rsp + 0x90], rcx
shr rdx, 3
mov rcx, rax
and rdx, r14
lea rsi, [rax + rdx - 1]
mov rax, rsi
xor edx, edx
div rcx
sub rsi, rdx
mov eax, dword [0x1002f8888]
mov eax, dword [0x1002f8888]
mov eax, dword [0x1002a02b4]
mov r10d, dword [0x1002a02b4]
test eax, eax
je 0x1002849b6
mov edi, dword [0x1002a02b4]
xor r8d, r8d
xor eax, eax
dec edi
inc rdi
mov r9, rdi
je 0x100284970
mov rcx, qword [0x1004c43a0]
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 0x100284945
mov qword [0x1004c43a0], rcx
xor edx, edx
div rdi
test r10, r10
je 0x1002849ab
mov eax, 0x3bd7
mov ecx, 0xffffc428
inc r8
lock cmpxchg dword [r11 + rdx*4 + 0x4c5a60], ecx
je 0x100284c24
mov ecx, dword [0x1002a02b4]
lea rax, [rdx + 1]
xor edx, edx
div rcx
cmp r8, r10
jb 0x10028497a
xor ebx, ebx
test rbx, rbx
jne 0x100284ad7
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov ebp, eax
inc rdi
mov rcx, qword [0x1004c4380]
mov r8, rcx
mov r9, rcx
xor eax, eax
test rcx, rcx
je 0x100284a09
mov rcx, qword [0x1004c43a0]
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 0x1002849de
mov qword [0x1004c43a0], rcx
mov r9d, 0x40
xor edx, edx
div r8
mov rcx, rdx
shl rcx, 0x10
mov r8d, 0x3000
mov rdx, rsi
add rcx, qword [0x1004c4308]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
mov rbx, rax
je 0x100284a71
and qword [rsp + 0x28], 0
mov rdx, rax
mov r8d, esi
and qword [rsp + 0x20], 0
lea r9, [0x100435424]
mov rcx, rax
or rcx, 3
call qword [sym.imp.ntdll.dll_RtlInstallFunctionTableCallback]
test al, al
jne 0x100284a85
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 0x1002849c0
xor ebx, ebx
cmp rbx, 0x10000
jb 0x100284a93
test bl, 3
je 0x100284ab5
test rbx, rbx
je 0x100284ab3
mov rcx, rbx
or rcx, 3
call qword [sym.imp.ntdll.dll_RtlDeleteFunctionTable]
xor edx, edx
mov r8d, r13d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ebx, ebx
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
lea r11, [0x100000000]
je 0x10028490e
xor eax, eax
mov rcx, rsi
mov rdi, rbx
rep stosb byte [rdi], al
mov eax, 0x85b67a96
mov r8d, dword [0x1002f8888]
lea r13, [0x100000000]
mov ebp, dword [r12 + 1]
mov rax, rbp
shr rbp, 3
and eax, 7
lea r12, [rax + r12 + 9]
and rbp, r14
sub r8, rbp
mov qword [rsp + 0x88], r12
mov esi, r12d
mov qword [rsp + 0x80], rbp
xor eax, eax
sub esi, r13d
inc r8
mov rdi, r8
mov dword [rsp + 0x30], esi
je 0x100284b5a
mov rcx, qword [0x1004c43a0]
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 0x100284b2f
mov qword [0x1004c43a0], rcx
mov ecx, esi
xor edx, edx
div r8
add rbx, rdx
mov r8, rbx
mov qword [rsp + 0x68], rbx
mov rdx, rbp
mov eax, 0x5051645d
xor dil, dil
lea rcx, [rsp + 0x60]
mov rdx, qword [r12 + rbp]
mov qword [rsp + 0x60], rdx
mov eax, 0x4e48e103
mov r10, qword [rsp + 0x60]
mov rax, qword [0x1000487b8]
mov rcx, r13
mov r9d, dword [rsp + 0x64]
and qword [rsp + 0x40], 0
and r10, r14
and r9, r14
mov r14d, 4
add r10, r13
sub rcx, rax
mov qword [rsp + 0x48], rcx
jne 0x100284c3b
xor r11d, r11d
test r9, r9
je 0x100284f0a
mov edx, dword [rsp + 0x44]
mov r13d, 0x966c4cad
mov r8d, dword [rsp + 0x40]
movzx ecx, byte [r11 + r10]
inc r11
sub ecx, 0x6993b353
add r8d, ecx
add ecx, edx
mov eax, ecx
imul eax, eax, 0x81ee
rol eax, 0xd
ror ecx, 0xd
xor eax, ecx
imul rax, r13
mov qword [rsp + 0x38], rax
mov edx, dword [rsp + 0x38]
shr rax, 0x20
add edx, eax
add r8d, edx
cmp r11, r9
jb 0x100284bd8
mov dword [rsp + 0x44], edx
mov dword [rsp + 0x40], r8d
jmp 0x100284f0a
mov ecx, dword [0x1002f8888]
imul rcx, rdx
lea rbx, [rcx + r11 + 0x454000]
jmp 0x1002849ad
lea rax, [r10 + r9]
movsxd rcx, dword [0x10000003c]
mov r8d, dword [rcx + r13 + 0xb0]
add r8, r13
mov ecx, dword [rcx + r13 + 0xb4]
mov qword [rsp + 0x78], rax
mov eax, r10d
sub eax, r13d
mov r11d, eax
lea r15, [rax + r9]
and r11, 0xfffffffffffff000
mov esi, eax
sub rsi, r11
mov r13, r15
and r13, 0xfffffffffffff000
sub r15, r13
add rcx, r8
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x50], r15
jmp 0x100284ca2
mov eax, dword [r8]
cmp rax, r11
jae 0x100284ca7
mov eax, dword [r8 + 4]
add r8, rax
cmp r8, rcx
jne 0x100284c93
xor ebx, ebx
cmp r8, rcx
je 0x100284ce5
mov eax, dword [r8]
cmp rax, r11
jne 0x100284ce5
mov ecx, dword [r8 + 4]
sub rcx, 8
shr rcx, 1
je 0x100284ce0
lea rdx, [r8 + 8]
movzx eax, word [rdx]
and eax, 0xfff
cmp rax, rsi
jae 0x100284ce0
inc rbx
add rdx, 2
cmp rbx, rcx
jne 0x100284cc7
mov rcx, qword [rsp + 0x38]
mov edx, dword [rsp + 0x44]
mov r12, qword [rsp + 0x48]
mov r9d, dword [rsp + 0x40]
mov edi, 0x966c4cad
cmp r8, rcx
je 0x100284e94
mov eax, dword [r8]
cmp rax, r13
ja 0x100284e94
mov r11d, dword [r8 + 4]
lea rax, [r11 - 8]
shr rax, 1
cmp rbx, rax
jne 0x100284d39
add r8, r11
cmp r8, rcx
je 0x100284e94
mov eax, dword [r8]
cmp rax, r13
ja 0x100284e94
xor ebx, ebx
jmp 0x100284d0d
mov eax, dword [r8]
cmp rax, r13
jne 0x100284d55
movzx eax, word [r8 + rbx*2 + 8]
and eax, 0xfff
cmp rax, r15
jae 0x100284e94
mov rax, rbx
mov r11d, 0xf000
inc rbx
test word [r8 + rax*2 + 8], r11w
je 0x100284cf8
movzx r11d, word [r8 + rax*2 + 8]
mov esi, r11d
xor r15d, r15d
lea rax, [0x100000000]
and esi, 0xfff
add esi, dword [r8]
add rsi, rax
mov rax, rsi
sub rax, r10
je 0x100284dda
mov rbp, rax
movzx ecx, byte [r10 + r15]
inc r15
sub ecx, 0x6993b353
add r9d, ecx
add ecx, edx
mov eax, ecx
imul eax, eax, 0x81ee
rol eax, 0xd
ror ecx, 0xd
xor eax, ecx
imul rax, rdi
mov qword [rsp + 0x58], rax
shr rax, 0x20
mov edx, dword [rsp + 0x58]
add edx, eax
add r9d, edx
cmp r15, rbp
jb 0x100284d93
mov dword [rsp + 0x44], edx
mov dword [rsp + 0x40], r9d
mov rax, qword [rsi]
mov qword [rsp + 0x58], rax
shr r11d, 0xc
cmp r11d, 3
je 0x100284dfc
sub r11d, 0xa
neg r11d
sbb r10d, r10d
add r10d, 3
jmp 0x100284e02
mov r10d, 2
mov r11, r12
neg r11
sub r10d, 2
je 0x100284e2a
cmp r10d, 1
je 0x100284e1a
or r10, 0xffffffffffffffff
jmp 0x100284e32
add rax, r11
mov r10d, 8
mov qword [rsp + 0x58], rax
jmp 0x100284e32
add dword [rsp + 0x58], r11d
mov r10, r14
xor r11d, r11d
test r10, r10
je 0x100284e82
movzx ecx, byte [rsp + r11 + 0x58]
inc r11
sub ecx, 0x6993b353
add r9d, ecx
add ecx, edx
mov eax, ecx
imul eax, eax, 0x81ee
rol eax, 0xd
ror ecx, 0xd
xor eax, ecx
imul rax, rdi
mov qword [rsp + 0x48], rax
mov edx, dword [rsp + 0x48]
shr rax, 0x20
add edx, eax
add r9d, edx
cmp r11, r10
jb 0x100284e3a
mov dword [rsp + 0x44], edx
mov dword [rsp + 0x40], r9d
add r10, rsi
mov rcx, qword [rsp + 0x38]
mov r15, qword [rsp + 0x50]
jmp 0x100284cf8
xor r8d, r8d
mov r12, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x78]
sub rbx, r10
mov rbp, qword [rsp + 0x80]
mov dil, r8b
je 0x100284f01
mov r11d, 0x966c4cad
movzx ecx, byte [r10 + r8]
inc r8
sub ecx, 0x6993b353
add r9d, ecx
add ecx, edx
mov eax, ecx
imul eax, eax, 0x81ee
rol eax, 0xd
ror ecx, 0xd
xor eax, ecx
imul rax, r11
mov qword [rsp + 0x78], rax
shr rax, 0x20
mov edx, dword [rsp + 0x78]
add edx, eax
add r9d, edx
cmp r8, rbx
jb 0x100284eba
mov dword [rsp + 0x44], edx
mov dword [rsp + 0x40], r9d
mov rbx, qword [rsp + 0x68]
mov esi, dword [rsp + 0x30]
xor ecx, ecx
mov rax, rcx
inc rcx
and eax, 7
mov al, byte [rsp + rax + 0x40]
cmp rcx, 8
mov byte [rsp + rcx + 0x97], al
jb 0x100284f0c
mov eax, 0xc0793c1f
mov r10, rbx
mov rax, qword [rsp + 0x98]
mov r13, rbp
mov r15, r12
and r13d, 7
mov qword [rsp + 0x38], rbx
je 0x1002853eb
xor r8d, r8d
mov dword [rsp + 0x48], r8d
mov ebx, esi
xor r11d, r11d
mov dword [rsp + 0x50], r11d
xor r10d, r10d
not ebx
test r13d, r13d
jle 0x100284fa0
lea r9d, [r8 + 0x38]
cmp r10d, r14d
movzx edx, byte [r15]
jge 0x100284f7f
lea ecx, [r9 - 0x20]
shl edx, cl
or r11d, edx
jmp 0x100284f87
mov ecx, r9d
shl edx, cl
or r8d, edx
inc r10d
inc r15
sub r9d, 8
cmp r10d, r13d
jl 0x100284f6b
mov dword [rsp + 0x50], r11d
mov dword [rsp + 0x48], r8d
mov edx, eax
movzx r8d, word [rsp + 0x9e]
movzx r10d, word [rsp + 0x9a]
mov ecx, esi
movzx r11d, ax
sub ecx, eax
sub ecx, r8d
movzx r9d, word [rsp + 0x9c]
xor ebx, ecx
mov esi, ebx
sub esi, r9d
xor esi, eax
xor esi, dword [rsp + 0x30]
mov ecx, esi
ror ecx, 0xe
xor ecx, r10d
imul ecx, r8d
xor ebx, ecx
mov ecx, ebx
ror ecx, 4
sub ecx, r11d
imul ecx, r10d
xor esi, ecx
sub edx, esi
rol edx, 0xd
mov ecx, esi
rol ecx, 0xd
imul edx, r8d
add ecx, edx
xor ebx, ecx
mov ecx, ebx
mov edx, ebx
xor edx, r10d
shr ecx, 9
imul edx, r9d
xor edx, ecx
xor esi, edx
mov ecx, esi
mov edx, esi
xor edx, r9d
rol edx, 1
ror ecx, 0x10
imul edx, r10d
add ecx, edx
xor ebx, ecx
mov ecx, ebx
mov edx, ebx
xor edx, r10d
rol edx, 5
rol ecx, 3
imul edx, r11d
sub edx, ecx
xor esi, edx
mov ecx, esi
not ecx
ror ecx, 6
add ecx, r8d
imul ecx, r9d
xor ebx, ecx
mov edx, ebx
sub edx, eax
mov ecx, ebx
rol edx, 5
ror ecx, 2
imul edx, r9d
add ecx, edx
xor esi, ecx
mov edx, esi
mov ecx, esi
sub edx, r11d
shr ecx, 9
rol edx, 4
imul edx, r10d
xor edx, ecx
xor ebx, edx
mov ecx, ebx
mov edx, ebx
sub edx, dword [rsp + 0x9c]
rol edx, 0xb
ror ecx, 8
imul edx, r11d
xor ecx, edx
xor r9d, r9d
xor ecx, dword [rsp + 0x50]
mov r11d, dword [rsp + 0x48]
xor ebx, r11d
xor esi, ecx
test r13d, r13d
mov edx, ebx
mov ecx, esi
jle 0x1002850d9
mov r8, qword [rsp + 0x38]
cmp r9d, r14d
jge 0x1002850c0
rol ecx, 8
mov byte [r8], cl
inc r8
xor dil, cl
jmp 0x1002850cc
rol edx, 8
mov byte [r8], dl
inc r8
xor dil, dl
inc r9d
cmp r9d, r13d
jl 0x1002850ad
mov qword [rsp + 0x38], r8
lea ecx, [r13 - 4]
test ecx, ecx
jle 0x1002853d3
sub r14d, ecx
shl r14d, 3
mov ecx, r14d
shr ebx, cl
shl ebx, cl
mov r14d, dword [rsp + 0x50]
mov r10, qword [rsp + 0x38]
mov r13, rbp
shr r13, 3
test r13, r13
je 0x10028531b
movzx ecx, word [rsp + 0x9e]
movzx r12d, ax
movzx edx, word [rsp + 0x9a]
mov dword [rsp + 0x30], ecx
movzx ecx, word [rsp + 0x9c]
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x48], ecx
mov ecx, r12d
neg ecx
mov ebp, ecx
movzx r9d, byte [r15 + 1]
movzx r8d, byte [r15 + 4]
movzx ecx, byte [r15]
shl ecx, 8
shl r8d, 8
add r15, 8
or r9d, ecx
movzx ecx, byte [r15 - 6]
shl r9d, 8
or r9d, ecx
shl r9d, 8
movzx ecx, byte [r15 - 5]
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
movzx ecx, byte [r15 - 1]
shl r8d, 8
or r8d, ecx
mov ecx, esi
sub ecx, eax
sub ecx, dword [rsp + 0x30]
xor ecx, r8d
xor ebx, ecx
mov ecx, ebx
sub ecx, dword [rsp + 0x48]
xor ecx, eax
xor esi, ecx
mov ecx, esi
ror ecx, 0xe
xor ecx, edx
imul ecx, dword [rsp + 0x30]
xor ebx, ecx
mov ecx, ebx
ror ecx, 4
sub ecx, r12d
imul ecx, edx
mov edx, eax
xor esi, ecx
mov ecx, esi
sub edx, esi
rol edx, 0xd
rol ecx, 0xd
imul edx, dword [rsp + 0x30]
add ecx, edx
xor ebx, ecx
mov edx, ebx
movzx ecx, word [rsp + 0x9a]
xor edx, ecx
movzx ecx, word [rsp + 0x9c]
imul edx, ecx
mov ecx, ebx
shr ecx, 9
xor edx, ecx
xor esi, edx
mov edx, esi
movzx ecx, word [rsp + 0x9c]
xor edx, ecx
rol edx, 1
mov ecx, esi
ror ecx, 0x10
imul edx, dword [rsp + 0x38]
add ecx, edx
xor ebx, ecx
mov edx, ebx
movzx ecx, word [rsp + 0x9a]
xor edx, ecx
rol edx, 5
mov ecx, ebx
rol ecx, 3
imul edx, r12d
sub edx, ecx
xor esi, edx
mov ecx, esi
not ecx
movzx edx, word [rsp + 0x9e]
ror ecx, 6
add ecx, edx
movzx edx, word [rsp + 0x9c]
imul ecx, edx
xor ebx, ecx
mov ecx, ebx
mov edx, ebx
sub edx, eax
rol edx, 5
ror ecx, 2
imul edx, dword [rsp + 0x48]
add ecx, edx
xor esi, ecx
lea edx, [rsi + rbp]
rol edx, 4
movzx ecx, word [rsp + 0x9a]
imul edx, ecx
mov ecx, esi
shr ecx, 9
xor edx, ecx
xor ebx, edx
mov edx, ebx
mov ecx, ebx
xor ebx, r11d
sub edx, dword [rsp + 0x9c]
mov r11d, r8d
mov byte [r10 + 7], bl
rol edx, 0xb
ror ecx, 8
imul edx, r12d
xor ecx, edx
movzx edx, word [rsp + 0x9a]
xor ecx, r14d
mov r14d, r9d
xor esi, ecx
xor dil, sil
mov byte [r10 + 3], sil
ror esi, 8
mov byte [r10 + 2], sil
xor dil, bl
ror ebx, 8
xor dil, sil
mov byte [r10 + 6], bl
ror esi, 8
xor dil, bl
mov byte [r10 + 1], sil
ror ebx, 8
xor dil, sil
ror esi, 8
xor dil, bl
mov byte [r10 + 5], bl
ror ebx, 8
mov cl, bl
mov byte [r10], sil
mov byte [r10 + 4], bl
add r10, 8
xor cl, sil
xor dil, cl
ror esi, 8
ror ebx, 8
sub r13, 1
jne 0x10028513c
mov r12, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
cmp dil, byte [r12 + rbp + 8]
je 0x100285413
call fcn.100058248
lea r13, [0x1001094ec]
mov r10d, 0xffff
mov r11, rax
mov rbx, qword [rsp + 0x90]
mov qword [rbx + 0x10], r13
mov rcx, qword [0x1004c43a0]
lea r8, [rbx + 0x18]
mov rax, 0xfffffffffffff000
and r8, 0xfffffffffffffff8
lea r9, [r8 + 0xfff]
and r11, rax
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 0x10028536c
movabs rax, 0x8000800080008001
mul rdi
mov qword [0x1004c43a0], rcx
shr rdx, 0xf
mov rax, qword [rsp + 0x70]
imul rdx, rdx, 0xffff
sub rdi, rdx
mov qword [rax + 0x98], r11
inc rdi
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x70], r10
jmp 0x100285409
xor ebx, ebx
test ecx, ecx
jns 0x1002850f3
neg ecx
shl ecx, 3
shr esi, cl
shl esi, cl
jmp 0x1002850f3
mov r14d, esi
xor ebx, ebx
mov r11d, esi
xor esi, esi
not r11d
jmp 0x1002850fd
mov rax, qword [rsp + 0x70]
mov qword [r8], rax
add r8, 8
cmp r8, r9
jb 0x1002853fd
jmp 0x100285527
mov r13, qword [rsp + 0x68]
mov rax, qword [0x1000487b8]
lea r14, [0x100000000]
mov rsi, r14
mov rbx, r12
sub rbx, r13
sub rsi, rax
jne 0x10028543d
test rbx, rbx
je 0x100285514
mov rcx, qword [0x1001d1e58]
xor edi, edi
lea r8d, [rcx - 1]
lea r15, [0x100000000]
mov r11, r13
sub r11, r12
sub r12d, r14d
add ebp, r12d
test r8d, r8d
js 0x100285492
lea eax, [r8 + rdi]
cdq
sub eax, edx
sar eax, 1
movsxd rdx, eax
mov r9d, dword [r15 + rdx*4 + 0x1d1e5c]
and r9d, 0xfffffff
cmp r12d, r9d
jae 0x100285488
lea r8d, [rax - 1]
jmp 0x10028548d
jbe 0x100285497
lea edi, [rax + 1]
cmp r8d, edi
jge 0x100285462
movsxd r10, edi
jmp 0x10028550d
movsxd r10, eax
jmp 0x10028550d
mov edx, dword [r15 + r10*4 + 0x1d1e5c]
mov eax, edx
and eax, 0xfffffff
cmp eax, ebp
jae 0x100285514
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 0x1002854e9
sub edi, 1
je 0x1002854e4
cmp edi, 1
jne 0x1002854ef
mov r9, rsi
jmp 0x1002854ef
mov r9, rbx
jmp 0x1002854ef
mov r9, rsi
sub r9, rbx
sub edx, 2
je 0x1002854ff
cmp edx, 1
jne 0x10028550a
add qword [r8 + r11], r9
jmp 0x100285503
add dword [r8 + r11], r9d
mov rcx, qword [0x1001d1e58]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x10028549c
mov eax, dword [0x1002f8888]
mov eax, 0x8f1a4089
mov rbx, qword [rsp + 0x90]
mov qword [rbx + 0x10], r13
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.10027d5f4
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret