Function at 0x444a20
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x474d68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov eax, dword [esp + 0x58]
mov eax, dword [eax]
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, ecx
lea ecx, [esp + 0x20]
push ecx
push 0x20019
push 0
push eax
push 0x80000000
mov dword [esp + 0x38], esi
call edi
test eax, eax
jne 0x444e39
mov ecx, dword [esp + 0x20]
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x28]
push eax
push 0
push 0
push ecx
call ebp
test eax, eax
jne 0x444d62
mov edx, dword [esp + 0x1c]
push edx
call fcn.0046b365
mov edx, dword [esp + 0x2c]
add esp, 4
mov ebx, eax
lea eax, [esp + 0x1c]
push eax
push ebx
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push edx
mov dword [esp + 0x60], ebx
call ebp
test eax, eax
jne 0x444d59
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x444ac8
sub eax, edx
mov dword [esp + 0x44], eax
jne 0x444ae4
mov dword [esp + 0x18], 1
jmp 0x444d59
lea eax, [esp + 0x3c]
push eax
push 0x20019
push 0
push ebx
push 0x80000000
call edi
test eax, eax
jne 0x444d59
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push ecx
push 0x2001b
push eax
push str.shell
push edx
call edi
xor edi, edi
cmp eax, edi
je 0x444b2a
mov dword [esp + 0x18], 1
jmp 0x444d3b
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push edi
lea ecx, [esp + 0x28]
push ecx
push edi
push edi
push edx
mov dword [esp + 0x50], edi
mov dword [esp + 0x2c], edi
call ebp
test eax, eax
jne 0x444b84
mov eax, dword [esp + 0x1c]
push eax
call fcn.0046b365
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
push eax
lea edx, [esp + 0x28]
push edx
push edi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
push edi
push eax
call ebp
test eax, eax
je 0x444b84
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0046b360
add esp, 4
mov dword [esp + 0x14], edi
push 0x3e8
mov dword [esp + 0x1c], 1
call fcn.0046b365
push 0x3e8
mov ebx, eax
call fcn.0046b365
add esp, 8
mov ebp, eax
jmp 0x444bb0
mov dword [esp + 0x24], 0
jmp 0x444bc0
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
lea eax, [esp + 0x50]
push eax
push ebx
push ecx
push edx
mov dword [esp + 0x60], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
test esi, esi
jne 0x444ce7
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x34]
push eax
push 0x20019
xor edi, edi
push edi
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x444cdf
lea edx, [esp + 0x30]
push edx
push 0x20019
push eax
mov eax, dword [esp + 0x40]
push str.command
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x444cc7
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x44]
push ecx
push ebp
push eax
push eax
push 0x476b58
push edx
mov dword [esp + 0x5c], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x444cb5
cmp byte [ebp], 0x22
jne 0x444c6f
push 0x22
lea eax, [ebp + 1]
push eax
jmp 0x444c72
push 0x20
push ebp
call fcn.004559e0
add esp, 8
test eax, eax
je 0x444c81
mov byte [eax], 0
push 0x5c
push ebp
call fcn.00455b50
add esp, 8
test eax, eax
je 0x444cba
mov ecx, dword [esp + 0x64]
mov ecx, dword [ecx]
inc eax
push ecx
push eax
call fcn.0045c84c
mov edx, dword [esp + 0x38]
add esp, 8
mov edi, eax
neg edi
sbb edi, edi
push edx
inc edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x444ccc
mov edi, 1
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x444ccc
mov edi, 1
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x444e4c
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x24]
inc ecx
test esi, esi
mov dword [esp + 0x24], ecx
je 0x444bc0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x444d0d
mov eax, dword [esp + 0x10]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0046b360
push ebx
call fcn.0046b360
push ebp
call fcn.0046b360
mov edx, dword [esp + 0x1c]
add esp, 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x48]
xor edi, edi
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x18], edi
je 0x444d59
push ebx
push 0x80000000
mov ecx, esi
call fcn.004446c0
push ebx
call fcn.0046b360
add esp, 4
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x444e37
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
push eax
push 0x80000000
mov ecx, esi
call fcn.004446c0
mov ebp, dword [esp + 0x6c]
mov ecx, dword [ebp]
mov eax, dword [ecx - 0xc]
test eax, eax
jle 0x444e37
xor edi, edi
test eax, eax
jle 0x444e37
or ebx, 0xffffffff
jmp 0x444db0
lea edx, [edi + 1]
test edx, edx
jl 0x444dd3
cmp edx, eax
jge 0x444dd3
add ecx, edx
push 0x2e
push ecx
call fcn.00455cc6
add esp, 8
test eax, eax
je 0x444dd3
sub eax, dword [ebp]
mov esi, eax
jns 0x444dd9
mov eax, dword [ebp]
mov esi, dword [eax - 0xc]
cmp edi, esi
jge 0x444e27
mov ecx, esi
sub ecx, edi
push ecx
push edi
lea edx, [esp + 0x70]
push edx
mov ecx, ebp
call fcn.0041ece0
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x2c]
push edi
push 0x80000000
mov dword [esp + 0x64], 0
call fcn.004446c0
lea eax, [edi - 0x10]
mov dword [esp + 0x5c], ebx
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x444e27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [ebp]
mov eax, dword [ecx - 0xc]
cmp esi, eax
mov edi, esi
jl 0x444db0
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x50
ret 0xc
mov ecx, dword [esp + 0x10]
push ebx
push ecx
mov ecx, dword [esp + 0x34]
call fcn.004446c0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x444bb0
mov edx, eax
push ebx
push edx
call fcn.0045c84c
add esp, 8
test eax, eax
jne 0x444bb0
mov dword [esp + 0x38], 1
jmp 0x444bb0