Function at 0x435fa0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x436208
mov eax, dword [esp + 0x20]
test eax, eax
je 0x436208
mov esi, dword [sym.imp.MSVCRT.dll_strchr]
push 0x3a
push edi
mov dword [esp + 0x24], 0
call esi
add esp, 8
test eax, eax
je 0x436208
mov byte [eax], 0
inc eax
push 0x5c
push edi
mov dword [esp + 0x1c], eax
call esi
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x436208
mov byte [ebp], 0
inc ebp
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 1
mov esi, str.HKLM
mov ecx, edi
mov al, byte [ecx]
mov dl, al
cmp al, byte [esi]
jne 0x436036
test dl, dl
je 0x436032
mov al, byte [ecx + 1]
mov dl, al
cmp al, byte [esi + 1]
jne 0x436036
add ecx, 2
add esi, 2
test dl, dl
jne 0x436012
xor ecx, ecx
jmp 0x43603b
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x436169
mov esi, str.HKEY_LOCAL_MACHINE
mov ecx, edi
mov al, byte [ecx]
mov dl, al
cmp al, byte [esi]
jne 0x43606e
test dl, dl
je 0x43606a
mov al, byte [ecx + 1]
mov dl, al
cmp al, byte [esi + 1]
jne 0x43606e
add ecx, 2
add esi, 2
test dl, dl
jne 0x43604a
xor ecx, ecx
jmp 0x436073
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x436169
mov esi, str.HKCU
mov ecx, edi
mov al, byte [ecx]
mov dl, al
cmp al, byte [esi]
jne 0x4360a6
test dl, dl
je 0x4360a2
mov al, byte [ecx + 1]
mov dl, al
cmp al, byte [esi + 1]
jne 0x4360a6
add ecx, 2
add esi, 2
test dl, dl
jne 0x436082
xor ecx, ecx
jmp 0x4360ab
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x43615c
mov esi, str.HKEY_CURRENT_USER
mov ecx, edi
mov al, byte [ecx]
mov dl, al
cmp al, byte [esi]
jne 0x4360de
test dl, dl
je 0x4360da
mov al, byte [ecx + 1]
mov dl, al
cmp al, byte [esi + 1]
jne 0x4360de
add ecx, 2
add esi, 2
test dl, dl
jne 0x4360ba
xor ecx, ecx
jmp 0x4360e3
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x43615c
mov esi, str.HKCR
mov ecx, edi
mov al, byte [ecx]
mov dl, al
cmp al, byte [esi]
jne 0x436112
test dl, dl
je 0x43610e
mov al, byte [ecx + 1]
mov dl, al
cmp al, byte [esi + 1]
jne 0x436112
add ecx, 2
add esi, 2
test dl, dl
jne 0x4360ee
xor ecx, ecx
jmp 0x436117
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x43614f
mov esi, str.HKEY_CLASSES_ROOT
mov ecx, edi
mov al, byte [ecx]
mov dl, al
cmp al, byte [esi]
jne 0x436146
test dl, dl
je 0x436142
mov al, byte [ecx + 1]
mov dl, al
cmp al, byte [esi + 1]
jne 0x436146
add ecx, 2
add esi, 2
test dl, dl
jne 0x436122
xor ecx, ecx
jmp 0x43614b
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x436182
lea ecx, [esp + 0x1c]
push ecx
push ebp
push accept
jmp 0x436174
lea edx, [esp + 0x1c]
push edx
push ebp
push reloc.WS2_32.dll_accept
jmp 0x436174
lea eax, [esp + 0x1c]
push eax
push ebp
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x436222
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x436222
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push 0
push edx
push 0
push ecx
push eax
call ebp
mov edx, dword [esp + 0xc]
inc edx
push edx
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
je 0x436208
mov eax, dword [esp + 0xc]
mov edi, esi
lea ecx, [eax + 1]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x20]
push esi
push ecx
push 0
push edx
push eax
call ebp
test eax, eax
je 0x436211
push esi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x20]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
mov dword [eax], esi
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0xc
ret