Function at 0x420270
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44610b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xaa8
mov eax, dword [0x459020]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xaa9], 0
call fcn.0041f520
test eax, eax
je 0x42060c
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x42060c
lea eax, [ebp - 0xa94]
mov dword [ebp - 0xa94], 0
push eax
push 0xa
push esi
mov dword [ebp - 0xa98], 0
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x420605
lea eax, [ebp - 0xa98]
push eax
push 1
push 2
push 0
push 0x2000000
push dword [ebp - 0xa94]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x420605
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004259e0
add esp, 0xc
lea ecx, [ebp - 0xa44]
mov edx, 0x4a
call fcn.00412330
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x220]
cmp dword [ebp - 0xa30], 8
lea eax, [ebp - 0xa44]
push 0x104
cmovae eax, dword [ebp - 0xa44]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xorps xmm0, xmm0
mov dword [ebp - 0xa90], 0x44
xor eax, eax
movlpd qword [ebp - 0xa8c], xmm0
push 0x800
push eax
mov word [ebp - 0xa4e], ax
mov word [ebp - 0xa60], ax
lea eax, [ebp - 0xa20]
push eax
movups xmmword [ebp - 0xaa8], xmm0
mov dword [ebp - 0xa64], 1
movlpd qword [ebp - 0xa84], xmm0
movlpd qword [ebp - 0xa7c], xmm0
movlpd qword [ebp - 0xa74], xmm0
movlpd qword [ebp - 0xa6c], xmm0
movlpd qword [ebp - 0xa5e], xmm0
movlpd qword [ebp - 0xa56], xmm0
call fcn.004259e0
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0xa20]
push 0x4537dc
push eax
call fcn.0041d6b0
add esp, 0xc
lea eax, [ebp - 0xaa8]
push eax
lea eax, [ebp - 0xa90]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xa20]
push eax
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0xa98]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x4205c1
mov dword [ebp - 0xab0], 0
nop word [eax + eax]
push 0xbb8
push dword [ebp - 0xaa8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xorps xmm0, xmm0
mov dword [ebp - 0xa24], 0
movq qword [ebp - 0xa2c], xmm0
mov dword [ebp - 0xa2c], 0
mov dword [ebp - 0xa28], 0
mov dword [ebp - 0xa24], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0xa2c]
push dword [ebp - 0xaa0]
push eax
call fcn.0041fac0
mov eax, dword [ebp - 0xa28]
xor esi, esi
mov edi, dword [ebp - 0xa2c]
sub eax, edi
sar eax, 2
mov dword [ebp - 0xab4], eax
test eax, eax
je 0x4204fc
push dword [edi + esi*4]
call fcn.0041f760
test al, al
jne 0x42056d
inc esi
cmp esi, dword [ebp - 0xab4]
jb 0x4204e7
mov byte [ebp - 4], 0
test edi, edi
je 0x420555
mov ecx, dword [ebp - 0xa24]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x42052d
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42062c
push ecx
push edi
call fcn.00423b44
add esp, 8
mov dword [ebp - 0xa2c], 0
mov dword [ebp - 0xa28], 0
mov dword [ebp - 0xa24], 0
mov eax, dword [ebp - 0xab0]
inc eax
mov dword [ebp - 0xab0], eax
cmp eax, 0x14
jl 0x420470
jmp 0x4205ab
mov byte [ebp - 0xaa9], 1
test edi, edi
je 0x4205ab
mov ecx, dword [ebp - 0xa24]
mov eax, edi
sub ecx, edi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x4205a1
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42062c
push ecx
push edi
call fcn.00423b44
add esp, 8
push dword [ebp - 0xaa4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xaa8]
call esi
mov edx, dword [ebp - 0xa30]
cmp edx, 8
jb 0x4205fd
mov ecx, dword [ebp - 0xa44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4205f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42062c
push edx
push ecx
call fcn.00423b44
add esp, 8
mov al, byte [ebp - 0xaa9]
jmp 0x42060e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00423b13
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0042823f
int3