Function at 0x422cc3
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x518764]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x438], ecx
and dword [ebp - 0x420], esi
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x424], esi
push edi
mov edi, 0x400
test ecx, ecx
je 0x42305c
test eax, eax
je 0x42305c
and dword [eax], esi
push edi
call fcn.004ac04c
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x422d24
push 0xfffffffffffffff3
jmp 0x42305e
lea eax, [ebp - 0x41c]
mov byte [ebx], 0
push eax
push 0x20019
push 0
push str.SOFTWAREKaseyaAgent
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x422f3b
xor ecx, ecx
lea eax, [ebp - 0x440]
push ecx
push ecx
push eax
lea eax, [ebp - 0x444]
mov dword [ebp - 0x428], ecx
push eax
lea eax, [ebp - 0x448]
push eax
push ecx
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x428]
push eax
push ecx
push ecx
push ecx
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x422f2f
xor ecx, ecx
mov dword [ebp - 0x434], ecx
test eax, eax
je 0x422f2f
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0x104
push eax
lea eax, [ebp - 0x108]
push eax
push ecx
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x422f10
lea eax, [ebp - 0x430]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x422f10
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0
push 0x4de8c8
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x422f04
cmp dword [ebp - 0x42c], 1
jne 0x422f04
cmp dword [ebp - 0x418], eax
jbe 0x422f04
push 0x104
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push str.Server_Name
push eax
call fcn.0041ebfb
add esp, 0x10
test eax, eax
jle 0x422f04
push dword [ebp - 0x438]
lea eax, [ebp - 0x414]
push eax
call fcn.004af65f
pop ecx
pop ecx
test eax, eax
jne 0x422f04
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x422ea2
sub ecx, edx
lea eax, [ecx + esi]
mov dword [ebp - 0x424], eax
add eax, 2
cmp eax, edi
jle 0x422eda
add ecx, 2
add edi, ecx
push edi
push ebx
call fcn.004ac057
pop ecx
pop ecx
test eax, eax
je 0x422eda
push 0xfffffffffffffff3
mov ebx, eax
pop eax
mov dword [ebp - 0x420], eax
jmp 0x422ee0
mov eax, dword [ebp - 0x420]
test eax, eax
jne 0x422f04
lea ecx, [ebp - 0x108]
mov eax, ebx
mov edx, ecx
sub eax, edx
lea edx, [eax + esi]
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x422ef3
mov esi, dword [ebp - 0x424]
inc esi
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x434]
inc ecx
mov dword [ebp - 0x434], ecx
cmp ecx, dword [ebp - 0x428]
jb 0x422da8
mov dword [ebp - 0x424], esi
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x41c]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesVxDKaseya
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42303b
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0
push 0x4de8c8
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42302f
cmp dword [ebp - 0x42c], 1
jne 0x42302f
cmp dword [ebp - 0x418], eax
jbe 0x42302f
push 0x104
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push str.Server_Name
push eax
call fcn.0041ebfb
add esp, 0x10
test eax, eax
jle 0x42302f
push dword [ebp - 0x438]
lea eax, [ebp - 0x414]
push eax
call fcn.004af65f
pop ecx
pop ecx
test eax, eax
jne 0x42302f
lea eax, [esi + 8]
cmp eax, edi
jle 0x423010
lea eax, [edi + 8]
push eax
push ebx
call fcn.004ac057
pop ecx
pop ecx
test eax, eax
je 0x423010
push 0xfffffffffffffff3
mov ebx, eax
pop eax
mov dword [ebp - 0x420], eax
jmp 0x423016
mov eax, dword [ebp - 0x420]
test eax, eax
jne 0x42302f
lea edi, [ebx + esi]
mov esi, str.Legacy
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x424]
add esi, 7
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jle 0x42304d
mov eax, dword [ebp - 0x43c]
mov byte [ebx + esi], 0
mov dword [eax], ebx
jmp 0x423054
push ebx
call fcn.004ac047
pop ecx
mov eax, dword [ebp - 0x420]
jmp 0x42305f
push 0xfffffffffffffff7
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a50d6
leave
ret