Function at 0x404c00
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43c6eb
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2890
call fcn.004292a0
mov eax, dword [0x44e6d0]
xor eax, esp
mov dword [esp + 0x288c], eax
push esi
push edi
mov eax, dword [0x44e6d0]
xor eax, esp
push eax
lea eax, [esp + 0x28a0]
mov dword fs:[0], eax
push 0x44
lea eax, [esp + 0x50]
mov edi, ecx
push 0
push eax
mov dword [esp + 0x1c], edi
call fcn.00426140
add esp, 0xc
cmp dword [0x45ac94], 0
mov dword [esp + 0x4c], 0x44
je 0x404c99
cmp dword [0x45396c], 6
jb 0x404c99
push 0x459a98
push str.WinSta0_s
lea edx, [esp + 0x209c]
call fcn.00402350
lea ecx, [esp + 0x209c]
add esp, 8
mov dword [esp + 0x54], ecx
push 8
push 0x40
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 1
lea edx, [esp + 0x3c]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x40502c
push 2
push 8
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x40502c
push 0
push esi
push 1
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x40502c
lea edx, [esp + 0x94]
lea ecx, [esp + 0x38]
push edx
mov esi, edi
mov dword [esp + 0x24], ecx
call fcn.00405af0
xor eax, eax
mov edi, edi
movzx ecx, word [eax + 0x454a88]
mov word [esp + eax + 0x1094], cx
add eax, 2
test cx, cx
jne 0x404d10
cmp word [0x459c90], cx
je 0x404d4e
push 0x459c90
push str.128___s_
lea edx, [esp + 0x9c]
call fcn.00402350
add esp, 8
jmp 0x404f20
cmp dword [0x459a94], 0
je 0x404ea9
cmp word [0x459b00], 0
je 0x404ea9
push 0x459b00
push str._sADMIN_TEMP__uvssvcuvsstd
lea edx, [esp + 0x9c]
call fcn.00402350
add esp, 8
lea ecx, [esp + 0x94]
call fcn.00404aa0
test eax, eax
lea eax, [esp + 0x94]
push eax
je 0x404e3a
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x404e1c
lea ecx, [esp + 0x94]
push ecx
call fcn.00405af0
push 0x459b00
lea edx, [esp + 0x98]
push edx
push str.__s_s
lea edx, [esp + 0x10a0]
call fcn.00402350
add esp, 0xc
xor eax, eax
jmp 0x404de0
movzx ecx, word [esp + eax + 0x1094]
mov word [esp + eax + 0x94], cx
add eax, 2
test cx, cx
jne 0x404de0
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + 0x453a88]
mov word [esp + eax + 0x1094], cx
add eax, 2
test cx, cx
jne 0x404e00
jmp 0x404f20
push 0x459b00
push str.8__sADMIN_TEMP__uvssvc__uvssvc
lea edx, [esp + 0x9c]
call fcn.00402350
add esp, 8
jmp 0x404f20
call fcn.00405af0
push 0x459b00
lea ecx, [esp + 0x98]
push ecx
push str.__s_s
lea edx, [esp + 0x10a0]
call fcn.00402350
add esp, 0xc
xor eax, eax
jmp 0x404e70
movzx ecx, word [esp + eax + 0x1094]
mov word [esp + eax + 0x94], cx
add eax, 2
test cx, cx
jne 0x404e70
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + 0x453a88]
mov word [esp + eax + 0x1094], cx
add eax, 2
test cx, cx
jne 0x404e90
jmp 0x404f20
cmp word [0x45cca0], 0
je 0x404f20
lea edi, [esp + 0x94]
add edi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x404ec0
mov edx, dword [0x444600]
mov eax, 0x45cca0
mov dword [edi], edx
mov edx, eax
jmp 0x404ee0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404ee0
lea edi, [esp + 0x94]
sub eax, edx
add edi, 0xfffffffe
jmp 0x404f00
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x404f00
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]
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x50]
push ecx
push 0
push 0
push 0x20
push 0
lea edx, [esp + 0x34]
push edx
mov eax, edx
push eax
lea ecx, [esp + 0xb4]
push ecx
lea edx, [esp + 0x10b8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x404f81
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi + 0x20]
mov ecx, dword [esp + 0x28]
push 0
push 2
push 0x111
push edx
mov dword [0x45dcac], ecx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40502c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [esp + 0x14]
push eax
mov edi, 0x306
call fcn.00402390
mov eax, dword [eax]
add esp, 4
push esi
push eax
lea edx, [esp + 0x109c]
call fcn.00402350
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404fce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
mov edi, 0x93
call fcn.00402390
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28a8], 0
mov eax, dword [eax]
push pe_nt_image_headers32
push eax
lea edx, [esp + 0x109c]
push edx
call fcn.0040b057
mov dword [esp + 0x28a8], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40502c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x288c]
xor ecx, esp
call fcn.00425324
mov esp, ebp
pop ebp
ret