Function at 0x4477bf
Capabilities:
Delete registry key
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa28
push ebx
push esi
push edi
mov ebx, SysReAllocStringLen
push 0x40f3c8
push ebx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
call fcn.00446f89
cmp ax, 4
je 0x4478a3
cmp ax, 5
je 0x4478a3
cmp ax, 6
je 0x4478a3
lea eax, [ebp - 4]
mov esi, 0x104
push eax
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
push esi
lea eax, [ebp - 0xa28]
push 0x40f390
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
or edx, 0xffffffff
lea edi, [ebp - 0x124]
mov ecx, edx
xor eax, eax
add esp, 0xc
lea ebx, [ebp - 0xa28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
mov ecx, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea ebx, [ebp - 0xa28]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40f364
mov ecx, edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
mov ecx, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0xa28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
jmp 0x447a54
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call fcn.0044747c
test eax, eax
pop ecx
je 0x447a3c
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 8]
call fcn.0044706a
push 0x104
lea eax, [ebp - 0xa28]
push 0x40f390
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea edi, [ebp - 0x228]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0xa28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
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]
lea eax, [ebp - 0xa28]
mov ecx, edx
push eax
and ecx, 3
lea eax, [ebp - 0x124]
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x124]
push eax
push ebx
call fcn.0044712b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
call fcn.004471be
add esp, 0x38
test eax, eax
je 0x447a02
lea eax, [ebp - 0x20]
push 0
push eax
lea eax, [ebp - 0xa28]
push eax
push ebx
call fcn.0044736f
mov edi, 0x40f35c
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0xa28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
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]
lea eax, [ebp - 0x20]
mov ecx, edx
push eax
lea eax, [ebp - 0xa28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebx
call fcn.0044736f
mov edi, 0x40f334
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0xa28]
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]
lea eax, [ebp - 0x20]
mov ecx, edx
push eax
lea eax, [ebp - 0xa28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebx
call fcn.0044736f
add esp, 0x30
lea eax, [ebp - 0xa28]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
xor esi, esi
cmp dword [ebp - 0xc], esi
je 0x447a1a
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], esi
je 0x447a3c
push 0
lea eax, [ebp - 0x124]
push dword [ebp - 4]
push eax
push ebx
call fcn.0044736f
push dword [ebp - 4]
call fcn.0045e98b
add esp, 0x14
cmp dword [ebp - 8], 0
je 0x447a54
push dword [ebp - 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
leave
ret