Function at 0x100051dc
Capabilities:
Create process on windows
Get common file path
Get session user name

Disassembly:
mov eax, 0x10011229
call fcn.1000a63c
sub esp, 0x800
mov eax, dword [0x100162d0]
push ebx
push esi
push edi
mov dword [ebp - 0x7b4], ecx
push 0x100123a6
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
call fcn.1000515f
mov edi, 0x104
xor ebx, ebx
push edi
lea eax, [ebp - 0x2a4]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.10009930
mov ecx, dword [ebp - 0x7b4]
add esp, 0xc
call fcn.10005b8b
test eax, eax
push edi
lea eax, [ebp - 0x2a4]
push eax
je 0x10005244
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x1000524a
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x80]
call fcn.1000515f
push 0x5c
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.10004eb8
movzx esi, byte [0x100129b8]
mov dword [ebp - 0x7b0], esi
inc esi
push esi
call fcn.10009343
push esi
push ebx
push eax
mov dword [ebp - 0x7ac], eax
call fcn.10009930
push dword [ebp - 0x7b0]
push 0x100129b0
push dword [ebp - 0x7ac]
call fcn.10009a30
mov esi, 0x100128fc
push esi
push dword [ebp - 0x7b0]
push dword [ebp - 0x7ac]
call fcn.10007a5b
add esp, 0x28
push dword [ebp - 0x7ac]
lea ecx, [ebp - 0x2c]
call fcn.100023b0
push dword [ebp - 0x7ac]
call fcn.1000a0ad
pop ecx
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x80]
call fcn.1000219d
mov ecx, dword [ebp - 0x7b4]
push ebx
call fcn.1000620d
mov eax, dword [ebp - 0x7b4]
add eax, 0x1c
push eax
lea ecx, [ebp - 0x64]
call fcn.1000238a
push edi
lea eax, [ebp - 0x3a8]
push ebx
push eax
mov byte [ebp - 4], 2
call fcn.10009930
mov eax, dword [ebp - 0x60]
add esp, 0xc
cmp dword [ebp - 0x4c], 0x10
jae 0x10005323
lea eax, [ebp - 0x60]
push edi
lea ecx, [ebp - 0x3a8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp - 0x3a8]
push eax
lea ecx, [ebp - 0x9c]
call fcn.1000515f
push 0x20
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 3
call fcn.10004fc5
add esp, 0xc
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.1000219d
push 0x2c
push 1
lea ecx, [ebp - 0x48]
call fcn.10004eb8
movzx edi, byte [0x10012746]
lea eax, [edi + 1]
push eax
call fcn.10009343
mov dword [ebp - 0x7ac], eax
lea eax, [edi + 1]
push eax
push ebx
push dword [ebp - 0x7ac]
call fcn.10009930
push edi
push 0x10012740
push dword [ebp - 0x7ac]
call fcn.10009a30
push esi
push edi
push dword [ebp - 0x7ac]
call fcn.10007a5b
add esp, 0x28
push dword [ebp - 0x7ac]
lea ecx, [ebp - 0x2c]
call fcn.100023b0
push dword [ebp - 0x7ac]
call fcn.1000a0ad
pop ecx
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
call fcn.1000219d
push 0x10
pop ecx
xor eax, eax
lea edi, [ebp - 0x808]
rep stosd dword es:[edi], eax
push 0x40
mov byte [ebp - 0x1a0], bl
pop ecx
lea edi, [ebp - 0x19f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x7b8]
push eax
mov dword [ebp - 0x80c], 0x44
mov dword [ebp - 0x7e0], 1
mov word [ebp - 0x7dc], 0xa
mov dword [ebp - 0x804], str.WinSta0Default
mov dword [ebp - 0x7b8], 0x104
lea eax, [ebp - 0x1a0]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov dword [ebp - 0x7b0], eax
lea eax, [ebp - 0x1a0]
push eax
call fcn.1000ab45
movzx edi, byte [0x100127da]
lea eax, [edi + 1]
push eax
call fcn.10009343
mov dword [ebp - 0x7ac], eax
lea eax, [edi + 1]
push eax
push ebx
push dword [ebp - 0x7ac]
call fcn.10009930
push edi
push str.jn4_0
push dword [ebp - 0x7ac]
call fcn.10009a30
push esi
push edi
push dword [ebp - 0x7ac]
call fcn.10007a5b
add esp, 0x2c
push dword [ebp - 0x7ac]
lea ecx, [ebp - 0x2c]
call fcn.100023b0
push dword [ebp - 0x7ac]
call fcn.1000a0ad
xor eax, eax
cmp dword [ebp - 0x30], 0x10
pop ecx
mov byte [ebp - 0x7a8], bl
mov ecx, 0xff
lea edi, [ebp - 0x7a7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0x44]
jae 0x100054e9
lea eax, [ebp - 0x44]
push 0x200
lea ecx, [ebp - 0x7a8]
push ecx
push 0xffffffffffffffff
push eax
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x1000550d
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1a0]
push eax
call fcn.10010d7e
test eax, eax
pop ecx
pop ecx
je 0x1000556d
cmp dword [ebp - 0x7b0], ebx
je 0x1000556d
lea eax, [ebp - 0x7c8]
push eax
lea eax, [ebp - 0x80c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x7a8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10005622
push dword [ebp - 0x7c4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x7c8]
call esi
jmp 0x10005622
movzx edi, byte [0x1001272c]
lea eax, [edi + 1]
push eax
call fcn.10009343
mov dword [ebp - 0x7ac], eax
lea eax, [edi + 1]
push eax
push ebx
push dword [ebp - 0x7ac]
call fcn.10009930
push edi
push str.m3B_9lk_f
push dword [ebp - 0x7ac]
call fcn.10009a30
push esi
push edi
push dword [ebp - 0x7ac]
call fcn.10007a5b
add esp, 0x28
push dword [ebp - 0x7ac]
lea ecx, [ebp - 0x2c]
call fcn.100023b0
push dword [ebp - 0x7ac]
call fcn.1000a0ad
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
pop ecx
jae 0x100055da
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x7b0]
push eax
call fcn.1000836e
test eax, eax
pop ecx
pop ecx
je 0x10005622
lea eax, [ebp - 0x7c8]
push eax
lea eax, [ebp - 0x80c]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
lea eax, [ebp - 0x7a8]
push eax
push ebx
push dword [ebp - 0x7b0]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push dword [ebp - 0x7b0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
push ebx
inc esi
lea ecx, [ebp - 0x48]
push esi
call fcn.10001db0
push ebx
lea ecx, [ebp - 0x9c]
push esi
call fcn.10001db0
push ebx
lea ecx, [ebp - 0x64]
push esi
call fcn.10001db0
push ebx
lea ecx, [ebp - 0x80]
push esi
call fcn.10001db0
push ebx
lea ecx, [ebp - 0x2c]
push esi
call fcn.10001db0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.1000987e
leave
ret