Function at 0x101012b
Capabilities:
Delete registry value
Query or enumerate registry value
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4d8
mov edx, dword [ebp + 0x14]
mov eax, dword [reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
mov ecx, dword [ebp + 0xc]
push ebx
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], edx
lea edx, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push edx
push 0x2000000
xor ebx, ebx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], ecx
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10102e7
cmp dword [reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], ebx
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], ebx
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], ebx
jne 0x10102bc
push esi
mov esi, 0x104
push edi
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push ebx
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0x4b8]
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], 0x50
push dword [ebp - 0x4c0]
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
je 0x101029a
cmp eax, ebx
jne 0x10102ef
cmp dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], 1
jne 0x10231bb
cmp dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], 2
je 0x10231cd
cmp dword [reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], ebx
jne 0x102320b
push 0x618
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebx
je 0x101029a
push dword [ebp - 0x4cc]
push esi
push edi
call fcn.01004cfc
test eax, eax
jl 0x101029a
lea eax, [ebp - 0xa4]
push eax
push esi
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
call fcn.01004cfc
test eax, eax
jl 0x101029a
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push esi
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
call fcn.01004cfc
test eax, eax
jl 0x101029a
cmp dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], ebx
je 0x1010402
push edi
push 0x7fffffff
push dword [ebp - 0x4bc]
call dword [fcn.01004da8]
cmp eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
je 0x1010426
inc dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
cmp dword [reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], ebx
je 0x101019c
mov eax, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
cmp eax, ebx
jne 0x101043f
pop edi
pop esi
push dword [ebp - 0x4c0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], ebx
jne 0x1023265
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
pop ebx
call fcn.01001b01
leave
ret 0x14
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], ebx
jmp 0x10102c8
cmp eax, 0x103
jne 0x102321e
jmp 0x10102ac
push dword [ebp - 0x4b8]
push dword [ebp - 0x4bc]
call dword [fcn.01004e80]
test edi, edi
mov esi, eax
jne 0x1023229
push dword [ebp + 0x18]
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push dword [ebp + 0x10]
push eax
push esi
call dword [ebp - 0x4d4]
test edi, edi
jne 0x1023247
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
inc dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
mov eax, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
cmp eax, dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification]
jl 0x1010364
xor ebx, ebx
push dword [ebp - 0x4bc]
call dword [0x10103cc]
jmp 0x10102ba
push 5
call dword [fcn.01020318]
cmp eax, ebx
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], eax
je 0x1010426
jmp 0x101027f
cmp eax, esi
ja 0x101029a
jmp 0x1010213
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x101029a
test eax, eax
jne 0x101039c
jmp 0x1010380
mov eax, dword [eax]
cmp eax, ebx
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], eax
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], ebx
jle 0x10103b9
mov edi, dword [ebp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
and edi, 1
jmp 0x1010364
cmp dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], 2
jne 0x101029a
jmp 0x1010206
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
push esi
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
call fcn.01004cfc
test eax, eax
jl 0x101029a
push esi
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
push eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_460]
cmp eax, ebx
je 0x101029a
jmp 0x1010419
cmp word [ebp - 0xa4], 0x2a
jne 0x101029a
jmp 0x101021f
mov dword [ebp - reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification], ebx
jmp 0x10102ac
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
cmp word [eax], 0x21
je 0x1010380
push eax
push dword [ebp - 0x4c0]
call ebx
jmp 0x1010432
lea eax, reloc.WINSTA.dll_WinStationUnRegisterConsoleNotification
cmp word [eax], 0x21
jne 0x101039c
push eax
push dword [ebp - 0x4c0]
call ebx
jmp 0x101039c
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]