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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b848e
mov eax, dword fs:[0]
push eax
sub esp, 0xb9c
mov eax, dword [0x4ff1a0]
xor eax, esp
mov dword [esp + 0xb94], eax
push ebx
push edi
mov eax, dword [0x4ff1a0]
xor eax, esp
push eax
lea eax, [esp + 0xba8]
mov dword fs:[0], eax
mov ax, word [esi + 0x1c]
xor ebx, ebx
xor ecx, ecx
mov edi, 7
xor edx, edx
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 1
mov word [esp + 0x54], ax
mov word [esp + 0x56], cx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x134], edi
mov dword [esp + 0x130], ebx
mov word [esp + 0x120], dx
mov dword [esp + 0xbb0], ebx
push 0x81e
lea ecx, [esp + 0x382]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x388], ax
call fcn.004911e0
add esp, 0xc
push 0x206
lea eax, [esp + 0x17a]
xor edx, edx
push ebx
push eax
mov word [esp + 0x180], dx
call fcn.004911e0
mov ecx, dword [esi + 0x10]
add esp, 0xc
push 5
push str.http:
push ecx
call fcn.00493d08
add esp, 0xc
test eax, eax
je 0x47c2bd
mov edx, dword [esi + 0x10]
push 6
push str.https:
push edx
call fcn.00493d08
add esp, 0xc
test eax, eax
je 0x47c2bd
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x47c3af
push 0x25
push eax
call fcn.004ae7d8
add esp, 8
test eax, eax
je 0x47c28a
mov ecx, dword [esi + 0x10]
push 0x104
lea eax, [esp + 0x178]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [esp + 0x174]
mov dword [esi + 0x10], edx
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x47c3af
push eax
mov eax, dword [esi + 0x10]
push eax
push str.__s___s
lea edx, [esp + 0x388]
call fcn.0047ed80
lea ecx, [esp + 0x388]
add esp, 0xc
mov dword [esi + 0x14], ecx
jmp 0x47c3af
push 4
xor edx, edx
push str.http
lea ecx, [esp + 0x10c]
mov dword [esp + 0x120], edi
mov dword [esp + 0x11c], ebx
mov word [esp + 0x10c], dx
call fcn.0040e680
mov byte [esp + 0xbb0], 1
lea edi, [esp + 0x120]
lea ecx, [esp + 0x104]
call fcn.0047bea0
mov byte [esp + 0xf], al
mov byte [esp + 0xbb0], bl
mov edi, 8
cmp dword [esp + 0x118], edi
jb 0x47c32c
mov eax, dword [esp + 0x104]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov dword [esp + 0x118], 7
mov dword [esp + 0x114], ebx
mov word [esp + 0x104], cx
cmp byte [esp + 0xf], bl
je 0x47c7a7
mov eax, dword [esp + 0x120]
cmp dword [esp + 0x134], edi
jae 0x47c369
lea eax, [esp + 0x120]
push 0x104
lea edx, [esp + 0x178]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edi, [esi + 0x10]
push edi
push 0x208
lea eax, [esp + 0x384]
push eax
push ebx
push ebx
lea ecx, [esp + 0x188]
push ecx
push 0x2400
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
lea edx, [esp + 0x37c]
mov dword [edi], ebx
mov dword [esi + 0x14], edx
call fcn.0047bd80
mov edi, eax
mov dword [esp + 0x10], edi
cmp edi, ebx
jne 0x47c57a
push 1
push 2
lea ecx, [esp + 0x74]
call fcn.00413cc0
mov byte [esp + 0xbb0], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea eax, [esp + 0x74]
push str.CreateNormalToken_FAILED._GetLastError:
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.004135f0
push 0x20
mov edi, 0xf
push str.CShellUtility::ExecuteAsNormalEx
lea ecx, [esp + 0x144]
mov dword [esp + 0x158], edi
mov dword [esp + 0x154], ebx
mov byte [esp + 0x144], bl
call fcn.0040ebe0
mov byte [esp + 0xbb0], 3
push 0x10
push str.ShellUtility.cpp
lea ecx, [esp + 0x10c]
mov dword [esp + 0x120], edi
mov dword [esp + 0x11c], ebx
mov byte [esp + 0x10c], bl
call fcn.0040ebe0
mov byte [esp + 0xbb0], 4
lea ecx, [esp + 0x158]
push ecx
lea ecx, [esp + 0x70]
call fcn.00413de0
mov byte [esp + 0xbb0], 5
push eax
lea edx, [esp + 0x140]
push edx
push 0xb9
lea eax, [esp + 0x110]
push eax
push ebx
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [esp + 0xbb0], 4
cmp dword [esp + 0x16c], 8
jb 0x47c4ba
mov ecx, dword [esp + 0x158]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov dword [esp + 0x16c], 7
mov dword [esp + 0x168], ebx
mov word [esp + 0x158], dx
mov byte [esp + 0xbb0], 3
cmp dword [esp + 0x118], 0x10
jb 0x47c4f8
mov eax, dword [esp + 0x104]
push eax
call fcn.00490458
add esp, 4
mov dword [esp + 0x118], edi
mov dword [esp + 0x114], ebx
mov byte [esp + 0x104], bl
mov byte [esp + 0xbb0], 2
cmp dword [esp + 0x150], 0x10
jb 0x47c52f
mov ecx, dword [esp + 0x13c]
push ecx
call fcn.00490458
add esp, 4
mov dword [esp + 0x150], edi
mov dword [esp + 0x14c], ebx
mov byte [esp + 0x13c], bl
mov byte [esp + 0xbb0], bl
lea ecx, [esp + 0x6c]
call fcn.00412cc0
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne byte [esp + 0xf]
mov dword [esp + 0xbb0], 0xffffffff
cmp dword [esp + 0x134], 8
jmp 0x47c7c7
mov eax, dword [esi + 0x18]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x14]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esi + 0x10]
push eax
push ebx
push 0x20
push ebx
push ebx
push ebx
push ecx
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
setne al
mov byte [esp + 0xf], al
cmp al, bl
je 0x47c761
test dword [esi + 4], 0x100
je 0x47c723
push 1
push 2
lea ecx, [esp + 0x74]
call fcn.00413cc0
mov byte [esp + 0xbb0], 6
lea eax, [esp + 0x6c]
push str.WaitForSingleObject.
push eax
call fcn.00416b90
add esp, 8
push str.CShellUtility::ExecuteAsNormalEx
lea ecx, [esp + 0x108]
call fcn.0040ece0
mov byte [esp + 0xbb0], 7
push str.ShellUtility.cpp
lea ecx, [esp + 0x140]
call fcn.0040ece0
mov byte [esp + 0xbb0], 8
lea ecx, [esp + 0x158]
push ecx
lea ecx, [esp + 0x70]
call fcn.00413de0
mov byte [esp + 0xbb0], 9
push eax
lea edx, [esp + 0x108]
push edx
push 0xcb
lea eax, [esp + 0x148]
push eax
push 2
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [esp + 0xbb0], 8
cmp dword [esp + 0x16c], 8
jb 0x47c673
mov ecx, dword [esp + 0x158]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov dword [esp + 0x16c], 7
mov dword [esp + 0x168], ebx
mov word [esp + 0x158], dx
mov byte [esp + 0xbb0], 7
cmp dword [esp + 0x150], 0x10
jb 0x47c6b1
mov eax, dword [esp + 0x13c]
push eax
call fcn.00490458
add esp, 4
mov edi, 0xf
mov dword [esp + 0x150], edi
mov dword [esp + 0x14c], ebx
mov byte [esp + 0x13c], bl
mov byte [esp + 0xbb0], 6
cmp dword [esp + 0x118], 0x10
jb 0x47c6ed
mov ecx, dword [esp + 0x104]
push ecx
call fcn.00490458
add esp, 4
mov dword [esp + 0x118], edi
mov dword [esp + 0x114], ebx
mov byte [esp + 0x104], bl
mov byte [esp + 0xbb0], bl
lea ecx, [esp + 0x6c]
call fcn.00412cc0
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esp + 0x10]
test byte [esi + 4], 0x40
je 0x47c741
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
mov dword [esi + 0x38], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], ebx
jmp 0x47c76f
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], ebx
jmp 0x47c76f
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne byte [esp + 0xf]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0xbb0], 0xffffffff
cmp dword [esp + 0x134], 8
jb 0x47c79b
mov eax, dword [esp + 0x120]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov word [esp + 0x120], cx
jmp 0x47c7e3
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne byte [esp + 0xf]
mov dword [esp + 0xbb0], 0xffffffff
cmp dword [esp + 0x134], edi
jb 0x47c7d9
mov edx, dword [esp + 0x120]
push edx
call fcn.00490458
add esp, 4
xor eax, eax
mov word [esp + 0x120], ax
mov al, byte [esp + 0xf]
mov dword [esp + 0x134], 7
mov dword [esp + 0x130], ebx
mov ecx, dword [esp + 0xba8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0xb94]
xor ecx, esp
call fcn.004911d1
mov esp, ebp
pop ebp
ret