Function at 0x1001c00
Capabilities:
Accept command line arguments
Create process on windows
Get common file path
Get session user name
Query environment variable

Disassembly:
push ebp
mov eax, 0x12d0
lea ebp, [esp - 0x68]
call fcn.01002680
xor eax, eax
push esi
push edi
mov edx, 0x82
mov ecx, edx
lea edi, [ebp - 0x658]
rep stosd dword es:[edi], eax
mov ecx, edx
add edx, 0x7e
lea edi, [ebp - 0x860]
rep stosd dword es:[edi], eax
mov ecx, edx
lea edi, [ebp - 0xe64]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x450]
rep stosd dword es:[edi], eax
xor esi, esi
stosw word es:[edi], ax
xor eax, eax
mov ecx, 0x80
lea edi, [ebp - 0xa60]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x4c], esi
mov dword [ebp + 0x38], esi
mov dword [ebp + 0x48], esi
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x3c], esi
mov dword [ebp + 0x64], esi
mov dword [ebp + 0x40], esi
mov dword [ebp + 0x30], esi
mov dword [ebp + 0x60], esi
mov dword [ebp + 0x50], esi
mov dword [0x1003158], eax
call fcn.0100146c
cmp eax, esi
jne 0x1001ca6
lea eax, [ebp + 0x70]
push eax
call dword [0x1001084]
push eax
call dword [0x10010b8]
cmp eax, esi
mov dword [ebp + 0x54], eax
jne 0x1001cc1
call fcn.0100151a
push eax
push 0x1f43
push 0x800
call fcn.0100152a
xor eax, eax
add esp, 0xc
inc eax
jmp 0x1001f84
xor eax, eax
inc eax
cmp dword [ebp + 0x70], eax
push ebx
mov dword [ebp + 0x58], eax
mov dword [ebp + 0x5c], eax
jle 0x1001f7b
xor edx, edx
xor edi, edi
mov dword [ebp + 0x44], edx
lea ebx, [ebp - 8]
inc edi
mov eax, dword [ebp + 0x54]
mov ecx, dword [ebp + 0x5c]
mov eax, dword [eax + ecx*4]
cmp word [eax], 0x2f
jne 0x1001f8d
movzx ecx, word [eax + 2]
cmp ecx, 0x65
jg 0x1001d2d
je 0x1001d07
sub ecx, 0x45
je 0x1001d07
sub ecx, 9
jmp 0x1001d30
xor eax, eax
cmp edx, esi
jle 0x1001d23
mov ecx, dword [ebp + eax*4 - 8]
cmp dword [ecx*4 + section..data], esi
je 0x1001f7b
inc eax
cmp eax, edx
jl 0x1001d0d
mov dword [ebx], esi
mov dword [ebp + 0x38], edi
jmp 0x1001f65
sub ecx, 0x6e
je 0x1001f03
dec ecx
dec ecx
je 0x1001edf
sub ecx, 3
je 0x1001e59
dec ecx
je 0x1001ddd
dec ecx
jne 0x1001f7b
xor ecx, ecx
cmp edx, esi
jle 0x1001d71
mov edi, dword [ebp + ecx*4 - 8]
cmp dword [edi*4 + 0x10030b4], esi
je 0x1001f7b
inc ecx
cmp ecx, edx
jl 0x1001d5b
mov dword [ebx], 5
lea esi, [eax + 4]
jmp 0x1001d87
test ax, ax
je 0x1001f7b
inc esi
inc esi
mov ax, word [esi]
cmp ax, 0x3a
jne 0x1001d7c
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
inc esi
inc esi
push esi
call edi
cmp eax, 0x201
pop ecx
jae 0x1001ff1
push esi
call edi
cmp eax, 0x201
pop ecx
push esi
jae 0x1002006
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
mov dword [ebp + 0x60], esi
mov dword [ebp + 0x34], 1
xor esi, esi
mov edx, dword [ebp + 0x44]
pop ecx
xor edi, edi
pop ecx
inc edi
jmp 0x1001f65
xor ecx, ecx
cmp edx, esi
jle 0x1001df9
mov edi, dword [ebp + ecx*4 - 8]
cmp dword [edi*4 + 0x1003090], esi
je 0x1001f7b
inc ecx
cmp ecx, edx
jl 0x1001de3
mov dword [ebx], 4
lea edi, [eax + 4]
jmp 0x1001e0f
cmp ax, si
je 0x1001f7b
inc edi
inc edi
mov ax, word [edi]
cmp ax, 0x3a
jne 0x1001e04
lea eax, [ebp + 0x2c]
inc edi
push eax
inc edi
push edi
call fcn.01001833
test eax, eax
jne 0x1001ffb
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
cmp eax, 0x104
pop ecx
lea eax, [ebp - 0x658]
jae 0x1002005
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
mov dword [ebp + 0x48], 1
jmp 0x1001dd0
movzx eax, word [eax + 4]
cmp eax, 0x41
je 0x1001eb1
cmp eax, 0x48
je 0x1002010
cmp eax, 0x4d
je 0x1001e87
cmp eax, 0x61
je 0x1001eb1
cmp eax, 0x68
je 0x1002010
cmp eax, 0x6d
jne 0x1001f65
xor eax, eax
cmp edx, esi
jle 0x1001ea3
mov ecx, dword [ebp + eax*4 - 8]
cmp dword [ecx*4 + 0x10030d8], esi
je 0x1001f7b
inc eax
cmp eax, edx
jl 0x1001e8d
or dword [ebp + 0x64], edi
mov dword [ebx], 6
jmp 0x1001f65
xor eax, eax
cmp edx, esi
jle 0x1001ecd
mov ecx, dword [ebp + eax*4 - 8]
cmp dword [ecx*4 + 0x1003120], esi
je 0x1001f7b
inc eax
cmp eax, edx
jl 0x1001eb7
or dword [ebp + 0x64], 2
mov dword [ebx], 8
mov dword [ebp + 0x3c], edi
jmp 0x1001f65
xor eax, eax
cmp edx, esi
jle 0x1001efb
mov ecx, dword [ebp + eax*4 - 8]
cmp dword [ecx*4 + 0x100306c], esi
je 0x1001f7b
inc eax
cmp eax, edx
jl 0x1001ee5
mov dword [ebx], 3
jmp 0x1001f65
movzx eax, word [eax + 4]
cmp eax, 0x45
je 0x1001f3f
cmp eax, 0x4f
je 0x1001f1b
cmp eax, 0x65
je 0x1001f3f
cmp eax, 0x6f
jne 0x1001f7b
xor eax, eax
cmp edx, esi
jle 0x1001f33
mov ecx, dword [ebp + eax*4 - 8]
cmp dword [ecx*4 + 0x1003048], esi
je 0x1001f7b
inc eax
cmp eax, edx
jl 0x1001f21
and dword [ebp + 0x58], 0xfffffffe
mov dword [ebx], 2
jmp 0x1001f65
xor eax, eax
cmp edx, esi
jle 0x1001f57
mov ecx, dword [ebp + eax*4 - 8]
cmp dword [ecx*4 + 0x1003024], esi
je 0x1001f7b
inc eax
cmp eax, edx
jl 0x1001f45
mov eax, dword [ebp + 0x58]
and eax, 0xfffffffe
or eax, 2
mov dword [ebx], edi
mov dword [ebp + 0x58], eax
inc dword [ebp + 0x5c]
mov eax, dword [ebp + 0x5c]
inc edx
add ebx, 4
cmp eax, dword [ebp + 0x70]
mov dword [ebp + 0x44], edx
jl 0x1001cdf
call fcn.01001ad0
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
add ebp, 0x68
leave
ret 0x10
mov eax, dword [ebp + 0x70]
dec eax
cmp ecx, eax
jne 0x1001f7b
cmp dword [ebp + 0x34], esi
jne 0x1001fa8
cmp dword [ebp + 0x48], esi
jne 0x1001fa8
mov eax, dword [ebp + 0x64]
and eax, edi
test al, al
je 0x1001f7b
push 0x11
xor eax, eax
cmp dword [ebp + 0x48], 1
pop ecx
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
mov edi, dword [fcn.01001098]
mov dword [ebp - 0x4c], 0x44
jne 0x1002148
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp - 0x450]
push eax
push 2
mov dword [ebp + 0x60], 0x201
call fcn.010026ec
test al, al
jne 0x1002045
call fcn.0100151a
push eax
jmp 0x1002131
push 0x1bc1
jmp 0x100241a
call fcn.01001990
jmp 0x1001f80
push eax
push 0x1f46
jmp 0x1002136
mov eax, dword [ebp + 0x5c]
xor ecx, ecx
dec eax
cmp eax, esi
jle 0x1002030
mov edx, dword [ebp + ecx*4 - 8]
cmp dword [edx*4 + 0x10030fc], esi
je 0x1001f7b
inc ecx
cmp ecx, eax
jl 0x100201a
mov eax, dword [ebp + 0x5c]
mov dword [ebp + eax*4 - 0xc], 7
call fcn.01001990
jmp 0x1002458
push 0x208
push 0
call dword [0x1001090]
push eax
call dword [0x1001060]
mov esi, eax
test esi, esi
jne 0x1002066
push 8
jmp 0x1002131
push esi
push 0x104
call dword [0x100107c]
test eax, eax
je 0x1001fe6
mov ebx, dword [ebp + 0x54]
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp - 0x658]
push eax
push 1
lea eax, [ebp - 0x450]
push eax
mov eax, dword [ebp + 0x70]
push dword [ebx + eax*4 - 4]
call fcn.01001784
test eax, eax
je 0x1001fe6
mov eax, dword [ebp + 0x50]
mov dword [ebp - 0x40], eax
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp + 0x70]
push esi
push dword [ebx + eax*4 - 4]
push 0
push dword [ebp + 0x2c]
call fcn.010017b1
mov esi, eax
test esi, esi
jne 0x1002448
xor esi, esi
mov dword [ebp + 0x60], esi
call edi
cmp eax, esi
mov dword [ebp + 0x64], eax
jne 0x1002108
lea eax, [ebp + 0x64]
push eax
push dword [ebp + 0x1c]
call dword [0x1001078]
cmp dword [ebp + 0x64], esi
jne 0x1002108
lea eax, [ebp + 0x64]
push eax
push dword [ebp + 0x20]
call dword [0x1001074]
cmp dword [ebp + 0x64], esi
jne 0x1002108
mov dword [ebp + 0x64], 0x80004005
mov eax, dword [ebp + 0x70]
mov esi, dword [ebp + 0x54]
push dword [esi + eax*4 - 4]
lea eax, [ebp + 0x60]
push eax
push dword [ebp + 0x64]
push 0x1000
call fcn.0100158b
add esp, 0x10
test eax, eax
jne 0x1002424
push dword [ebp + 0x64]
push 0x1f43
push 0x800
call fcn.0100152a
add esp, 0xc
jmp 0x1001f80
mov eax, 0x201
push eax
lea ecx, [ebp - 0x1268]
push ecx
push eax
lea ecx, [ebp - 0xe64]
push ecx
push eax
lea eax, [ebp - 0x450]
push eax
push 0x100
lea eax, [ebp - 0xa60]
push eax
push dword [ebp + 0x64]
call fcn.010015bf
test eax, eax
jne 0x1002415
mov ecx, dword [ebp + 0x54]
lea eax, [ebp + 0x50]
push eax
push esi
push esi
lea eax, [ebp - 0xe64]
push eax
mov eax, dword [ebp + 0x70]
push dword [ecx + eax*4 - 4]
call fcn.01001784
test eax, eax
je 0x1001fe6
mov eax, dword [ebp + 0x50]
xor ebx, ebx
cmp word [ebp - 0x450], bx
mov dword [ebp - 0x40], eax
lea esi, [ebp - 0x450]
je 0x10021f6
cmp word [esi], 0x5c
je 0x10021cb
inc esi
inc esi
cmp word [esi], bx
jne 0x10021bc
jmp 0x10021f6
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x860]
mov word [esi], bx
mov ebx, dword [sym.imp.msvcrt.dll_wcscpy]
push eax
call ebx
add esi, 2
lea eax, [ebp - 0x450]
push esi
push eax
call ebx
add esp, 0x10
xor ebx, ebx
mov esi, dword [ebp + 0x54]
lea eax, [ebp - 0xe64]
push eax
mov eax, dword [ebp + 0x70]
push dword [esi + eax*4 - 4]
push 0x1f44
push 0x800
call fcn.0100152a
add esp, 0x10
cmp dword [ebp + 0x38], ebx
je 0x1002255
push 0x208
push ebx
call dword [0x1001090]
push eax
call dword [0x1001060]
cmp eax, ebx
mov dword [ebp + 0x30], eax
je 0x100205f
push eax
push 0x104
call dword [0x100107c]
call dword [0x1001070]
or byte [ebp + 0x4d], 4
mov dword [ebp + 0x40], eax
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp + 0x30]
mov eax, dword [ebp + 0x70]
push dword [ebp + 0x40]
push dword [ebp + 0x4c]
push dword [esi + eax*4 - 4]
lea eax, [ebp - 0xa60]
push ebx
push dword [ebp + 0x58]
push eax
lea eax, [ebp - 0x860]
push eax
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
cmp dword [ebp + 0x3c], ebx
mov esi, eax
je 0x10020c7
test byte [ebp + 0x64], 2
je 0x1002402
test esi, esi
jne 0x1002448
call edi
cmp eax, 0x52e
je 0x10023dd
call edi
cmp eax, 0x8007052e
je 0x10023dd
call edi
cmp eax, 0xc000006d
je 0x10023dd
call edi
cmp eax, 0xd000006d
je 0x10023dd
call edi
cmp eax, 5
je 0x10023dd
call edi
cmp eax, 0x80070005
je 0x10023dd
call edi
cmp eax, 0xc0000022
je 0x10023dd
call edi
cmp eax, 0xd0000022
je 0x10023dd
call edi
cmp eax, 0x56
je 0x10023dd
call edi
cmp eax, 0x80070056
je 0x10023dd
call edi
cmp eax, 0xc000006a
je 0x10023dd
call edi
cmp eax, 0xd000006a
je 0x10023dd
call edi
cmp eax, 0x8009030e
je 0x10023dd
call edi
cmp eax, 0x8009030c
je 0x10023dd
call edi
cmp eax, 0x4f1
je 0x10023dd
call edi
cmp eax, 0x800704f1
je 0x10023dd
call edi
cmp eax, 0xc0000388
je 0x10023dd
call edi
cmp eax, 0xd0000388
je 0x10023dd
call edi
cmp eax, 0x532
je 0x10023dd
call edi
cmp eax, 0x80070532
je 0x10023dd
call edi
cmp eax, 0xc0000071
je 0x10023dd
call edi
cmp eax, 0xd0000071
je 0x10023dd
call edi
cmp eax, 0x773
je 0x10023dd
call edi
cmp eax, 0x80070773
je 0x10023dd
call edi
cmp eax, 0xc0000224
je 0x10023dd
call edi
cmp eax, 0xd0000224
je 0x10023dd
call edi
cmp eax, 0x8c2
je 0x10023dd
call edi
cmp eax, 0x800708c2
jne 0x10020cf
mov eax, dword [ebp + 0x64]
push dword [ebp + 0x60]
and eax, 0xfffffffd
or eax, 4
mov dword [ebp + 0x64], eax
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
xor esi, esi
jmp 0x1002148
push esi
lea eax, [ebp - 0x1268]
push eax
call dword [0x10010d0]
jmp 0x10020c7
push 0x1bc0
call fcn.010014a0
jmp 0x1001f80
push dword [ebp + 0x60]
mov eax, dword [ebp + 0x70]
push dword [ebp + 0x64]
push dword [esi + eax*4 - 4]
push 0x1f45
push 0x800
call fcn.0100152a
add esp, 0x14
jmp 0x1001f80
push dword [ebp + 0x1c]
mov esi, dword [0x1001058]
call esi
push dword [ebp + 0x20]
call esi
xor eax, eax
jmp 0x1001f83