Function at 0x1400a838c
Capabilities:
Allocate or change rwx memory
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x190
mov rax, qword [0x1400c8590]
xor rax, rsp
mov qword [rbp - 0x40], rax
mov qword [rsp + 0x70], rdx
lea r15, [rcx + 0x18]
lea rdx, [0x140000000]
mov rax, qword [r15]
mov qword [rsp + 0x80], rcx
mov ecx, 0xfffffff
mov esi, dword [rax + 5]
inc rax
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x48], rax
and rsi, rcx
add rsi, rdx
mov edx, dword [rax]
mov eax, dword [0x14010ba80]
shr rdx, 1
lea r14, [rax - 1]
mov qword [rsp + 0xf0], rsi
and rdx, rcx
mov ecx, eax
add r14, rdx
xor edx, edx
mov rax, r14
div rcx
mov eax, dword [0x14010ba80]
sub r14, rdx
mov r10d, dword [0x14010ba84]
mov eax, dword [0x14010ba80]
mov eax, dword [0x14010ba84]
test eax, eax
je 0x1400a84c8
mov edi, dword [0x14010ba84]
xor r8d, r8d
xor eax, eax
dec edi
inc rdi
mov r9, rdi
je 0x1400a8480
mov rcx, qword [0x14017dbb0]
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
test r9, r9
jne 0x1400a8451
mov qword [0x14017dbb0], rcx
xor edx, edx
div rdi
test r10, r10
je 0x1400a84bd
mov rcx, qword [0x14017db98]
inc r8
mov edi, 0xffffc778
mov eax, 0x3887
lock cmpxchg dword [rcx + rdx*4], edi
je 0x1400a8b13
mov ecx, dword [0x14010ba84]
lea rax, [rdx + 1]
xor edx, edx
div rcx
cmp r8, r10
jb 0x1400a848a
xor ebx, ebx
test rbx, rbx
jne 0x1400a867f
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r13d, r13d
mov dword [rsp + 0x34], eax
lea rax, [r14 + 0xffff]
shr rax, 0x10
mov qword [rsp + 0x68], rax
mov rdi, qword [0x14017db80]
inc r13
sub rdi, rax
xor eax, eax
inc rdi
mov r8, rdi
je 0x1400a8532
mov rcx, qword [0x14017dbb0]
imul rcx, rcx, 0x343fd
shl rax, 0x10
shr r8, 0x10
add rcx, 0x269ec3
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
test r8, r8
jne 0x1400a8503
mov qword [0x14017dbb0], rcx
xor edx, edx
mov r9d, 0x40
mov r8d, 0x3000
div rdi
mov rcx, rdx
mov rdx, r14
shl rcx, 0x10
add rcx, qword [0x14017db70]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1400a85db
cmp r13, 0x11
jne 0x1400a8616
mov rax, qword [0x14017db78]
mov r12, qword [0x14017db70]
lea rdi, [r12 + r14]
mov qword [rsp + 0x58], rax
cmp rdi, rax
ja 0x1400a85d4
mov eax, 0x10000
sub rax, r14
mov qword [rsp + 0x50], rax
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, r14
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1400a85d6
mov rax, qword [rsp + 0x50]
add rax, rdi
cmp rax, r12
jbe 0x1400a8616
mov eax, 0x10000
add rdi, rax
add r12, rax
cmp rdi, qword [rsp + 0x58]
jbe 0x1400a8595
xor ebx, ebx
test rbx, rbx
je 0x1400a8616
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov rcx, rbx
lea r9, [0x14009ec1c]
or rcx, 3
mov r8d, r14d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_RtlInstallFunctionTableCallback]
test al, al
jne 0x1400a862f
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rsp + 0x68]
cmp r13, 0x11
jb 0x1400a84e5
xor ebx, ebx
cmp qword [0x1401793b0], rbx
ja 0x1400a863d
test bl, 3
je 0x1400a8662
test rbx, rbx
je 0x1400a8660
mov rcx, rbx
or rcx, 3
call qword [sym.imp.KERNEL32.dll_RtlDeleteFunctionTable]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ebx, ebx
mov ecx, dword [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x1400a841a
mov rdi, rbx
xor eax, eax
mov rcx, r14
rep stosb byte [rdi], al
add qword [r15], 9
mov r14, qword [rsp + 0x48]
mov r8d, dword [0x14010ba80]
mov r14d, dword [r14]
xor eax, eax
shr r14, 1
and r14d, 0xfffffff
sub r8, r14
mov qword [rsp + 0xe8], r14
inc r8
mov rdi, r8
je 0x1400a86e7
mov rcx, qword [0x14017dbb0]
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
test rdi, rdi
jne 0x1400a86b8
mov qword [0x14017dbb0], rcx
xor edx, edx
xor dil, dil
mov qword [rsp + 0x58], r14
div r8
mov byte [rsp + 0x30], dil
mov qword [rsp + 0x60], rsi
add rbx, rdx
mov qword [rsp + 0xe0], rbx
mov qword [rsp + 0x48], rbx
test r14, r14
je 0x1400a8b88
movups xmm0, xmmword [r14 + rsi]
and dword [rbp - 0x68], 0
and dword [rbp - 0x64], 0
and dword [rbp - 0x60], 0
and dword [rbp - 0x5c], 0
mov r12, rbx
movdqu xmmword [rsp + 0xd0], xmm0
mov rcx, qword [rsp + 0xd8]
mov r8, qword [rsp + 0xd0]
mov r11d, 0x40
mov rax, rcx
mov rdx, r8
mov dword [rbp - 0x7c], r8d
shr rax, 0x20
shr rdx, 0x20
mov dword [rbp - 0x74], ecx
mov dword [rbp - 0x70], eax
mov dword [rbp - 0x48], eax
mov eax, dword [0x14010bb68]
mov dword [rbp - 0x80], eax
mov eax, dword [0x14010bb6c]
mov dword [rbp - 0x78], edx
mov dword [rbp - 0x6c], eax
mov eax, dword [0x14010bb70]
mov dword [rbp - 0x54], r8d
mov dword [rbp - 0x58], eax
mov eax, dword [0x14010bb74]
mov dword [rbp - 0x50], edx
mov dword [rbp - 0x44], eax
lea rax, [rsp + 0x90]
mov dword [rbp - 0x4c], ecx
sub r12, rax
mov rax, rsi
sub rax, rbx
mov qword [rsp + 0xd0], rax
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x100]
mov r8, r11
mov qword [rsp + 0x50], r12
call sub.MSVCR100.dll_memcpy
mov eax, dword [rsp + 0x114]
mov ecx, dword [rsp + 0x13c]
mov edx, dword [rsp + 0x138]
mov r8d, dword [rsp + 0x134]
mov r9d, dword [rsp + 0x130]
mov r10d, dword [rsp + 0x12c]
mov r11d, dword [rsp + 0x128]
mov r14d, dword [rsp + 0x124]
mov r15d, dword [rsp + 0x120]
mov ebx, dword [rsp + 0x11c]
mov esi, dword [rsp + 0x118]
mov r12d, dword [rsp + 0x110]
mov edi, dword [rsp + 0x10c]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x108]
mov r13d, dword [rsp + 0x40]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x104]
mov qword [rsp + 0x68], 2
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x100]
mov dword [rsp + 0x34], eax
add eax, r9d
rol eax, 7
xor r12d, eax
mov eax, dword [rsp + 0x34]
add eax, r12d
rol eax, 9
xor r15d, eax
lea eax, [r15 + r12]
rol eax, 0xd
xor r9d, eax
mov dword [rsp + 0x40], r9d
lea eax, [r15 + r9]
mov r9d, dword [rsp + 0x34]
ror eax, 0xe
xor r9d, eax
mov eax, dword [rsp + 0x3c]
add eax, r13d
mov dword [rsp + 0x34], r9d
rol eax, 7
xor r14d, eax
lea eax, [r14 + r13]
rol eax, 9
xor r8d, eax
lea eax, [r8 + r14]
rol eax, 0xd
xor dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x3c]
add eax, r8d
ror eax, 0xe
xor r13d, eax
lea eax, [rsi + r11]
rol eax, 7
xor edx, eax
lea eax, [r11 + rdx]
rol eax, 9
xor dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
add eax, edx
rol eax, 0xd
xor esi, eax
mov eax, dword [rsp + 0x38]
add eax, esi
ror eax, 0xe
xor r11d, eax
lea eax, [r10 + rcx]
rol eax, 7
xor edi, eax
lea eax, [rcx + rdi]
rol eax, 9
xor ebx, eax
lea eax, [rbx + rdi]
rol eax, 0xd
xor r10d, eax
lea eax, [rbx + r10]
ror eax, 0xe
xor ecx, eax
lea eax, [rdi + r9]
mov r9d, dword [rsp + 0x3c]
rol eax, 7
xor r9d, eax
mov eax, r9d
mov dword [rsp + 0x3c], r9d
mov dword [rsp + 0x104], eax
add eax, dword [rsp + 0x34]
rol eax, 9
xor dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x108], eax
add eax, r9d
mov r9d, dword [rsp + 0x34]
rol eax, 0xd
xor edi, eax
mov eax, dword [rsp + 0x38]
add eax, edi
ror eax, 0xe
xor r9d, eax
lea eax, [r12 + r13]
rol eax, 7
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x100], r9d
xor esi, eax
mov r9d, dword [rsp + 0x40]
lea eax, [rsi + r13]
rol eax, 9
xor ebx, eax
lea eax, [rsi + rbx]
rol eax, 0xd
xor r12d, eax
lea eax, [rbx + r12]
ror eax, 0xe
xor r13d, eax
lea eax, [r11 + r14]
rol eax, 7
xor r10d, eax
lea eax, [r10 + r11]
rol eax, 9
xor r15d, eax
lea eax, [r10 + r15]
rol eax, 0xd
xor r14d, eax
lea eax, [r15 + r14]
ror eax, 0xe
xor r11d, eax
lea eax, [rcx + rdx]
rol eax, 7
xor r9d, eax
mov dword [rsp + 0x130], r9d
lea eax, [rcx + r9]
rol eax, 9
xor r8d, eax
lea eax, [r9 + r8]
rol eax, 0xd
xor edx, eax
lea eax, [rdx + r8]
ror eax, 0xe
xor ecx, eax
dec qword [rsp + 0x68]
mov eax, dword [rsp + 0x34]
jne 0x1400a8861
mov dword [rsp + 0x13c], ecx
mov dword [rsp + 0x124], r14d
mov r14, qword [rsp + 0x48]
mov dword [rsp + 0x11c], ebx
mov rbx, qword [rsp + 0xe0]
mov dword [rsp + 0x118], esi
mov rsi, qword [rsp + 0xf0]
mov dword [rsp + 0x114], r13d
mov r13, qword [rsp + 0x58]
mov dword [rsp + 0x110], r12d
mov r12, qword [rsp + 0x50]
mov dword [rsp + 0x10c], edi
mov dil, byte [rsp + 0x30]
xor ecx, ecx
mov dword [rsp + 0x138], edx
mov dword [rsp + 0x134], r8d
mov dword [rsp + 0x12c], r10d
mov dword [rsp + 0x128], r11d
mov dword [rsp + 0x120], r15d
mov eax, dword [rbp + rcx - 0x80]
add rcx, 4
add dword [rsp + rcx + 0xfc], eax
cmp rcx, 0x40
jl 0x1400a8a80
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x90]
mov r8d, 0x40
call sub.MSVCR100.dll_memcpy
inc dword [rbp - 0x60]
mov r11d, 0x40
cmp r13, r11
jbe 0x1400a8b2c
mov r15, qword [rsp + 0xd0]
lea rdx, [rsp + 0x90]
mov r8d, r11d
lea rax, [r15 + r12]
mov cl, byte [rax + rdx]
xor cl, byte [rdx]
mov byte [r12 + rdx], cl
inc rdx
xor dil, cl
dec r8
jne 0x1400a8ad1
mov r15, qword [rsp + 0x60]
sub r13, r11
add r14, r11
add r12, r11
add r15, r11
mov byte [rsp + 0x30], dil
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x60], r15
jmp 0x1400a87b3
mov ebx, dword [0x14010ba80]
mov rax, qword [0x14017dba0]
imul rbx, rdx
add rbx, rax
jmp 0x1400a84bf
mov r14, qword [rsp + 0xe8]
mov r15, qword [rsp + 0x78]
xor r8d, r8d
test r13, r13
je 0x1400a8b88
mov r15, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x48]
lea rax, [rsp + 0x90]
sub r15, rax
lea rax, [rsp + 0x90]
lea rcx, [rsp + 0x90]
sub rdx, rax
mov al, byte [rcx + r15]
inc r8d
xor al, byte [rcx]
mov byte [rdx + rcx], al
xor dil, al
mov eax, r8d
inc rcx
cmp rax, r13
jb 0x1400a8b69
mov r15, qword [rsp + 0x78]
cmp dil, byte [r14 + rsi + 0x10]
je 0x1400a8c51
call fcn.14009eca8
mov r10, qword [rsp + 0x80]
and r15, 0xfffffffffffffff8
mov r11, rax
mov rax, 0xfffffffffffff000
lea r8, [r15 + 0xfff]
and r11, rax
and r8, rax
lea rbx, [fcn.1400bd550]
mov qword [r10 + 0x10], rbx
mov rax, qword [0x14017dbb0]
xor edi, edi
mov r9d, 0xffff
imul rax, rax, 0x343fd
shl rdi, 0x10
shr r9, 0x10
add rax, 0x269ec3
mov rcx, rax
shr rcx, 0x10
movzx edx, cx
or rdi, rdx
test r9, r9
jne 0x1400a8bd5
mov qword [0x14017dbb0], rax
movabs rax, 0x8000800080008001
mul rdi
mov rax, qword [rsp + 0x70]
shr rdx, 0xf
mov qword [rax + 0x98], r11
imul rdx, rdx, 0xffff
sub rdi, rdx
inc rdi
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x70], r9
jmp 0x1400a8c47
mov rax, qword [rsp + 0x70]
mov qword [r15], rax
add r15, 8
cmp r15, r8
jb 0x1400a8c3b
jmp 0x1400a8d5d
mov rax, qword [0x14010bb18]
lea rcx, [0x140000000]
mov r11, rsi
mov r15, rcx
sub r11, rbx
sub r15, rax
jne 0x1400a8c76
test r11, r11
je 0x1400a8d4f
mov r10, rbx
sub r10, rsi
sub esi, ecx
lea r12d, [r14 + rsi]
mov r14, qword [0x14017dbb8]
test r14, r14
je 0x1400a8d4f
mov r13d, dword [r14]
xor edi, edi
lea r8d, [r13 - 1]
test r8d, r8d
js 0x1400a8ccb
lea eax, [r8 + rdi]
cdq
sub eax, edx
sar eax, 1
movsxd rcx, eax
mov edx, dword [r14 + rcx*4 + 4]
and edx, 0x7ffffff
cmp esi, edx
jae 0x1400a8cc1
lea r8d, [rax - 1]
jmp 0x1400a8cc6
jbe 0x1400a8d1d
lea edi, [rax + 1]
cmp r8d, edi
jge 0x1400a8ca0
movsxd r9, edi
cmp r9, r13
jae 0x1400a8d4f
lea rsi, [r14 + 4]
lea r13, [0x140000000]
lea rsi, [rsi + r9*4]
mov edi, dword [rsi]
mov eax, edi
and eax, 0x7ffffff
cmp eax, r12d
jae 0x1400a8d4f
mov edx, dword [rsi]
and edi, 0x7ffffff
xor r8d, r8d
mov ecx, edx
sar edx, 0x1d
add rdi, r13
sar ecx, 0x1b
and edx, 7
and ecx, 3
dec ecx
je 0x1400a8d27
dec ecx
je 0x1400a8d22
dec ecx
jne 0x1400a8d2d
mov r8, r15
jmp 0x1400a8d2d
movsxd r9, eax
jmp 0x1400a8cce
mov r8, r11
jmp 0x1400a8d2d
mov r8, r15
sub r8, r11
sub edx, 2
je 0x1400a8d3c
dec edx
jne 0x1400a8d40
add qword [rdi + r10], r8
jmp 0x1400a8d40
add dword [rdi + r10], r8d
mov eax, dword [r14]
inc r9
add rsi, 4
cmp r9, rax
jb 0x1400a8ce2
mov eax, dword [0x14010ba80]
mov r10, qword [rsp + 0x80]
mov qword [r10 + 0x10], rbx
mov rcx, qword [rbp - 0x40]
xor rcx, rsp
call fcn.1400056f0
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret