Function at 0x41c900
Capabilities:
Create process on windows
Enumerate processes
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1cc4
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10368
call fcn.004ad6f0
mov eax, dword [0x521e28]
xor eax, ebp
mov dword [ebp - 0x28], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1033c], ecx
push 0x4effe0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x41c957
xor eax, eax
jmp 0x41d192
mov byte [ebp - 0x25d], 1
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
push 0x44
call fcn.0048c4fd
add esp, 4
mov dword [ebp - 0x10340], eax
mov eax, dword [ebp - 0x10340]
mov dword [ebp - 0x102e8], eax
mov ecx, dword [ebp - 0x102e8]
mov dword [ebp - 0x24], ecx
push 0x44
push 0
mov edx, dword [ebp - 0x24]
push edx
call fcn.004ad2c0
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov dword [eax], 0x44
push 0x10
call fcn.0048c4fd
add esp, 4
mov dword [ebp - 0x10344], eax
mov ecx, dword [ebp - 0x10344]
mov dword [ebp - 0x102ec], ecx
mov edx, dword [ebp - 0x102ec]
mov dword [ebp - 0x264], edx
push 0x10
push 0
mov eax, dword [ebp - 0x264]
push eax
call fcn.004ad2c0
add esp, 0xc
push 0x208
call fcn.0048c52d
add esp, 4
mov dword [ebp - 0x10348], eax
mov ecx, dword [ebp - 0x10348]
mov dword [ebp - 0x102f0], ecx
mov edx, dword [ebp - 0x102f0]
mov dword [ebp - 0x25c], edx
push 0x208
push 0
mov eax, dword [ebp - 0x25c]
push eax
call fcn.004ad2c0
add esp, 0xc
push 0x208
call fcn.0048c52d
add esp, 4
mov dword [ebp - 0x1034c], eax
mov ecx, dword [ebp - 0x1034c]
mov dword [ebp - 0x102f4], ecx
mov edx, dword [ebp - 0x102f4]
mov dword [ebp - 0x268], edx
push 0x208
push 0
mov eax, dword [ebp - 0x268]
push eax
call fcn.004ad2c0
add esp, 0xc
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
je 0x41caba
push 0x4efff8
push 0x208
mov edx, dword [ebp - 0x25c]
push edx
call fcn.00405cc0
jmp 0x41caf3
push 0x208
mov eax, dword [ebp - 0x25c]
push eax
call fcn.0041c740
add esp, 8
mov dword [ebp - 0x10350], eax
cmp dword [ebp - 0x10350], 0
jne 0x41caf3
push 0x4f0014
push 0x208
mov ecx, dword [ebp - 0x25c]
push ecx
call fcn.00405cc0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x41cb20
mov dword [ebp - 0x102f8], 2
push 0x510634
lea edx, [ebp - 0x102f8]
push edx
call fcn.004ad33a
push 0x22c
push 0
lea eax, [ebp - 0x258]
push eax
call fcn.004ad2c0
add esp, 0xc
mov dword [ebp - 0x258], 0x22c
mov dword [ebp - 0x26c], 0x7fff
lea ecx, [ebp - 0x26c]
push ecx
lea edx, [ebp - 0x102d0]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov dword [ebp - 0x2cc], 1
lea ecx, [ebp - 0x280]
call fcn.0041d6f0
mov dword [ebp - 0x10354], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x274]
call fcn.0041d800
cmp dword [ebp - 0x2cc], 0
je 0x41cba9
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0x10358], eax
jmp 0x41cbbf
lea edx, [ebp - 0x258]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 0x10358], eax
cmp dword [ebp - 0x10358], 0
je 0x41cc6b
mov dword [ebp - 0x2cc], 0
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
jne 0x41cc1c
lea edx, [ebp - 0x234]
push edx
call fcn.004ade29
add esp, 4
push eax
mov eax, dword [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.004b4001
add esp, 0xc
test eax, eax
jne 0x41cc1a
lea edx, [ebp - 0x250]
push edx
lea ecx, [ebp - 0x280]
call fcn.0041d7d0
jmp 0x41cc66
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call fcn.004ade29
add esp, 4
push eax
mov ecx, dword [ebp - 0x25c]
push ecx
lea edx, [ebp - 0x234]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call fcn.004b4001
add esp, 0xc
test eax, eax
jne 0x41cc66
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x280]
call fcn.0041d7d0
jmp 0x41cb88
lea ecx, [ebp - 0x280]
call fcn.0041d7b0
mov dword [ebp - 0x1035c], eax
cmp dword [ebp - 0x1035c], 0
jne 0x41cca0
mov dword [ebp - 0x102fc], 3
push 0x510634
lea ecx, [ebp - 0x102fc]
push ecx
call fcn.004ad33a
lea edx, [ebp - 0x2c8]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x41cd42
cmp dword [ebp + 0xc], 0
je 0x41cd3d
mov ecx, dword [ebp - 0x264]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41cd22
mov edx, dword [ebp - 0x264]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x264]
mov dword [ecx], 0
mov edx, dword [ebp - 0x264]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x264]
mov dword [ecx + 4], 0
jmp 0x41cd3d
mov dword [ebp - 0x10300], 7
push 0x510634
lea edx, [ebp - 0x10300]
push edx
call fcn.004ad33a
jmp 0x41cffb
lea eax, [ebp - 0x10308]
push eax
lea ecx, [ebp - 0x280]
call fcn.0041d750
mov dword [ebp - 0x10360], eax
mov ecx, dword [ebp - 0x10360]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x274], edx
mov dword [ebp - 0x270], eax
jmp 0x41cd7e
lea ecx, [ebp - 0x274]
call fcn.0041d840
lea ecx, [ebp - 0x10310]
push ecx
lea ecx, [ebp - 0x280]
call fcn.0041d780
mov dword [ebp - 0x10364], eax
mov edx, dword [ebp - 0x10364]
push edx
lea ecx, [ebp - 0x274]
call fcn.0041d860
mov byte [ebp - 0x10365], al
movzx eax, byte [ebp - 0x10365]
test eax, eax
je 0x41cdfc
lea ecx, [ebp - 0x274]
call fcn.0041d820
mov dword [ebp - 0x1036c], eax
mov ecx, dword [ebp - 0x1036c]
mov edx, dword [ecx]
mov dword [ebp - 0x102e0], edx
mov eax, dword [ebp - 0x102e0]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x41cdf7
jmp 0x41cdfc
jmp 0x41cd73
cmp dword [ebp - 0x20], 0
jne 0x41ce1d
mov dword [ebp - 0x10314], 4
push 0x510634
lea ecx, [ebp - 0x10314]
push ecx
call fcn.004ad33a
lea edx, [ebp - 0x18]
push edx
push 0xb
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x41ce4c
mov dword [ebp - 0x10318], 5
push 0x510634
lea ecx, [ebp - 0x10318]
push ecx
call fcn.004ad33a
mov edx, dword [ebp - 0x24]
mov dword [edx + 8], 0x4f0030
mov dword [ebp - 0x102d8], 0
mov dword [ebp - 0x102dc], 0
mov dword [ebp - 0x102d4], 0
push 0x4f0050
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x102dc], eax
push 0x4f0068
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x102d4], eax
cmp dword [ebp - 0x102dc], 0
je 0x41cee4
push 1
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x102d8]
push eax
call dword [ebp - 0x102dc]
mov dword [ebp - 0x10370], eax
cmp dword [ebp - 0x10370], 0
jne 0x41cee4
mov dword [ebp - 0x1031c], 8
push 0x510634
lea ecx, [ebp - 0x1031c]
push ecx
call fcn.004ad33a
mov edx, dword [ebp - 0x264]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x102d8]
push edx
push 0x430
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x41cf70
cmp dword [ebp - 0x102d8], 0
je 0x41cf6e
cmp dword [ebp - 0x102d4], 0
je 0x41cf64
mov eax, dword [ebp - 0x102d8]
push eax
call dword [ebp - 0x102d4]
mov dword [ebp - 0x10374], eax
cmp dword [ebp - 0x10374], 0
jne 0x41cf64
mov dword [ebp - 0x10320], 6
push 0x510634
lea ecx, [ebp - 0x10320]
push ecx
call fcn.004ad33a
mov dword [ebp - 0x102d8], 0
jmp 0x41cfa8
mov edx, dword [ebp - 0x264]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x264]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x264]
mov dword [eax], 0
mov ecx, dword [ebp - 0x264]
mov dword [ecx + 4], 0
cmp dword [ebp - 0x102d8], 0
je 0x41cffb
cmp dword [ebp - 0x102d4], 0
je 0x41cff1
mov edx, dword [ebp - 0x102d8]
push edx
call dword [ebp - 0x102d4]
mov dword [ebp - 0x10378], eax
cmp dword [ebp - 0x10378], 0
jne 0x41cff1
mov dword [ebp - 0x10324], 7
push 0x510634
lea eax, [ebp - 0x10324]
push eax
call fcn.004ad33a
mov dword [ebp - 0x102d8], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x280]
call fcn.0041d730
jmp 0x41d061
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x24], 0
je 0x41d08d
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10328], eax
mov ecx, dword [ebp - 0x10328]
push ecx
call fcn.0048c528
add esp, 4
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x264], 0
je 0x41d0bb
mov edx, dword [ebp - 0x264]
mov dword [ebp - 0x1032c], edx
mov eax, dword [ebp - 0x1032c]
push eax
call fcn.0048c528
add esp, 4
mov dword [ebp - 0x264], 0
cmp dword [ebp - 0x24], 0
je 0x41d0e0
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x10330], ecx
mov edx, dword [ebp - 0x10330]
push edx
call fcn.0048c528
add esp, 4
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x25c], 0
je 0x41d10e
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x10334], eax
mov ecx, dword [ebp - 0x10334]
push ecx
call fcn.0048c532
add esp, 4
mov dword [ebp - 0x25c], 0
cmp dword [ebp - 0x268], 0
je 0x41d13c
mov edx, dword [ebp - 0x268]
mov dword [ebp - 0x10338], edx
mov eax, dword [ebp - 0x10338]
push eax
call fcn.0048c532
add esp, 4
mov dword [ebp - 0x268], 0
cmp dword [ebp - 0x18], 0
je 0x41d153
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x20], 0
je 0x41d16a
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x1c], 0
je 0x41d181
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, byte [ebp - 0x25d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.004ad2aa
mov esp, ebp
pop ebp
ret 0x14