Function at 0x488330
Capabilities:
Enumerate processes
Get session user name
Get user security identifier
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ad811
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x5bd344]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, 0x1000
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x46c], eax
mov dword [ebp - 0x474], eax
mov dword [ebp - 0x468], edi
call fcn.0045d8a0
mov ecx, eax
test ecx, ecx
je 0x4889df
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x460], esi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x480], CreateMappedBitmap
mov dword [ebp - 0x47c], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x448], eax
nop dword [eax + eax]
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 0
push 0x20119
push edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x45c]
push dword [ebp + eax*4 - 0x480]
call fcn.00484780
test eax, eax
jne 0x4884d7
test ebx, ebx
js 0x4889f3
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x48842d
push ebx
lea ecx, [ebp - 0x460]
call fcn.00462fd0
mov esi, dword [ebp - 0x460]
lea eax, [ebx + ebx]
xor ebx, ebx
mov dword [ebp - 0x44c], eax
lea eax, [ebp - 0x44c]
push eax
push esi
lea eax, [ebp - 0x450]
push eax
push ebx
push 0x420cbc
push dword [ebp - 0x45c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x4884a4
mov eax, dword [ebp - 0x450]
cmp eax, 1
je 0x488474
cmp eax, 2
je 0x488474
lea edi, [ebx + 0xd]
jmp 0x4884a4
mov ecx, dword [ebp - 0x44c]
test esi, esi
je 0x48849e
test ecx, ecx
je 0x488499
test cl, 1
jne 0x488492
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], bx
je 0x48849e
mov edi, 0xd
jmp 0x4884a4
xor eax, eax
mov word [esi], ax
mov ebx, ecx
shr ebx, 1
xor edi, edi
push dword [esi - 8]
push esi
call fcn.005945a6
add esp, 8
test eax, eax
js 0x4889f3
cmp eax, dword [esi - 8]
jg 0x4889f3
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test edi, edi
jne 0x4884d7
cmp dword [esi - 0xc], ecx
jne 0x48856d
cmp dword [esi - 0xc], 0
lea edx, [esi - 0x10]
mov edi, dword [edx]
je 0x488527
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x488503
cmp dword [esi - 8], 0
jl 0x4889f3
xor eax, eax
mov dword [esi - 0xc], 0
mov word [esi], ax
jmp 0x488527
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x488517
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x460], esi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x45c]
test eax, eax
je 0x488546
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x45c], 0
mov eax, dword [ebp - 0x448]
inc eax
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x448], eax
cmp eax, 2
je 0x4885ba
mov edi, dword [ebp - 0x468]
jmp 0x4883c0
add esi, 0xfffffff0
push esi
call fcn.00488a00
mov edi, dword [ebp - 0x46c]
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov eax, dword [ebp - 0x45c]
test eax, eax
je 0x488595
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4889bf
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x4889bf
push 0x228
lea eax, [ebp - 0x440]
mov dword [ebp - 0x470], 0
push 0
push eax
mov dword [ebp - 0x464], 0
call fcn.00583650
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x488618
lea eax, [ebp - 0x444]
mov dword [ebp - 0x444], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x488650
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or ebx, 0xffffffff
cmp dword [esi - 0xc], 0
jne 0x4888be
add esi, 0xfffffff0
push esi
call fcn.00488a00
mov edi, dword [ebp - 0x46c]
add eax, 0x10
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jmp 0x4889b5
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop word [eax + eax]
lea eax, [ebp - 0x420]
push 0x420ccc
push eax
call fcn.00589ef6
add esp, 8
test eax, eax
je 0x488688
lea eax, [ebp - 0x444]
push eax
push ebx
call edi
test eax, eax
jne 0x488660
jmp 0x4886bd
push dword [ebp - 0x43c]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
lea eax, [ebp - 0x470]
push eax
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push edi
mov dword [ebp - 0x464], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x464], 0
je 0x488618
push dword [ebp - 0x470]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x488618
lea eax, [ebp - 0x478]
mov dword [ebp - 0x478], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x488618
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
je 0x488618
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 0
call fcn.0045d8a0
mov ecx, eax
test ecx, ecx
je 0x4889e9
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x464], edi
lea eax, [ebp - 0x474]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x448]
push eax
push 0
lea eax, [ebp - 0x44c]
push eax
push 0
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
push dword [ebp - 0x44c]
call fcn.00594a1c
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4887b0
or ebx, 0xffffffff
mov byte [ebp - 4], al
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x48861b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x48861b
mov eax, dword [ebp - 0x448]
lea ecx, [eax + eax]
test ecx, ecx
js 0x4889f3
mov eax, dword [edi - 8]
mov edx, 1
sub edx, dword [edi - 4]
sub eax, ecx
or eax, edx
jge 0x4887e4
push ecx
lea ecx, [ebp - 0x464]
call fcn.00462fd0
mov edi, dword [ebp - 0x464]
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x448]
push eax
push edi
lea eax, [ebp - 0x44c]
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
push dword [edi - 8]
mov dword [ebp - 0x450], eax
push edi
call fcn.005945a6
add esp, 8
test eax, eax
js 0x4889f3
cmp eax, dword [edi - 8]
jg 0x4889f3
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
cmp dword [ebp - 0x450], ecx
je 0x48888e
lea eax, [ebp - 0x450]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
mov edx, dword [ebp - 0x450]
test edx, edx
jne 0x48885a
xor ecx, ecx
jmp 0x48886f
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x488860
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x460]
call fcn.004631c0
push dword [ebp - 0x450]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x460]
push ebx
call fcn.0058a352
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add esp, 4
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x48861b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x48861b
xor edi, edi
mov ebx, dword [ebp + edi*4 - 0x480]
lea ecx, [ebp - 0x45c]
push 0xf013f
push dword [ebp - 0x468]
mov dword [ebp - 0x45c], 0
push ebx
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 0
call fcn.00484780
test eax, eax
je 0x488930
push 0
push 0
push 0xf013f
push 0
push 0
push dword [ebp - 0x468]
lea ecx, [ebp - 0x45c]
push ebx
call fcn.004846b0
test eax, eax
je 0x488930
mov eax, dword [ebp - 0x45c]
test eax, eax
je 0x488978
push eax
jmp 0x488968
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x488935
mov ebx, dword [ebp - 0x45c]
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push 0x420cbc
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test ebx, ebx
je 0x488978
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x45c], 0
inc edi
mov dword [ebp - 0x458], 0
cmp edi, 2
jne 0x4888c0
add esi, 0xfffffff0
push esi
call fcn.00488a00
mov edi, dword [ebp - 0x46c]
add eax, 0x10
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4889bf
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057e93d
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.0045d5a0
push 0x80004005
call fcn.0045d5a0
push 0x80070057
call fcn.0045d5a0
int3