Function at 0x481010
Capabilities:
Enumerate process modules

Disassembly:
cmp byte [0x505dfc], 0
jne 0x48196a
push ebp
push ebx
push edi
push esi
sub esp, 0x430
mov byte [0x505dfc], 1
mov dword [0x505e00], 0
mov dword [0x505e04], 0
mov esi, dword [0x5052b0]
mov dword [0x505e08], esi
mov dword [0x505e0c], 0x104
push 0x104
call sym._malloc
add esp, 4
mov byte [eax], 0
mov dword [0x505e14], eax
mov dword [0x505e10], 0
mov dword [0x505e18], 0x4fb140
mov dword [0x505e1c], 0
mov dword [0x505e20], 0
mov dword [0x505e24], esi
mov dword [0x505e28], 0
mov dword [0x505e2c], 0
mov dword [0x505e30], esi
mov dword [0x505e34], 0
mov dword [0x505e38], 0
mov dword [0x505e3c], esi
mov dword [0x505e40], 0
mov dword [0x505e44], 0
mov dword [0x505e48], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push 0x18
push ecx
push 0
push esi
call sym._NtQueryInformationProcess_20
mov ebx, eax
test eax, eax
js 0x48112d
mov edi, dword [esp + 0x1c]
jmp 0x48112d
lea eax, [esi + 1]
cmp eax, 2
jae 0x48113e
test ebx, ebx
jns 0x48114d
jmp 0x481960
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
js 0x481960
mov dword [esp + 8], 0
test edi, edi
je 0x48148c
lea ebp, [esp + 8]
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
jmp 0x481198
mov eax, dword [0x505e14]
mov byte [eax], 0
mov dword [0x505e10], 0
mov dword [0x505e18], 0
mov edi, dword [esp + 8]
test edi, edi
je 0x48148c
mov ecx, edi
mov edx, ebp
push 0
push 0x505e1c
push 0x505e18
push 0x505e0c
push 0x505e00
call sym._getProcessInfo
add esp, 0x14
test al, al
je 0x48148c
push 0x505e00
push 0x505e28
call dbg.ffStrbufSet
add esp, 8
mov eax, dword [0x505e2c]
cmp eax, 4
jb 0x4812a0
mov ecx, dword [0x505e30]
add eax, ecx
add eax, 0xfffffffc
push str..exe
push eax
call ebx
add esp, 8
test eax, eax
jne 0x4812a0
mov esi, dword [0x505e2c]
cmp esi, 4
jb 0x4812a0
cmp dword [0x505e28], 0
je 0x48122b
add esi, 0xfffffffc
mov dword [0x505e2c], esi
add esi, dword [0x505e30]
mov eax, esi
jmp 0x481299
mov ecx, dword [0x505e30]
mov dword [0x505e28], 0
mov dword [0x505e2c], 0
mov eax, dword [0x5052b0]
mov dword [0x505e30], eax
test ecx, ecx
je 0x4812a0
mov dword [esp], ecx
lea eax, [esi + 1]
mov ecx, 0x20
nop
mov ebp, ecx
add ecx, ecx
cmp eax, ebp
ja 0x481260
push ebp
call sym._malloc
add esp, 4
mov byte [eax], 0
mov dword [0x505e30], eax
mov dword [0x505e28], ebp
push esi
push dword [esp + 4]
push eax
mov ebp, eax
call sym._memcpy
mov eax, ebp
add esp, 0xc
mov dword [0x505e2c], esi
add eax, esi
mov byte [eax], 0
lea ebp, [esp + 8]
push str.sudo
push dword [0x505e30]
call ebx
add esp, 8
test eax, eax
je 0x4813e0
push 0x4fb14b
push dword [0x505e30]
call ebx
add esp, 8
test eax, eax
je 0x4813e0
push str.doas
push dword [0x505e30]
call ebx
add esp, 8
test eax, eax
je 0x4813e0
push str.strace
push dword [0x505e30]
call ebx
add esp, 8
test eax, eax
je 0x4813e0
push str.sshd
push dword [0x505e30]
call ebx
add esp, 8
test eax, eax
je 0x4813e0
push 0x4fb15f
push dword [0x505e30]
call ebx
add esp, 8
test eax, eax
je 0x4813e0
push str.lldb
push dword [0x505e30]
call ebx
add esp, 8
test eax, eax
je 0x4813e0
push str.guake_wrapped
push dword [0x505e30]
call ebx
add esp, 8
test eax, eax
je 0x4813e0
push str.python
push dword [0x505e30]
call ebx
add esp, 8
test eax, eax
je 0x4813e0
push 0x4fb17d
push dword [0x505e30]
call ebx
add esp, 8
test eax, eax
je 0x4813e0
push str.flashfetch
push dword [0x505e30]
call ebx
add esp, 8
test eax, eax
je 0x4813e0
push str.debug
push dword [0x505e30]
call sym._StrStrIA_8
test eax, eax
jne 0x4813e0
cmp dword [0x505e2c], 6
jb 0x481460
push 6
push str.ConEmu
push dword [0x505e30]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x481460
nop dword [eax + eax]
cmp dword [0x505e00], 0
je 0x481400
mov eax, dword [0x505e08]
mov byte [eax], 0
jmp 0x48140a
mov eax, dword [0x5052b0]
mov dword [0x505e08], eax
mov dword [0x505e04], 0
cmp dword [0x505e28], 0
je 0x481430
mov eax, dword [0x505e30]
mov byte [eax], 0
jmp 0x48143a
mov eax, dword [0x5052b0]
mov dword [0x505e30], eax
mov dword [0x505e2c], 0
cmp dword [0x505e0c], 0
jne 0x481170
mov eax, dword [0x5052b0]
mov dword [0x505e14], eax
jmp 0x481178
mov dword [0x505e40], edi
mov eax, dword [esp + 8]
mov dword [0x505e44], eax
push str.explorer
push dword [0x505e30]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x48148c
call sym._ffStrbufSetS
cmp dword [0x505e04], 0
lea ebx, [esp + 8]
je 0x481960
push str.pwsh
push dword [0x505e30]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
je 0x48154f
push str.powershell
push dword [0x505e30]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
je 0x481595
push str.powershell_ise
push dword [0x505e30]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
je 0x4815db
push 0x4fb20d
push dword [0x505e30]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
je 0x4816b1
push 0x4fb248
push dword [0x505e30]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
je 0x481769
push str.explorer
push dword [0x505e30]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x48192c
call sym._ffStrbufSetS
jmp 0x48192c
cmp dword [0x505e28], 0
je 0x481621
mov eax, dword [0x505e30]
mov byte [eax], 0
mov ecx, dword [0x505e28]
mov dword [0x505e2c], 0
test ecx, ecx
je 0x481635
cmp ecx, 0xb
jae 0x48175d
xor eax, eax
cmp ecx, 1
ja 0x481640
jmp 0x481637
cmp dword [0x505e28], 0
je 0x4816cb
mov eax, dword [0x505e30]
mov byte [eax], 0
mov ecx, dword [0x505e28]
mov dword [0x505e2c], 0
test ecx, ecx
je 0x4816df
cmp ecx, 0x13
jae 0x481814
xor eax, eax
cmp ecx, 1
ja 0x4816f0
jmp 0x4816e1
cmp dword [0x505e28], 0
je 0x481783
mov eax, dword [0x505e30]
mov byte [eax], 0
mov ecx, dword [0x505e28]
mov dword [0x505e2c], 0
test ecx, ecx
je 0x481797
cmp ecx, 0x17
jae 0x48189b
xor eax, eax
cmp ecx, 1
ja 0x4817a0
jmp 0x481799
mov eax, dword [0x5052b0]
mov dword [0x505e30], eax
mov dword [0x505e2c], 0
mov al, 1
mov ecx, 0x20
nop dword [eax]
mov esi, ecx
add ecx, ecx
cmp esi, 0xb
jb 0x481640
test al, al
je 0x48165d
push esi
call sym._malloc
add esp, 4
mov byte [eax], 0
xor ecx, ecx
jmp 0x481672
push esi
push dword [0x505e30]
call sym._realloc
add esp, 8
mov ecx, dword [0x505e2c]
mov dword [0x505e30], eax
mov dword [0x505e28], esi
mov word [eax + ecx + 8], 0x6c6c
mov dword [eax + ecx + 4], 0x65685372
mov dword [eax + ecx], 0x65776f50
mov eax, dword [0x505e2c]
lea ecx, [eax + 0xa]
mov dword [0x505e2c], ecx
mov ecx, dword [0x505e30]
mov byte [ecx + eax + 0xa], 0
jmp 0x48192c
cmp dword [0x505e28], 0
je 0x481820
mov eax, dword [0x505e30]
mov byte [eax], 0
jmp 0x48182a
mov eax, dword [0x5052b0]
mov dword [0x505e30], eax
mov dword [0x505e2c], 0
mov al, 1
mov ecx, 0x20
nop word cs:[eax + eax]
mov esi, ecx
add ecx, ecx
cmp esi, 0x13
jb 0x4816f0
test al, al
je 0x48170d
push esi
call sym._malloc
add esp, 4
mov byte [eax], 0
xor ecx, ecx
jmp 0x481722
push esi
push dword [0x505e30]
call sym._realloc
add esp, 8
mov ecx, dword [0x505e2c]
mov dword [0x505e30], eax
mov dword [0x505e28], esi
movups xmm0, xmmword [str.Windows_PowerShell]
movups xmmword [eax + ecx], xmm0
mov word [eax + ecx + 0x10], 0x6c6c
mov eax, dword [0x505e2c]
lea ecx, [eax + 0x12]
mov dword [0x505e2c], ecx
mov ecx, dword [0x505e30]
mov byte [ecx + eax + 0x12], 0
jmp 0x48192c
xor ecx, ecx
mov eax, dword [0x505e30]
jmp 0x48167d
cmp dword [0x505e28], 0
je 0x4818a7
mov eax, dword [0x505e30]
mov byte [eax], 0
jmp 0x4818b1
mov eax, dword [0x5052b0]
mov dword [0x505e30], eax
mov dword [0x505e2c], 0
mov al, 1
mov ecx, 0x20
nop
mov esi, ecx
add ecx, ecx
cmp esi, 0x17
jb 0x4817a0
test al, al
je 0x4817bd
push esi
call sym._malloc
add esp, 4
mov byte [eax], 0
xor ecx, ecx
jmp 0x4817d2
push esi
push dword [0x505e30]
call sym._realloc
add esp, 8
mov ecx, dword [0x505e2c]
mov dword [0x505e30], eax
mov dword [0x505e28], esi
movsd xmm0, qword [0x4fb204]
movsd qword [eax + ecx + 0xe], xmm0
movups xmm0, xmmword [str.Windows_PowerShell_ISE]
movups xmmword [eax + ecx], xmm0
mov eax, dword [0x505e2c]
lea ecx, [eax + 0x16]
mov dword [0x505e2c], ecx
mov ecx, dword [0x505e30]
mov byte [ecx + eax + 0x16], 0
jmp 0x48192c
xor ecx, ecx
mov eax, dword [0x505e30]
jmp 0x48172d
mov eax, dword [0x5052b0]
mov dword [0x505e30], eax
mov dword [0x505e2c], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop word [eax + eax]
push dword [0x505e40]
push 8
call sym._CreateToolhelp32Snapshot_8
mov esi, eax
test eax, eax
jne 0x48185f
call edi
cmp eax, 0x18
je 0x481840
jmp 0x481900
mov dword [esp + 8], 0x428
push ebx
push esi
call sym._Module32FirstW_8
test eax, eax
je 0x481900
lea edi, [esp + 0x28]
push 0xa
push str.clink_dll_
push edi
call sym._wcsncmp
add esp, 0xc
test eax, eax
je 0x4818d1
push ebx
push esi
call sym._Module32NextW_8
test eax, eax
jne 0x48187a
jmp 0x481900
xor ecx, ecx
mov eax, dword [0x505e30]
jmp 0x4817dd
mov eax, dword [0x5052b0]
mov dword [0x505e30], eax
mov dword [0x505e2c], 0
push str.nushell
push 7
push 0x505e28
call sym._ffStrbufAppendNS
add esp, 0xc
jmp 0x48192c
push str.CMD__with_Clink
push 0x10
push 0x505e28
call sym._ffStrbufAppendNS
add esp, 0xc
lea ecx, [esp + 0x228]
call dbg.getProductVersion
push 0x29
push 0x505e28
call sym._ffStrbufAppendC
add esp, 8
cmp dword [0x505e2c], 0
jne 0x48191d
push str.Command_Prompt
push 0xe
push 0x505e28
call sym._ffStrbufAppendNS
add esp, 0xc
mov eax, esi
inc eax
cmp eax, 2
jb 0x48192c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x505e18]
push ebx
call sym._strcpy
add esp, 8
push 0x2e
push ebx
call sym._strrchr
add esp, 8
test eax, eax
je 0x48194d
mov byte [eax], 0
push 0x505e34
push ebx
push 0x505e0c
call dbg.fftsGetShellVersion
add esp, 0xc
add esp, 0x430
pop esi
pop edi
pop ebx
pop ebp
mov eax, 0x505e00
ret