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

Disassembly:
mov eax, 0x10011219
call fcn.1000a62c
sub esp, 0x800
mov eax, dword [0x100162d0]
push ebx
push esi
push edi
mov dword [ebp - 0x7b4], ecx
push 0x10012395
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
call fcn.1000515c
mov edi, 0x104
xor ebx, ebx
push edi
lea eax, [ebp - 0x2a4]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.10009920
mov ecx, dword [ebp - 0x7b4]
add esp, 0xc
call fcn.10005b7b
test eax, eax
push edi
lea eax, [ebp - 0x2a4]
push eax
je 0x10005241
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x10005247
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x80]
call fcn.1000515c
push 0x5c
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.10004eb5
movzx esi, byte [0x10012998]
mov dword [ebp - 0x7b0], esi
inc esi
push esi
call fcn.10009333
push esi
push ebx
push eax
mov dword [ebp - 0x7ac], eax
call fcn.10009920
push dword [ebp - 0x7b0]
push 0x10012990
push dword [ebp - 0x7ac]
call fcn.10009a20
mov esi, 0x100128dc
push esi
push dword [ebp - 0x7b0]
push dword [ebp - 0x7ac]
call fcn.10007a4b
add esp, 0x28
push dword [ebp - 0x7ac]
lea ecx, [ebp - 0x2c]
call fcn.100023a4
push dword [ebp - 0x7ac]
call fcn.1000a09d
pop ecx
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x80]
call fcn.10002191
mov ecx, dword [ebp - 0x7b4]
push ebx
call fcn.100061fd
mov eax, dword [ebp - 0x7b4]
add eax, 0x1c
push eax
lea ecx, [ebp - 0x64]
call fcn.1000237e
push edi
lea eax, [ebp - 0x3a8]
push ebx
push eax
mov byte [ebp - 4], 2
call fcn.10009920
mov eax, dword [ebp - 0x60]
add esp, 0xc
cmp dword [ebp - 0x4c], 0x10
jae 0x10005320
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.1000515c
push 0x20
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 3
call fcn.10004fc2
add esp, 0xc
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.10002191
push 0x2c
push 1
lea ecx, [ebp - 0x48]
call fcn.10004eb5
movzx edi, byte [0x10012726]
lea eax, [edi + 1]
push eax
call fcn.10009333
mov dword [ebp - 0x7ac], eax
lea eax, [edi + 1]
push eax
push ebx
push dword [ebp - 0x7ac]
call fcn.10009920
push edi
push 0x10012720
push dword [ebp - 0x7ac]
call fcn.10009a20
push esi
push edi
push dword [ebp - 0x7ac]
call fcn.10007a4b
add esp, 0x28
push dword [ebp - 0x7ac]
lea ecx, [ebp - 0x2c]
call fcn.100023a4
push dword [ebp - 0x7ac]
call fcn.1000a09d
pop ecx
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
call fcn.10002191
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.1000ab35
movzx edi, byte [0x100127ba]
lea eax, [edi + 1]
push eax
call fcn.10009333
mov dword [ebp - 0x7ac], eax
lea eax, [edi + 1]
push eax
push ebx
push dword [ebp - 0x7ac]
call fcn.10009920
push edi
push str.jn4_0
push dword [ebp - 0x7ac]
call fcn.10009a20
push esi
push edi
push dword [ebp - 0x7ac]
call fcn.10007a4b
add esp, 0x2c
push dword [ebp - 0x7ac]
lea ecx, [ebp - 0x2c]
call fcn.100023a4
push dword [ebp - 0x7ac]
call fcn.1000a09d
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 0x100054e6
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 0x1000550a
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1a0]
push eax
call fcn.10010d6e
test eax, eax
pop ecx
pop ecx
je 0x1000556a
cmp dword [ebp - 0x7b0], ebx
je 0x1000556a
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 0x1000561f
push dword [ebp - 0x7c4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x7c8]
call esi
jmp 0x1000561f
movzx edi, byte [0x1001270c]
lea eax, [edi + 1]
push eax
call fcn.10009333
mov dword [ebp - 0x7ac], eax
lea eax, [edi + 1]
push eax
push ebx
push dword [ebp - 0x7ac]
call fcn.10009920
push edi
push str.m3B_9lk_f
push dword [ebp - 0x7ac]
call fcn.10009a20
push esi
push edi
push dword [ebp - 0x7ac]
call fcn.10007a4b
add esp, 0x28
push dword [ebp - 0x7ac]
lea ecx, [ebp - 0x2c]
call fcn.100023a4
push dword [ebp - 0x7ac]
call fcn.1000a09d
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
pop ecx
jae 0x100055d7
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x7b0]
push eax
call fcn.1000835e
test eax, eax
pop ecx
pop ecx
je 0x1000561f
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.10001da4
push ebx
lea ecx, [ebp - 0x9c]
push esi
call fcn.10001da4
push ebx
lea ecx, [ebp - 0x64]
push esi
call fcn.10001da4
push ebx
lea ecx, [ebp - 0x80]
push esi
call fcn.10001da4
push ebx
lea ecx, [ebp - 0x2c]
push esi
call fcn.10001da4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.1000986e
leave
ret