Function at 0x401b30
Capabilities:
Create directory
Create process on windows
Create process suspended
Get common file path
Get user security identifier
Read file on windows
Resolve function by parsing pe exports
Write and execute a file
Write file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x403bb1
push eax
mov eax, 0x1440
mov dword fs:[0], esp
call fcn.00403950
push ebx
push ebp
push esi
push edi
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x451]
mov byte [esp + 0x450], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xbd]
mov byte [esp + 0xbc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x249]
mov byte [esp + 0x248], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x34d]
mov byte [esp + 0x34c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea ecx, [esp + 0xbc]
mov dword [esp + 0x3c], eax
xor esi, esi
mov dword [esp + 0x40], eax
push 0x104
mov dword [esp + 0x48], eax
push ecx
mov dword [esp + 0x50], eax
push esi
mov dword [esp + 0x58], eax
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0xbc]
lea ecx, [esp + 0x20]
push edx
call fcn.00403826
lea eax, [esp + 0xbc]
push 0x406020
push eax
mov dword [esp + 0x1460], esi
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
cmp ebp, esi
jne 0x401c3e
lea ecx, [esp + 0x20]
mov dword [esp + 0x1458], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x402383
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0xffffffffffffffec
push ebp
call ebx
push ebp
call dword [sym.imp.MSVCRT.dll_ftell]
push ebp
push 0x14
lea ecx, [esp + 0x54]
push 1
push ecx
mov dword [esp + 0x3c], eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x20
mov ecx, 4
mov edi, str.SOFTCAMPPACKFILE
lea esi, [esp + 0x3c]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x401d0c
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 0xffffffec
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jge 0x401cf1
mov ecx, dword [esp + 0x14]
push 2
push ecx
push ebp
call ebx
push ebp
push 0x14
lea edx, [esp + 0x50]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
mov ecx, 4
mov edi, str.SOFTCAMPPACKFILE
lea esi, [esp + 0x3c]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x401ce5
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc esi
dec eax
cmp eax, 0xffffff6c
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
jg 0x401c8d
jmp 0x401cf1
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x401d0c
lea ecx, [esp + 0x20]
mov dword [esp + 0x1458], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x402383
mov esi, dword [esp + 0x4c]
mov ecx, esi
mov dword [esp + 0x10], esi
shl ecx, 5
add ecx, esi
lea esi, [esi + ecx*2]
shl esi, 2
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov edx, dword [esp + 0x1c]
mov edi, eax
mov eax, 0xffffffec
push 2
sub eax, esi
mov dword [esp + 0x24], edi
sub eax, edx
push eax
push ebp
call ebx
push ebp
push esi
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esp + 0x30]
xor esi, esi
add esp, 0x20
cmp eax, esi
mov dword [esp + 0x14], esi
jle 0x401d8b
mov ebx, edi
push str.SCSetup.exe
push ebx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x401d83
mov eax, dword [esp + 0x10]
inc esi
add ebx, 0x10c
cmp esi, eax
jl 0x401d5f
jmp 0x401d8b
mov dword [esp + 0x14], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x401dad
lea edx, [esp + 0x34c]
push edx
call fcn.00401930
add esp, 4
jmp 0x401dc0
lea eax, [esp + 0x34c]
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call ebx
xor edx, edx
mov ecx, 0xf4240
div ecx
lea eax, [esp + 0x248]
push edx
lea edx, [esp + 0x350]
push esi
push edx
push str._sSCPacker_d_06d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x25c]
push ecx
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 0x18
test eax, eax
je 0x401e03
inc esi
cmp esi, 0x64
jb 0x401d93
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], 0
test eax, eax
jle 0x401efa
lea ebx, [edi + 0x108]
mov edx, dword [ebx - 4]
push 0
push edx
push ebp
call dword [sym.imp.MSVCRT.dll_fseek]
lea eax, [ebx - 0x108]
lea ecx, [esp + 0x254]
push eax
push ecx
lea edx, [esp + 0xd0]
push 0x406024
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0xd8]
push 0x406084
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 0x24
mov dword [esp + 0x18], eax
test eax, eax
je 0x401cf1
mov ecx, dword [ebx]
xor edi, edi
test ecx, ecx
jbe 0x401ed1
mov eax, dword [ebx]
lea ecx, [edi + 0x1000]
cmp ecx, eax
push ebp
jae 0x401e94
push 0x1000
lea edx, [esp + 0x458]
push 1
push edx
jmp 0x401ea1
sub eax, edi
push eax
lea eax, [esp + 0x458]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [esp + 0x28]
add esp, 0x10
mov esi, eax
lea edx, [esp + 0x450]
push ecx
push esi
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [ebx]
add edi, esi
add esp, 0x10
cmp edi, eax
jb 0x401e76
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
add esp, 4
inc eax
add ebx, 0x10c
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x401e1d
mov edi, dword [esp + 0x1c]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
push edi
call dword [sym.imp.MSVCRT.dll_free]
lea eax, [esp + 0x250]
push eax
call fcn.00401860
push 0x2000
mov dword [esp + 0x78], 0x4044f4
mov dword [esp + 0x34], 0x2000
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x34]
mov esi, eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x7c], esi
lea edi, [ecx + ecx + 0xc]
push edi
call sub.MFC42.DLL_operatornew
mov ebx, eax
push 0x100
mov dword [esp + 0x88], ebx
mov dword [esp + 0x50], 0x100
call sub.MFC42.DLL_operatornew
add esp, 0x18
mov ebp, eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x74], ebp
push 2
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
lea edx, [esp + 0x64]
lea eax, [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0x2c]
push ebp
push ecx
push esi
push str.Everyone
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
push esi
push 0x1fffff
push 2
push ebx
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
push 0x14
call sub.MFC42.DLL_operatornew
add esp, 4
mov ebp, eax
mov dword [esp + 0x78], ebp
push 1
push ebp
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push ebx
push 1
push ebp
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov edi, 0xc
mov dword [esp + 0x30], 1
push edi
call sub.MFC42.DLL_operatornew
mov esi, eax
mov eax, dword [esp + 0x34]
mov edx, esi
add esp, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x7c], esi
mov dword [edx], edi
mov dword [edx + 4], ebp
mov dword [edx + 8], eax
push str._SHM_DSINST_CALLER
push 0x400
push 0
push 4
push esi
mov byte [esp + 0x146c], 1
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esp + 0x50], eax
je 0x402061
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
test edx, edx
je 0x402061
mov edi, dword [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
push edx
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]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x402168
mov edi, dword [esp + 0x1460]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x402168
call fcn.00401a90
test eax, eax
jne 0x40209a
call fcn.004019f0
test eax, eax
je 0x402168
lea ecx, [esp + 0x248]
lea edx, [esp + 0xbc]
push ecx
push str._sSCSetup.exe
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x210]
add esp, 0xc
rep stosd dword es:[edi], eax
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], eax
lea edx, [esp + 0x204]
mov dword [esp + 0x30], eax
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x50], eax
push eax
lea eax, [esp + 0xdc]
mov dword [esp + 0x224], 0x44
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402117
mov ecx, dword [esp + 0x28]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test esi, esi
mov byte [esp + 0x1458], 0
je 0x40212c
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
test ebp, ebp
je 0x402139
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40214a
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
test ebx, ebx
je 0x402157
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40236a
jmp 0x402361
mov edx, dword [esp + 0x1460]
push str._run
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x402245
mov eax, dword [esp + 0x1460]
lea ecx, [esp + 0x14]
add eax, 4
push eax
call fcn.00403826
push 0x4061a4
lea ecx, [esp + 0x18]
mov byte [esp + 0x145c], 2
call sub.MFC42.DLL_CString::TrimLeft
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x248]
push ecx
push edx
lea eax, [esp + 0xc4]
push 0x406024
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1d0]
add esp, 0x10
rep stosd dword es:[edi], eax
xor ecx, ecx
lea edx, [esp + 0x54]
mov dword [esp + 0x54], ecx
lea eax, [esp + 0x1c0]
mov dword [esp + 0x58], ecx
push edx
mov dword [esp + 0x60], ecx
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [esp + 0x7c], ecx
push ecx
lea ecx, [esp + 0xdc]
push ecx
push 0
mov dword [esp + 0x1e8], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402234
mov edx, dword [esp + 0x54]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x14]
mov byte [esp + 0x1458], 1
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x248]
lea ecx, [esp + 0xbc]
push eax
push str.__sSETUP.EXE_
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, dword [esp + 0x146c]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x8c]
rep stosd dword es:[edi], eax
add esp, 0xc
mov ecx, 2
mov edi, 0x406190
xor eax, eax
lea edx, [esp + 0xbc]
mov dword [esp + 0x80], 0x3c
repe cmpsb byte [esi], byte es:[edi]
mov dword [esp + 0x84], 0x40
mov dword [esp + 0x8c], str.open
mov dword [esp + 0x90], edx
je 0x4022be
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4022d2
mov eax, dword [esp + 0x1460]
mov dword [esp + 0x94], eax
jmp 0x4022dd
mov dword [esp + 0x94], 0x4064dc
lea ecx, [esp + 0x80]
mov dword [esp + 0x9c], 1
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov edx, dword [esp + 0xb8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x50]
test eax, eax
je 0x402315
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x1458], 0
test eax, eax
je 0x40232e
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
test ebp, ebp
je 0x40233b
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40234c
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
test ebx, ebx
je 0x402359
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40236a
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x1458], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x1450]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x144c
ret