Function at 0x401000
Capabilities:
Create directory
Create process on windows
Delete directory
Delete file
Extract resource via kernel32 functions
Get common file path
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0xcb4
lea eax, [esp]
mov dword [esp], 0xc
mov dword [esp + 8], 0
test eax, eax
je 0x40102f
push 0
lea ecx, [esp + 8]
push ecx
push 1
push str.D:_A_OICI_GA___WD_
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA
push 0x104
lea edx, [esp + 0x488]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
jmp 0x401050
mov cl, byte [esp + eax + 0x484]
mov byte [esp + eax + 0x380], cl
inc eax
test cl, cl
jne 0x401050
push ebx
push esi
push edi
lea eax, [esp + 0x38c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [esp + 0x38c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea edx, [esp + 0x38c]
push edx
push str._ORIGIN:__s_
lea eax, [esp + 0x59c]
push 0x114
push eax
call fcn.00401426
add esp, 0x10
lea ecx, [esp + 0x490]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathStripPathA]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0xa
push str.DECOMPRESSOR
push 0
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
call ebx
push 0xa
push str.ARCHIVE
push 0
mov edi, eax
call esi
push eax
call ebx
mov ebx, eax
test edi, edi
je 0x401412
push ebp
push edi
push 0
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
call ebp
push ebx
push 0
mov dword [esp + 0x24], eax
call esi
push eax
call ebp
push edi
push 0
mov dword [esp + 0x34], eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call edi
push ebx
push 0
mov dword [esp + 0x28], eax
call esi
push eax
call edi
lea edx, [esp + 0x28c]
push edx
push 0x104
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jbe 0x4013fd
lea eax, [esp + 0x28c]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401146
mov ecx, dword [str.cetrainers]
mov edx, dword [0x40b3e0]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [eax], ecx
mov cx, word [0x40b3e4]
mov dword [eax + 4], edx
mov dl, byte [0x40b3e6]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x290]
push ecx
call esi
lea edx, [esp + 0x84]
push edx
push 0
push 0x40b3e8
lea eax, [esp + 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jbe 0x4013ef
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x88]
push eax
call esi
test eax, eax
je 0x4013e1
xor eax, eax
jmp 0x4011e0
mov cl, byte [esp + eax + 0x84]
mov byte [esp + eax + 0x6ac], cl
inc eax
test cl, cl
jne 0x4011e0
lea edi, [esp + 0x6ac]
dec edi
jmp 0x401200
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401200
mov cx, word [0x40b3ec]
lea eax, [esp + 0x6ac]
mov word [edi], cx
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401220
mov edx, dword [0x40b3f0]
mov ecx, dword [0x40b3f4]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [eax], edx
mov edx, dword [0x40b3f8]
push 0
push 0x80
mov dword [eax + 4], ecx
mov ecx, dword [str._b.5]
mov dword [eax + 8], edx
push 2
lea edx, [esp + 0x1c]
push edx
push 3
mov dword [eax + 0xc], ecx
push 0x40000000
lea eax, [esp + 0x6c4]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
test esi, esi
je 0x401299
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x28]
push ecx
push edx
push eax
push esi
call ebx
push esi
call ebp
lea ecx, [esp + 0x494]
push ecx
lea edx, [esp + 0x88]
push edx
push str._s_s
lea eax, [esp + 0x194]
push 0x104
push eax
call fcn.00401426
lea ecx, [esp + 0x5ac]
push ecx
lea edx, [esp + 0x1a0]
push edx
push str.__s___s
lea eax, [esp + 0xacc]
push 0x218
push eax
call fcn.00401426
add esp, 0x28
push 0
push 0x80
push 2
lea ecx, [esp + 0x1c]
push ecx
push 3
push 0x40000000
lea edx, [esp + 0x1a0]
push edx
call edi
mov esi, eax
test esi, esi
je 0x401326
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push 0
lea eax, [esp + 0x28]
push eax
push ecx
push edx
push esi
call ebx
push esi
call ebp
push 0x44
lea eax, [esp + 0x44]
push 0
push eax
call fcn.00404ca0
add esp, 0xc
xor eax, eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x8c]
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0xacc]
push ecx
lea edx, [esp + 0x1ac]
push edx
mov dword [esp + 0x68], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401396
mov eax, dword [esp + 0x30]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4013aa
push 0x10
push str.Trainer_failure
push str.Failure_loading_the_trainer._Your_tempfolder_must_allow_execution.__Check_your_anti_virus__n
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x188]
push ecx
call esi
lea edx, [esp + 0x6ac]
push edx
call esi
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xcb4
ret 0x10
push 0x10
push str.Launch_Error
push str.Failure_creating_a_temporary_folder
jmp 0x401409
push 0x10
push str.Launch_Error
push str.Failure_assigning_a_temporary_name
jmp 0x401409
push 0x10
push str.Launch_Error
push str.Failure_getting_the_temp_folder
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xcb4
ret 0x10