Function at 0x401070
Capabilities:
Create process on windows
Create process suspended
Extract resource via kernel32 functions
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x41a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
jmp 0x401098
mov dword [ebp - 0x90], 0
mov byte [ebp - 0x74], 0x13
mov byte [ebp - 0x73], 0x45
mov byte [ebp - 0x72], 0xfe
mov byte [ebp - 0x71], 0x1c
mov byte [ebp - 0x70], 0x51
mov byte [ebp - 0x6f], 0x7a
mov byte [ebp - 0x6e], 0x88
mov byte [ebp - 0x6d], 0x90
mov byte [ebp - 0x6c], 0xaa
mov byte [ebp - 0x6b], 0x3b
mov byte [ebp - 0x6a], 0xb1
mov byte [ebp - 0x69], 0xc3
mov byte [ebp - 0x68], 0xd2
mov byte [ebp - 0x67], 0x8a
mov byte [ebp - 0x66], 0x5a
mov byte [ebp - 0x65], 0x2f
mov dword [ebp - 0x80], 0x11111111
cmp dword [ebp - 0x80], 0x11223344
jne 0x401104
mov eax, 4
imul ecx, eax, 0
mov dword [ecx + 0x41a8c8], 1
push 1
push 0x1000
call fcn.0040604e
add esp, 8
mov dword [ebp - 0x8c], eax
push 0x41880c
push 0xae
mov edx, dword [0x41a8b0]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x401140
xor eax, eax
jmp 0x4012e5
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [0x41a8b0]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jne 0x401161
xor eax, eax
jmp 0x4012e5
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jne 0x40117b
xor eax, eax
jmp 0x4012e5
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [0x41a8b0]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
jne 0x40119c
xor eax, eax
jmp 0x4012e5
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x84], eax
push 0x81b458
push 0x200
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x418810
push 0x81b458
call dword [sym.imp.KERNEL32.dll_lstrcatA]
call dword [sym.imp.bxsdk32.dll_BoxedAppSDK_Init]
cmp eax, 1
jne 0x4012b0
push 0
push 0
push 1
push 0
push 1
push 0x40000000
push 0x81b458
call dword [sym.imp.bxsdk32.dll_BoxedAppSDK_CreateVirtualFileA]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0xffffffff
je 0x4012b0
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0x88]
push edx
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll__lclose]
push 1
push 2
call dword [sym.imp.bxsdk32.dll_BoxedAppSDK_EnableOption]
push 0x44
push 0
lea edx, [ebp - 0x48]
push edx
call fcn.00402240
add esp, 0xc
mov dword [ebp - 0x48], 0x44
xor eax, eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x48]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x81b458
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401290
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcess_failed___d_._n
call fcn.00401030
add esp, 8
jmp 0x4012e5
push 0xffffffffffffffff
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0x8c]
push ecx
call fcn.00406059
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040130a
mov esp, ebp
pop ebp
ret 0x10