Function at 0x100126a0
Capabilities:
Delete registry key
Delete registry value
Get common file path
Get session user name

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100308b1
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x230
push ebx
push ebp
xor ebx, ebx
push esi
cmp eax, 9
push edi
mov ebp, ecx
ja case.default.0x100126d0
jmp dword [eax*4 + 0x10012b1c]
push str.SoftwareMicrosoftInternet_ExplorerTypedURLs
jmp 0x10012971
mov eax, dword [0x1004415c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x248], ebx
call fcn.10011690
test eax, eax
jne 0x10012762
call fcn.10011620
test eax, eax
jne 0x10012762
lea ecx, [esp + 0x18]
lea edx, [esp + 0x13c]
push ecx
push edx
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
push str.SoftwareMicrosoftProtected_Storage_System_Provider_
lea ecx, [esp + 0x14]
call fcn.10026ed9
lea eax, [esp + 0x13c]
lea ecx, [esp + 0x10]
push eax
call fcn.10027052
push str.Datae161255a_37c3_11d2_bcaa_00c04fd929db
lea ecx, [esp + 0x14]
call fcn.10027052
mov ecx, dword [esp + 0x10]
push ecx
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov esi, eax
jmp 0x100128e5
mov edx, dword [0x1004415c]
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
mov byte [esp + 0x24c], 1
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ebx
call fcn.100111c0
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x100128be
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x13c]
push ecx
push edx
mov ecx, ebp
call fcn.100112d0
push str.SoftwareMicrosoftProtected_Storage_System_Provider_
lea ecx, [esp + 0x14]
call fcn.10026ed9
lea eax, [esp + 0x13c]
lea ecx, [esp + 0x10]
push eax
call fcn.10027052
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x20]
call fcn.10026e89
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
push eax
push closesocket
mov ecx, ebp
call fcn.10011570
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x24]
push ecx
push edx
push eax
mov ecx, ebp
call fcn.100113a0
test eax, eax
je 0x1001287d
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push ebx
push ecx
push edx
push closesocket
mov ecx, ebp
call fcn.10011080
push str.Data
lea ecx, [esp + 0x14]
call fcn.10027052
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push ebx
push eax
push ecx
push closesocket
mov ecx, ebp
call fcn.10011080
push str.e161255a_37c3_11d2_bcaa_00c04fd929db
lea ecx, [esp + 0x14]
call fcn.10027052
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
push 1
push edx
push eax
push closesocket
mov ecx, ebp
call fcn.10011080
mov ecx, dword [esp + 0x10]
push ecx
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov esi, eax
jmp 0x10012881
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x10012894
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x100128c2
mov edx, dword [esp + 0x1c]
push ebx
push eax
push edx
push closesocket
mov ecx, ebp
call fcn.10011080
mov eax, dword [esp + 0x18]
push eax
call fcn.10026b06
add esp, 4
jmp 0x100128c2
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x100128d5
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x248], bl
call fcn.10026d9c
xor ecx, ecx
cmp esi, ebx
sete cl
mov ebx, ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x248], 0xffffffff
call fcn.10026d9c
jmp case.default.0x100126d0
push str.SoftwareMicrosoftInternet_ExplorerIntelliForms
jmp 0x10012971
push ebx
lea edx, [esp + 0x3c]
push 6
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je case.default.0x100126d0
push ebx
lea eax, [esp + 0x3c]
push ebx
push eax
jmp 0x10012af6
push str.SoftwareMicrosoftRAS_AutodialAddresses
jmp 0x10012971
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerRunMRU
jmp 0x10012971
push ebx
lea ecx, [esp + 0x3c]
push 8
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je case.default.0x100126d0
push ebx
lea edx, [esp + 0x3c]
push ebx
push edx
mov ecx, ebp
call fcn.10010d30
test eax, eax
je case.default.0x100126d0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerRecentDocs
push closesocket
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
jmp case.default.0x100126d0
push ebx
lea eax, [esp + 0x3c]
push 0x13
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je case.default.0x100126d0
push ebx
lea ecx, [esp + 0x3c]
push ebx
push ecx
jmp 0x10012af6
mov edx, dword [0x1004415c]
mov dword [esp + 0x14], edx
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
mov dword [esp + 0x248], 2
mov esi, 1
push esi
lea eax, [esp + 0x18]
push str.Machine_d
push eax
call fcn.10025f9e
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
push str.SoftwareMicrosoftTelnet
push closesocket
call edi
push esi
lea edx, [esp + 0x18]
push str.Service_d
push edx
call fcn.10025f9e
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
push str.SoftwareMicrosoftTelnet
push closesocket
call edi
push esi
lea ecx, [esp + 0x18]
push str.TermType_d
push ecx
call fcn.10025f9e
mov edx, dword [esp + 0x20]
add esp, 0xc
push edx
push str.SoftwareMicrosoftTelnet
push closesocket
call edi
inc esi
cmp esi, 8
jle 0x100129cb
push str.LastMachine
push str.SoftwareMicrosoftTelnet
push closesocket
call edi
push str.LastService
push str.SoftwareMicrosoftTelnet
push closesocket
call edi
push str.LastTermType
push str.SoftwareMicrosoftTelnet
push closesocket
call edi
lea ecx, [esp + 0x14]
mov ebx, 1
mov dword [esp + 0x248], 0xffffffff
call fcn.10026d9c
jmp case.default.0x100126d0
lea eax, [esp + 0x38]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.History
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
lea eax, [esp + 0x40]
rep movsb byte es:[edi], byte [esi]
push eax
mov ecx, ebp
call fcn.10010d30
push 0
lea ecx, [esp + 0x3c]
push 0x22
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je case.default.0x100126d0
push 1
lea edx, [esp + 0x3c]
push 0
push edx
mov ecx, ebp
call fcn.10010d30
mov ebx, eax
mov ecx, dword [esp + 0x240]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x23c
ret 4