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

Disassembly:
mov eax, 0x10011249
call fcn.1000a65c
sub esp, 0x800
mov eax, dword [0x100162d0]
push ebx
push esi
push edi
mov dword [ebp - 0x7b4], ecx
push 0x100123b6
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
call fcn.1000517e
mov edi, 0x104
xor ebx, ebx
push edi
lea eax, [ebp - 0x2a4]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.10009950
mov ecx, dword [ebp - 0x7b4]
add esp, 0xc
call fcn.10005baa
test eax, eax
push edi
lea eax, [ebp - 0x2a4]
push eax
je 0x10005263
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x10005269
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x80]
call fcn.1000517e
push 0x5c
push 1
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.10004ed7
movzx esi, byte [0x100129c8]
mov dword [ebp - 0x7b0], esi
inc esi
push esi
call fcn.10009363
push esi
push ebx
push eax
mov dword [ebp - 0x7ac], eax
call fcn.10009950
push dword [ebp - 0x7b0]
push 0x100129c0
push dword [ebp - 0x7ac]
call fcn.10009a50
mov esi, 0x1001290c
push esi
push dword [ebp - 0x7b0]
push dword [ebp - 0x7ac]
call fcn.10007a7a
add esp, 0x28
push dword [ebp - 0x7ac]
lea ecx, [ebp - 0x2c]
call fcn.100023b9
push dword [ebp - 0x7ac]
call fcn.1000a0cd
pop ecx
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x80]
call fcn.100021a6
mov ecx, dword [ebp - 0x7b4]
push ebx
call fcn.1000622c
mov eax, dword [ebp - 0x7b4]
add eax, 0x1c
push eax
lea ecx, [ebp - 0x64]
call fcn.10002393
push edi
lea eax, [ebp - 0x3a8]
push ebx
push eax
mov byte [ebp - 4], 2
call fcn.10009950
mov eax, dword [ebp - 0x60]
add esp, 0xc
cmp dword [ebp - 0x4c], 0x10
jae 0x10005342
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.1000517e
push 0x20
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 3
call fcn.10004fe4
add esp, 0xc
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.100021a6
push 0x2c
push 1
lea ecx, [ebp - 0x48]
call fcn.10004ed7
movzx edi, byte [0x10012756]
lea eax, [edi + 1]
push eax
call fcn.10009363
mov dword [ebp - 0x7ac], eax
lea eax, [edi + 1]
push eax
push ebx
push dword [ebp - 0x7ac]
call fcn.10009950
push edi
push 0x10012750
push dword [ebp - 0x7ac]
call fcn.10009a50
push esi
push edi
push dword [ebp - 0x7ac]
call fcn.10007a7a
add esp, 0x28
push dword [ebp - 0x7ac]
lea ecx, [ebp - 0x2c]
call fcn.100023b9
push dword [ebp - 0x7ac]
call fcn.1000a0cd
pop ecx
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
call fcn.100021a6
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.1000ab65
movzx edi, byte [0x100127ea]
lea eax, [edi + 1]
push eax
call fcn.10009363
mov dword [ebp - 0x7ac], eax
lea eax, [edi + 1]
push eax
push ebx
push dword [ebp - 0x7ac]
call fcn.10009950
push edi
push str.jn4_0
push dword [ebp - 0x7ac]
call fcn.10009a50
push esi
push edi
push dword [ebp - 0x7ac]
call fcn.10007a7a
add esp, 0x2c
push dword [ebp - 0x7ac]
lea ecx, [ebp - 0x2c]
call fcn.100023b9
push dword [ebp - 0x7ac]
call fcn.1000a0cd
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 0x10005508
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 0x1000552c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1a0]
push eax
call fcn.10010d9e
test eax, eax
pop ecx
pop ecx
je 0x1000558c
cmp dword [ebp - 0x7b0], ebx
je 0x1000558c
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 0x10005641
push dword [ebp - 0x7c4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x7c8]
call esi
jmp 0x10005641
movzx edi, byte [0x1001273c]
lea eax, [edi + 1]
push eax
call fcn.10009363
mov dword [ebp - 0x7ac], eax
lea eax, [edi + 1]
push eax
push ebx
push dword [ebp - 0x7ac]
call fcn.10009950
push edi
push str.m3B_9lk_f
push dword [ebp - 0x7ac]
call fcn.10009a50
push esi
push edi
push dword [ebp - 0x7ac]
call fcn.10007a7a
add esp, 0x28
push dword [ebp - 0x7ac]
lea ecx, [ebp - 0x2c]
call fcn.100023b9
push dword [ebp - 0x7ac]
call fcn.1000a0cd
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
pop ecx
jae 0x100055f9
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x7b0]
push eax
call fcn.1000838d
test eax, eax
pop ecx
pop ecx
je 0x10005641
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.10001db9
push ebx
lea ecx, [ebp - 0x9c]
push esi
call fcn.10001db9
push ebx
lea ecx, [ebp - 0x64]
push esi
call fcn.10001db9
push ebx
lea ecx, [ebp - 0x80]
push esi
call fcn.10001db9
push ebx
lea ecx, [ebp - 0x2c]
push esi
call fcn.10001db9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.1000989e
leave
ret