Function at 0x1004d7e
Capabilities:
Create process on windows
Create process suspended
Create thread
Delete file
Get file size
Read file on windows
Set environment variable
Terminate process

Disassembly:
sub esp, 0x88
push ebx
push esi
push edi
push 0xffffffffffffffff
xor ebx, ebx
mov esi, 0x80000000
push 0x100a8e0
mov dword [esp + 0x1c], ebx
mov dword [0x100a488], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
xor edi, edi
inc edi
mov dword [0x100a060], edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x100a8f8], eax
call fcn.01002920
call fcn.01003627
cmp dword [0x100a054], ebx
jne 0x1004806
mov eax, dword [0x100a01c]
and eax, 0xffff0000
cmp eax, 0xcab00000
jne 0x10047f1
push 0x20000001
jmp 0x100484d
test dword [0x100a01c], esi
jne 0x10047ff
mov dword [0x100a06c], edi
and byte [0x100a01f], 0x7f
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x100a7b4], eax
lea eax, [esp + 0x28]
push eax
push ebx
push ebx
push 0x100306c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x1004831
push 8
jmp 0x100484d
push 0xffffffffffffffff
push dword [0x100a7b4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x100a7a4]
cmp eax, ebx
jne 0x1004852
push 0x4c7
call fcn.01002fd0
cmp dword [0x100a074], ebx
mov esi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
je 0x100488c
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push dword [0x100a7a4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x100a7b0]
push dword [0x100a7a4]
call dword [sym.imp.USER32.dll_SetParent]
jmp 0x10048cc
push dword [0x100a070]
push ebx
push 0xc
push 0x68
push eax
call esi
mov eax, dword [0x100a018]
add eax, 0xffff
shr eax, 0x10
shl eax, 0x10
push eax
push ebx
push 0x401
push 0x6a
push dword [0x100a7a4]
call esi
push ebx
push edi
push 0x404
push 0x6a
push dword [0x100a7a4]
call esi
cmp dword [0x100a054], ebx
push ebp
jne 0x10049c5
push ebx
push ebx
push 0x100a7c0
call fcn.01003255
mov edi, dword [0x100a018]
or dword [esp + 0x1c], 0xffffffff
add esp, 0xc
cmp edi, ebx
mov dword [esp + 0x14], eax
je 0x1004950
mov eax, 0x10000
cmp edi, eax
mov ebp, edi
jbe 0x1004908
mov ebp, eax
push ebp
push 0x100ac60
push dword [esp + 0x1c]
call fcn.01003294
add esp, 0xc
push ebp
push 0x100ac60
push dword [esp + 0x18]
call fcn.0100294a
cmp dword [0x100a074], ebx
mov dword [esp + 0x10], eax
jne 0x1004946
push ebx
push ebx
push 0x405
push 0x6a
push dword [0x100a7a4]
call esi
sub edi, ebp
jne 0x10048fb
cmp dword [esp + 0x10], ebx
je 0x100495a
push 0x20000001
jmp 0x1004d55
lea eax, [esp + 0x48]
push eax
push ebx
push fcn.0100263c
push 0x1002615
push 0x10032bc
push fcn.01003294
push fcn.01003255
push 0x1002602
push fcn.01003237
call fcn.0100526b
push ebx
push ebx
push dword [esp + 0x40]
mov dword [esp + 0x40], eax
call fcn.0100263c
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x48]
push dword [esp + 0x48]
call fcn.010052fb
add esp, 0x3c
test eax, eax
je 0x1004950
cmp dword [0x100a074], ebx
jne 0x10049c5
push ebx
push dword [0x100a7a4]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.010040a4
cmp dword [0x100a054], ebx
mov ebp, 0x100aa20
jne 0x1004ac9
cmp dword [0x100a074], ebx
jne 0x1004a7d
mov edi, 0x104
push edi
push ebp
push 0x20000004
push dword [0x100a05c]
call dword [sym.imp.USER32.dll_LoadStringA]
push edi
mov edi, 0x100a6a0
push edi
push 0x20000006
push dword [0x100a05c]
call dword [sym.imp.USER32.dll_LoadStringA]
push ebp
push ebx
push 0xc
push 0x65
push dword [0x100a7a4]
call esi
push edi
push ebx
push 0xc
push 0x66
push dword [0x100a7a4]
call esi
push 0x100a900
push ebx
push 0xc
push 0x69
push dword [0x100a7a4]
call esi
push ebx
push ebx
push 0x402
push 0x6a
push dword [0x100a7a4]
call esi
movzx eax, word [esp + 0x36]
shl eax, 0x10
push eax
push ebx
push 0x401
push 0x6a
push dword [0x100a7a4]
call esi
push 5
push dword [0x100a7a4]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push ebx
push 0x100451d
push ebx
push 0x10021e0
push 0x100a7c0
push dword [esp + 0x28]
call fcn.010061fb
add esp, 0x1c
test eax, eax
je 0x1004950
cmp dword [0x101ac60], ebx
jne 0x1004abd
cmp dword [0x100a7a4], ebx
jne 0x1004abd
push 0x4c7
jmp 0x1004d55
cmp dword [0x100a054], ebx
je 0x1004b69
push ebp
push 0x1002308
push 0x100a900
call fcn.0100259f
push ebx
push 0x8000000
push 3
push ebx
push 1
push 0x80000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1004950
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x100a050], eax
inc eax
push eax
call fcn.01003237
cmp eax, ebx
pop ecx
mov dword [0x100a04c], eax
je 0x1004b4f
push ebx
lea ecx, [esp + 0x18]
push ecx
push dword [0x100a050]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004b4f
mov eax, dword [0x100a050]
cmp dword [esp + 0x14], eax
jne 0x1004b4f
mov ecx, dword [0x100a04c]
mov dword [0x100a048], 1
mov byte [ecx + eax], bl
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x100a048], ebx
je 0x1004950
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [0x100a048], ebx
je 0x1004b8c
cmp dword [0x100a004], ebx
je 0x1004b8c
push dword [0x100a04c]
call fcn.01003a97
test eax, eax
je 0x1004950
cmp dword [0x100a8fc], ebx
je 0x1004cc6
cmp dword [0x100a06c], ebx
jne 0x1004cc6
cmp dword [0x100a074], ebx
jne 0x1004bbf
push dword [0x100a7ac]
push ebx
push 0xc
push 0x68
push dword [0x100a7a4]
call esi
push 0x100a900
push 0x1002320
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
call fcn.01002f08
mov eax, dword [0x100a8fc]
mov edx, ebp
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x1004bdd
mov eax, dword [0x100a068]
mov esi, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1004bee
mov edi, ebp
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x1004bfa
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x11
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop ecx
xor eax, eax
lea edi, [esp + 0x54]
rep stosd dword es:[edi], eax
inc eax
mov dword [esp + 0x80], eax
mov word [esp + 0x84], ax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x58]
push eax
push dword [0x101ac64]
mov dword [esp + 0x60], 0x44
push ebx
push 0x20
push ebx
push ebx
push ebx
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1004c5c
push 0xffffffffffffffff
jmp 0x1004d55
cmp dword [0x100a074], ebx
jne 0x1004c71
push ebx
push dword [0x100a7a4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x1c]
push 0xffffffffffffffff
push eax
mov dword [0x100a8c8], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x20]
mov dword [0x100a8c8], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x20]
call esi
call fcn.010024c4
cmp dword [esp + 0x18], 0xcabf00d1
jne 0x1004cbf
mov dword [esp + 0x18], ebx
jmp 0x1004d05
call fcn.0100272a
jmp 0x1004d05
cmp dword [0x101ac60], ebx
jne 0x1004d05
push ebx
push dword [0x100a7a4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x104
push ebp
push 0x20000002
push dword [0x100a05c]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10030
push ebp
push ebp
push dword [0x100a7a4]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x100a488]
test eax, eax
js 0x1004d5a
mov esi, 0x40000000
test esi, eax
jne 0x1004d50
push dword [0x100a48c]
mov ecx, eax
shr ecx, 4
and ecx, 1
push 0x100a490
push ecx
mov ecx, eax
shr ecx, 1
and ecx, 1
push ecx
and eax, 1
push eax
call fcn.01003098
test eax, eax
mov eax, dword [0x100a488]
jne 0x1004d4c
or eax, esi
mov dword [0x100a488], eax
test esi, eax
je 0x1004d5a
push 0x20000007
call fcn.01002fd0
cmp dword [0x100a060], ebx
je 0x1004d73
push 0x100a8e0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x100a060], ebx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x1004786