Function at 0x521f20
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x521f28
push ebx
push esi
mov esi, edx
mov byte [ebp - 0xd], al
xor eax, eax
push ebp
push 0x52219d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.0051e658
mov eax, dword [ebp - 8]
call fcn.00411f20
test al, al
jne 0x521f60
lea eax, [ebp - 8]
call fcn.0051e384
mov eax, dword [ebp - 8]
call fcn.00411f20
test al, al
jne 0x521f74
lea eax, [ebp - 8]
call fcn.0051e8a4
mov eax, dword [ebp - 8]
call fcn.0051ea30
test al, al
jne 0x521f8d
lea eax, [ebp - 8]
mov edx, 0x5221b8
call fcn.00406fe4
lea eax, [ebp - 4]
mov ecx, 0x5221cc
mov edx, dword [ebp - 8]
call fcn.00407474
lea edx, [ebp - 0x68]
xor eax, eax
call fcn.0040462c
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0xc]
call fcn.0052308c
mov dl, 1
mov eax, dword [0x428e58]
call fcn.00434874
mov ebx, eax
mov edx, 0x5221e4
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x70], 0x11
lea edx, [ebp - 0x74]
xor ecx, ecx
mov eax, 0x5221fc
call fcn.00412f68
mov edx, dword [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x70], 0x11
lea edx, [ebp - 0x74]
xor ecx, ecx
mov eax, 0x52221c
call fcn.00412f68
mov edx, dword [ebp - 0x78]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0x522258
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp byte [ebp - 0xd], 0
je 0x522085
lea edx, [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.00412310
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x70], 0x11
lea edx, [ebp - 0x74]
xor ecx, ecx
mov eax, 0x522274
call fcn.00412f68
mov edx, dword [ebp - 0x7c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x70], 0x11
lea edx, [ebp - 0x74]
xor ecx, ecx
mov eax, 0x5222a4
call fcn.00412f68
mov edx, dword [ebp - 0x80]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0x88]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x88]
lea eax, [ebp - 0x84]
mov ecx, 0
call fcn.004071e4
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 4]
call fcn.00520420
lea edx, [ebp - 0x8c]
mov eax, dword [ebp - 4]
call fcn.0052308c
mov edx, dword [ebp - 0x8c]
lea eax, [ebp - 4]
call fcn.00406fe4
lea eax, [ebp - 0x64]
xor ecx, ecx
mov edx, 0x44
call fcn.004048a0
mov dword [ebp - 0x38], 1
mov word [ebp - 0x34], 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 0x40
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040701c
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x522128
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, esi
je 0x522146
lea edx, [ebp - 0x90]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x90]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, ebx
call fcn.00404ee4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5221a4
lea eax, [ebp - 0x90]
mov edx, 3
call fcn.00406f88
lea eax, [ebp - 0x84]
call fcn.0040617c
lea eax, [ebp - 0x80]
mov edx, 3
call fcn.00406f88
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.00406f88
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406f88
ret