Function at 0x40d9e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a790
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x100b8
call fcn.00427c00
mov eax, dword [0x4310a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
xor edi, edi
push str.Wtsapi32.dll
mov dword [ebp - 0x10030], eax
mov dword [ebp - 0x10038], ecx
mov dword [ebp - 0x10040], edx
mov dword [ebp - 0x1003c], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, edi
je 0x40df9a
mov ecx, dword [0x42df6c]
mov eax, dword [str.nekoTresUyreuQSTW]
mov edx, dword [0x42df70]
mov dword [ebp - 0x24], ecx
mov cx, word [0x42df78]
mov dword [ebp - 0x28], eax
mov eax, dword [0x42df74]
mov word [ebp - 0x18], cx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40da80
sub ecx, edx
lea edx, [ebp + ecx - 0x28]
lea ecx, [ebp - 0x28]
cmp ecx, edx
je 0x40daa4
dec edx
cmp ecx, edx
je 0x40daa4
mov al, byte [ecx]
mov bl, byte [edx]
mov byte [ecx], bl
mov byte [edx], al
inc ecx
jmp 0x40da90
lea edx, [ebp - 0x28]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
mov ecx, 0x46a368
mov dword [ecx + 0x14], eax
cmp eax, esi
je 0x40df9a
mov dword [ebp - 0x1002c], esi
mov dword [ebp - 0x10034], esi
lea ecx, [ecx]
mov edi, 0x46a368
cmp esi, dword [edi + 0x60]
jae 0x40df6e
push 0x10000
lea eax, [ebp - 0x10028]
push 0
push eax
call fcn.0041f080
add esp, 0xc
xor ebx, ebx
cmp esi, dword [edi + 0x60]
jb 0x40db05
push 0x80070057
call fcn.00404bf0
mov edx, dword [edi + 0x5c]
lea ecx, [esi + esi*2]
mov eax, dword [edx + ecx*8 + 8]
lea ecx, [edx + ecx*8]
cmp dword [eax - 0xc], ebx
jle 0x40db66
lea edx, [ebp - 0x10028]
mov ecx, eax
mov esi, edx
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x40db21
test esi, esi
jne 0x40db3e
test ebx, ebx
je 0x40df4d
cmp dword [ebp + 8], 0
je 0x40dea0
mov ebx, dword [ebp - 0x10034]
mov edi, 0x46a368
cmp ebx, dword [edi + 0x60]
jb 0x40dd55
push 0x80070057
call fcn.00404bf0
mov edx, dword [ecx + 4]
cmp dword [edx - 0xc], ebx
jle 0x40df4d
lea edi, [ebp - 0x10028]
add edi, 0xfffffffe
lea edx, [edi + 2]
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40db80
mov eax, dword [0x42dcd0]
mov dword [edi], eax
test edx, edx
je 0x40df4d
mov eax, dword [ecx + 4]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40dba0
lea edi, [ebp - 0x10028]
sub eax, edx
add edi, 0xfffffffe
lea ebx, [edi + 2]
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40dbc0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebx, ebx
je 0x40df4d
lea edi, [ebp - 0x10028]
add edi, 0xfffffffe
lea ecx, [edi + 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40dbf0
mov edx, dword [0x42dcd0]
mov dword [edi], edx
test ecx, ecx
je 0x40df4d
lea edi, [ebp - 0x10028]
add edi, 0xfffffffe
lea ecx, [edi + 2]
jmp 0x40dc20
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40dc20
mov eax, dword [str.__star]
mov dword [edi], eax
test ecx, ecx
je 0x40df4d
lea edi, [ebp - 0x10028]
add edi, 0xfffffffe
lea ecx, [edi + 2]
jmp 0x40dc50
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40dc50
mov edx, dword [0x42df80]
mov dword [edi], edx
test ecx, ecx
je 0x40df4d
lea edi, [ebp - 0x10028]
add edi, 0xfffffffe
lea ecx, [edi + 2]
jmp 0x40dc80
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40dc80
mov eax, dword [0x42df84]
mov dword [edi], eax
test ecx, ecx
je 0x40df4d
lea edi, [ebp - 0x10028]
add edi, 0xfffffffe
lea ecx, [edi + 2]
jmp 0x40dcb0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40dcb0
mov edx, dword [0x42df88]
mov dword [edi], edx
test ecx, ecx
je 0x40df4d
lea edi, [ebp - 0x10028]
add edi, 0xfffffffe
lea ecx, [edi + 2]
jmp 0x40dce0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40dce0
mov eax, dword [0x42df8c]
mov dword [edi], eax
test ecx, ecx
je 0x40df4d
lea edi, [ebp - 0x10028]
add edi, 0xfffffffe
lea ecx, [edi + 2]
jmp 0x40dd10
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40dd10
mov eax, dword [0x42df90]
mov dword [edi], eax
test ecx, ecx
je 0x40df4d
lea edi, [ebp - 0x10028]
add edi, 0xfffffffe
lea ecx, [edi + 2]
jmp 0x40dd40
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40dd40
mov dword [edi], edx
test ecx, ecx
jmp 0x40db38
mov eax, dword [edi + 0x5c]
mov ecx, dword [ebp - 0x10030]
lea esi, [ebx + ebx*2]
add esi, esi
add esi, esi
add esi, esi
mov edx, dword [eax + esi + 0xc]
mov eax, dword [edi + 0x14]
push ecx
push edx
call eax
test eax, eax
je 0x40de63
mov ecx, dword [ebp - 0x10030]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x10038]
push 0
push edx
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x40de44
push 0x40
lea ecx, [ebp - 0x100c4]
push 0
push ecx
call fcn.0041f080
add esp, 0xc
mov dword [ebp - 0x100c8], 0x44
cmp ebx, dword [edi + 0x60]
jb 0x40ddc6
push 0x80070057
call fcn.00404bf0
mov eax, dword [edi + 0x5c]
mov eax, dword [eax + esi + 4]
mov esi, dword [ebp - 0x10040]
mov ecx, dword [ebp - 0x10038]
push esi
lea edx, [ebp - 0x100c8]
push edx
mov edx, dword [ecx]
push 0
push edx
mov edx, dword [ebp - 0x10030]
push 0x400
push 0
push 0
push 0
lea ecx, [ebp - 0x10028]
push ecx
push eax
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x40de12
inc dword [ebp - 0x1002c]
mov eax, dword [esi + 4]
test eax, eax
je 0x40de2c
cmp eax, 0xffffffff
je 0x40de2c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [esi]
test eax, eax
je 0x40de44
cmp eax, 0xffffffff
je 0x40de44
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov ecx, dword [ebp - 0x10038]
mov eax, dword [ecx]
test eax, eax
je 0x40de63
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov edx, dword [ebp - 0x10038]
mov dword [edx], 0
mov eax, dword [ebp - 0x10030]
mov eax, dword [eax]
test eax, eax
je 0x40df4d
cmp eax, 0xffffffff
je 0x40df4d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10030]
inc dword [ebp - 0x10034]
mov esi, dword [ebp - 0x10034]
mov dword [ecx], 0
jmp 0x40dad0
push 0x40
lea edx, [ebp - 0x10080]
push 0
push edx
call fcn.0041f080
mov eax, dword [ebp - 0x10034]
mov ecx, 0x46a368
add esp, 0xc
mov dword [ebp - 0x10084], 0x44
cmp eax, dword [ecx + 0x60]
jb 0x40ded7
push 0x80070057
call fcn.00404bf0
mov esi, dword [ebp - 0x10040]
mov ecx, dword [ecx + 0x5c]
push esi
lea edx, [ebp - 0x10084]
push edx
push 0
push 0
push 0
push 0
lea eax, [eax + eax*2]
push 0
lea eax, [ecx + eax*8]
mov eax, dword [eax + 4]
push 0
lea ecx, [ebp - 0x10028]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x40df17
inc dword [ebp - 0x1002c]
mov eax, dword [esi + 4]
test eax, eax
je 0x40df31
cmp eax, 0xffffffff
je 0x40df31
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [esi]
test eax, eax
je 0x40df49
cmp eax, 0xffffffff
je 0x40df49
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
test edi, edi
jne 0x40df6e
inc dword [ebp - 0x10034]
mov esi, dword [ebp - 0x10034]
jmp 0x40dad0
mov ecx, dword [ebp - 0x1002c]
mov eax, 0x46a368
cmp ecx, dword [eax + 0x60]
jne 0x40df85
mov edi, 1
jmp 0x40df9a
cmp dword [ebp + 8], 0
jne 0x40df94
mov edi, 1
test ecx, ecx
jg 0x40df9a
mov edi, dword [ebp - 0x1003c]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041d326
mov esp, ebp
pop ebp
ret 8