Function at 0x401a10
Capabilities:
Create directory
Create process on windows
Delete file
Extract resource via kernel32 functions
Get common file path
Resolve function by parsing pe exports
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0xad0
push ebx
push ebp
push esi
push edi
call fcn.00401930
mov esi, dword [esp + 0xae4]
lea eax, [esp + 0x4c]
push 5
push eax
push 2
push esi
mov dword [esp + 0x40], 0
call dword [sym.imp.USER32.dll_LoadStringA]
or ecx, 0xffffffff
xor eax, eax
mov edi, dword [esp + 0xaec]
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x401a74
lea ecx, [esp + 0x4c]
push 0x41a130
push ecx
call fcn.004040d6
add esp, 8
test eax, eax
jne 0x401a74
push esi
call fcn.004025e0
add esp, 4
mov dword [esp + 0x30], eax
lea edx, [esp + 0x39c]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x39c]
push edx
push 0x104
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x401aad
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0xad0
ret 0x10
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x6a8]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x6a8]
lea ecx, [esp + 0x39c]
push eax
push 0
push 0x41a12c
push ecx
call ebp
test eax, eax
jne 0x401af2
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0xad0
ret 0x10
push str.PACKAGE
push 0x69
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push 0
push 0
push 2
push 0
push 0
lea edx, [esp + 0x6bc]
push 0x40000000
push edx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401b4f
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0xad0
ret 0x10
lea eax, [esp + 0x54]
push 0
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x4a0]
lea edx, [esp + 0x39c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x4a0]
push ecx
push eax
push 0x41a12c
push edx
call ebp
test eax, eax
jne 0x401bab
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0xad0
ret 0x10
mov ecx, dword [esp + 0xae4]
lea eax, [esp + 0x29c]
push 0x64
push eax
push ecx
mov byte [esp + 0x2a8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x29c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea edx, [ebx - 3]
cmp edx, ebx
jge 0x401c01
sub ecx, edx
lea edi, [esp + edx + 0x29c]
mov esi, ecx
mov eax, 0x7a7a7a7a
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
lea edi, [esp + 0x29c]
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x8b0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp edx, ebx
rep movsb byte es:[edi], byte [esi]
jge 0x401c4e
mov ecx, ebx
lea edi, [esp + edx + 0x29c]
sub ecx, edx
mov eax, 0x75757575
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea edi, [esp + 0x29c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x8b0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x41a120
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x6ac]
push ecx
call fcn.004040c3
mov esi, eax
push 2
push 0
push esi
call fcn.00403fd9
push esi
call fcn.00403e56
push 0
push 0
push esi
mov ebp, eax
call fcn.00403fd9
lea edx, [esp + 0x68]
push 5
push edx
push esi
call fcn.00401900
add esp, 0x30
xor ebx, ebx
xor edi, edi
lea eax, [esp + 0x18]
push 1
push eax
push esi
call fcn.00401900
mov edx, dword [esp + 0x24]
mov ecx, edi
and edx, 0xff
add edi, 8
shl edx, cl
add esp, 0xc
add ebx, edx
cmp edi, 0x20
jb 0x401cbd
mov dword [esp + 0x34], ebx
mov edi, 4
lea eax, [esp + 0x27]
push 1
push eax
push esi
call fcn.00401900
add esp, 0xc
dec edi
jne 0x401cee
lea edi, [ebp - 0xd]
push edi
mov dword [esp + 0x2c], edi
call fcn.00403d1c
push edi
push eax
push esi
mov dword [esp + 0x28], eax
call fcn.00401900
push esi
call fcn.00403c9f
mov ecx, dword [esp + 0x58]
add esp, 0x14
mov bl, cl
xor esi, esi
cmp cl, 0x2d
mov byte [esp + 0x1c], bl
mov dword [esp + 0x38], esi
jb 0x401d5c
and ecx, 0xff
mov eax, 0x6c16c16d
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 5
mov dword [esp + 0x38], ecx
add bl, 0xd3
dec ecx
jne 0x401d52
mov byte [esp + 0x1c], bl
cmp bl, 9
mov dword [esp + 0x10], esi
jb 0x401d86
mov ecx, dword [esp + 0x1c]
mov eax, 0x38e38e39
and ecx, 0xff
mul ecx
shr edx, 1
mov dword [esp + 0x10], edx
add bl, 0xf7
dec edx
jne 0x401d7c
mov byte [esp + 0x1c], bl
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
and esi, 0xff
mov eax, 0x300
lea ecx, [edx + esi]
shl eax, cl
mov ecx, dword [esp + 0x34]
push ecx
lea ebp, [eax + eax + 0xe6c]
call fcn.00403d1c
push ebp
mov edi, eax
call fcn.00403d1c
mov ecx, dword [esp + 0x30]
mov ebx, eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x48]
push edi
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
push esi
push ebp
push ebx
call fcn.00401380
mov ebp, dword [esp + 0x6c]
lea edx, [esp + 0x4d0]
push 0x41a11c
push edx
call fcn.004040c3
mov esi, eax
push esi
push ebp
push 1
push edi
call fcn.00403b66
add esp, 0x48
push esi
call fcn.00403c9f
push ebx
call fcn.00403a7d
push edi
call fcn.00403a7d
mov eax, dword [esp + 0x24]
push eax
call fcn.00403a7d
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x10
lea ecx, [esp + 0x6a8]
push ecx
call esi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x5a4]
lea edx, [esp + 0x5a4]
xor ebx, ebx
push edx
rep stosd dword es:[edi], eax
push ebx
lea eax, [esp + 0x3a4]
push 0x41a12c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x401e78
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0xad0
ret 0x10
lea ecx, [esp + 0x5a4]
push ecx
call esi
lea edx, [esp + 0x5a4]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, 0x41
lea esi, [esp + 0x5a4]
lea edi, [esp + 0x8b0]
lea eax, [esp + 0x4a0]
push 0x41a118
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.004040c3
mov ebp, eax
add esp, 8
cmp ebp, ebx
jne 0x401ed3
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0xad0
ret 0x10
xor ecx, ecx
push ebp
push 3
lea edx, [esp + 0x1c]
mov word [esp + 0x1c], cx
push 1
push edx
mov byte [esp + 0x26], cl
call fcn.0040363e
mov al, byte [esp + 0x24]
add esp, 0x10
cmp al, 0x48
jne 0x40223d
cmp byte [esp + 0x15], 0x45
jne 0x40223d
cmp byte [esp + 0x16], 0x4e
jne 0x40223d
push ebp
push 1
lea eax, [esp + 0x28]
push 4
push eax
mov dword [esp + 0x30], ebx
call fcn.0040363e
push ebp
push 1
lea ecx, [esp + 0x58]
push 4
push ecx
call fcn.0040363e
push ebp
push 1
lea edx, [esp + 0x54]
push 4
push edx
mov dword [esp + 0x5c], 0xffffffff
call fcn.0040363e
mov eax, dword [esp + 0x50]
xor esi, esi
add esp, 0x30
cmp eax, esi
jle 0x402106
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x9dc]
push ebp
rep stosd dword es:[edi], eax
push 1
lea eax, [esp + 0x30]
push 4
push eax
call fcn.0040363e
mov ecx, dword [esp + 0x38]
push ebp
push ecx
lea edx, [esp + 0x9f4]
push 1
push edx
call fcn.0040363e
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1b8]
add esp, 0x20
rep stosd dword es:[edi], eax
lea edi, [esp + 0x8b0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x198]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x198]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x197], 0x5c
je 0x402018
mov edi, 0x41a114
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x198]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x9dc]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x198]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x40]
mov ecx, edx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x402092
cmp ebx, dword [esp + 0x2c]
jne 0x402092
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x94]
lea edx, [esp + 0x94]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x198]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x198]
push 0x41a11c
push ecx
call fcn.004040c3
mov edi, eax
add esp, 8
test edi, edi
je 0x40222b
push ebp
push 1
lea edx, [esp + 0x18]
push 4
push edx
call fcn.0040363e
mov eax, dword [esp + 0x20]
push eax
call fcn.00403d1c
mov ecx, dword [esp + 0x24]
push ebp
mov esi, eax
push ecx
push 1
push esi
call fcn.0040363e
mov edx, dword [esp + 0x34]
push edi
push edx
push 1
push esi
call fcn.00403b66
push esi
call fcn.00403a7d
push edi
call fcn.00403c9f
mov eax, dword [esp + 0x5c]
add esp, 0x3c
inc ebx
cmp ebx, eax
jl 0x401f5c
xor esi, esi
push ebp
call fcn.00403c9f
add esp, 4
lea eax, [esp + 0x4a0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x40212c
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edx, dword [esp + 0xaec]
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x5c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x58]
lea ecx, [esp + 0x94]
push eax
mov dword [esp + 0x5c], 0x3c
mov dword [esp + 0x60], 0x40
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], 5
mov dword [esp + 0x7c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [esp + 0x90]
cmp eax, esi
je 0x402196
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x7ac]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x94]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, esi
jle 0x4021d1
mov al, byte [esp + ecx + 0x94]
mov byte [esp + ecx + 0x94], 0
cmp al, 0x5c
je 0x4021d1
dec ecx
cmp ecx, esi
jg 0x4021b9
lea edi, [esp + 0x94]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7ac]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x7ac]
push ecx
call fcn.00401750
lea edx, [esp + 0x7b0]
push edx
call fcn.00401750
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xad0
ret 0x10
pop edi
pop esi
pop ebp
mov eax, 0xe
pop ebx
add esp, 0xad0
ret 0x10
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
add esp, 0xad0
ret 0x10