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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x70
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
cmp word [ecx], 0
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x30], eax
je 0x40ba91
mov eax, ecx
add eax, 2
cmp word [eax], 0
jne 0x40b414
mov edi, dword [ebp - 0x5c]
sub eax, edi
sar eax, 1
lea eax, [eax + eax + 0xe]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x54], eax
call eax
mov ebx, eax
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40b440
sub eax, dword [ebp - 0x5c]
sar eax, 1
add eax, 7
mov ecx, dword [ebp - 0x5c]
mov dword [esp + 8], 0x412930
mov dword [esp + 4], eax
mov dword [esp + 0xc], ecx
mov dword [esp], ebx
call dbg.swprintf
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x40]
mov edx, ebx
call sym._REGPROC_write_line
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], ebx
mov dword [ebp - 0x58], eax
call eax
mov edi, dword [ebp - 0x54]
mov dword [esp], 0x200
call edi
mov dword [esp], 0x800
mov dword [ebp - 0x24], eax
call edi
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], 0x800
mov dword [ebp - 0x38], 0x100
lea esi, [esi]
lea esi, [esi]
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x10], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
je 0x40b540
cmp eax, 0xea
jne 0x40b8f0
mov ebx, dword [ebp - 0x1c]
cmp ebx, dword [ebp - 0x34]
jbe 0x40b720
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x28], eax
jmp 0x40b4c0
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x1c]
mov edx, 0x3d
mov eax, 0x4129b0
mov esi, dword [ebp - 0x14]
test ecx, ecx
je 0x40b566
cmp word [ecx], 0
je 0x40b566
jmp 0x40b880
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x40b562
sub eax, 0x4129b0
mov ecx, dword [ebp - 0x30]
mov edx, 0x4129b0
sar eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x40]
call sym._REGPROC_write_line
mov ebx, dword [ebp - 0x10]
cmp esi, 1
je 0x40b6a0
cmp esi, 4
je 0x40b744
cmp esi, 3
jne 0x40ba70
mov eax, 0x65
mov esi, 0x4129a4
jmp 0x40b5b6
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x40b5b2
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x40]
mov edx, 0x4129a4
call sym._REGPROC_write_line
test edi, edi
je 0x40b703
sub esi, 0x4129a4
sar esi, 1
lea edx, [esi + ebx]
lea eax, [edi - 1]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x48], eax
lea eax, [edi + edi*2]
add eax, eax
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
mov edx, dword [ebp - 0x2c]
mov esi, eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x4c], eax
xor ecx, ecx
mov dword [ebp - 0x50], edi
xor ebx, ebx
mov edi, ecx
jmp 0x40b61c
add ebx, 1
cmp ebx, dword [ebp - 0x50]
jae 0x40b6ee
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x2c], edx
movzx eax, byte [eax + ebx]
mov dword [esp + 8], str._02x
mov dword [esp + 4], 3
mov dword [esp + 0xc], eax
lea eax, [esi + edi*2]
mov dword [esp], eax
call dbg.swprintf
add eax, edi
cmp ebx, dword [ebp - 0x48]
je 0x40b6ee
mov edx, 0x2c
xor ecx, ecx
lea edi, [eax + 1]
mov word [esi + eax*2], dx
mov edx, dword [ebp - 0x2c]
mov word [esi + eax*2 + 2], cx
add edx, 3
cmp edx, 0x4c
jbe 0x40b610
mov edi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
mov edx, esi
mov eax, edi
call sym._REGPROC_write_line
mov ecx, dword [ebp - 0x30]
mov edx, str._r_n
mov eax, edi
xor edi, edi
call sym._REGPROC_write_line
mov edx, 2
jmp 0x40b610
mov eax, edi
lea ecx, [ebp - 0x10]
shr eax, 1
sub eax, 1
test edi, edi
cmovne edi, eax
mov eax, dword [ebp - 0x28]
mov edx, edi
call dbg.REGPROC_escape_string
mov ebx, eax
mov eax, dword [ebp - 0x10]
lea edi, [eax + 3]
lea eax, [edi + edi]
mov dword [esp], eax
mov eax, dword [ebp - 0x54]
call eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.__s_
mov esi, eax
mov dword [esp + 4], edi
mov dword [esp], eax
call dbg.swprintf
mov dword [esp], ebx
mov eax, dword [ebp - 0x58]
call eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
mov edx, esi
call sym._REGPROC_write_line
mov dword [esp], esi
mov eax, dword [ebp - 0x58]
call eax
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x40]
mov edx, 0x4128fe
call sym._REGPROC_write_line
add dword [ebp - 0x44], 1
jmp 0x40b4c0
mov eax, dword [ebp - 0x38]
lea ebx, [eax + eax]
shl eax, 2
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], eax
jmp 0x40b4c0
mov dword [esp], 0x1e
mov eax, dword [ebp - 0x54]
cmp edi, 4
je 0x40ba33
call eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], str.hex__x_:
mov dword [esp + 4], 0xf
mov dword [esp], eax
mov dword [ebp - 0x2c], eax
call dbg.swprintf
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
call sym._REGPROC_write_line
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [ebp - 0x58]
call eax
test edi, edi
je 0x40b703
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x30]
add edx, ebx
test eax, eax
jne 0x40b5e1
cmp esi, 2
je 0x40b7be
cmp esi, 7
jne 0x40b5e1
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40ba5d
mov esi, edi
mov eax, dword [ebp - 0x28]
mov ebx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp - 0x2c], edx
shr esi, 1
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call ebx
mov ecx, dword [ebp - 0x54]
sub esp, 0x20
mov edi, eax
mov dword [esp], eax
call ecx
mov dword [esp + 0xc], esi
mov dword [ebp - 0x4c], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edi
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call ebx
lea eax, [edi - 1]
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x48], eax
lea eax, [edi + edi*2]
sub esp, 0x20
add eax, eax
mov dword [esp], eax
call ecx
test edi, edi
mov edx, dword [ebp - 0x2c]
mov esi, eax
jne 0x40b602
jmp 0x40b6ee
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x10]
call dbg.REGPROC_escape_string
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
lea edx, [ecx + 4]
mov ecx, dword [ebp - 0x54]
lea eax, [edx + edx]
mov dword [ebp - 0x48], edx
mov dword [esp], eax
call ecx
mov edx, dword [ebp - 0x48]
mov dword [esp + 8], 0x412942
mov ebx, eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call dbg.swprintf
mov ecx, dword [ebp - 0x30]
mov edx, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x40]
call sym._REGPROC_write_line
mov dword [esp], ebx
mov ebx, dword [ebp - 0x58]
call ebx
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call ebx
jmp 0x40b588
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x58]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call edi
mov dword [esp], 0x202
mov eax, dword [ebp - 0x54]
call eax
mov ebx, eax
mov eax, dword [ebp - 0x5c]
cmp word [eax], 0
je 0x40ba85
nop
add eax, 2
cmp word [eax], 0
jne 0x40b920
sub eax, dword [ebp - 0x5c]
sar eax, 1
mov dword [ebp - 0x28], eax
xor esi, esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x101
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
sub esp, 0x20
test eax, eax
jne 0x40ba24
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
lea edx, [ecx + eax + 2]
mov ecx, dword [ebp - 0x54]
lea eax, [edx + edx]
mov dword [ebp - 0x24], edx
mov dword [esp], eax
call ecx
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x24]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], str._s_s
mov edi, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call dbg.swprintf
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x10]
mov dword [esp + 4], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x40ba00
mov dword [esp], edi
mov eax, dword [ebp - 0x58]
add esi, 1
call eax
jmp 0x40b933
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x10]
mov ecx, edi
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call dbg.export_registry_data
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x40b9ea
mov dword [ebp + 8], ebx
mov eax, dword [ebp - 0x58]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp eax
call eax
mov esi, eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov dword [esp + 8], str.dword:_08x
mov dword [esp + 4], 0xf
mov dword [esp + 0xc], eax
mov dword [esp], esi
call dbg.swprintf
jmp 0x40b6ee
mov dword [esp], 0
mov eax, dword [ebp - 0x54]
call eax
mov esi, eax
jmp 0x40b6ee
mov dword [esp], 0x1e
mov eax, dword [ebp - 0x54]
call eax
mov dword [esp + 0xc], esi
jmp 0x40b761
mov dword [ebp - 0x28], 0
jmp 0x40b931
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp], 0xe
mov dword [ebp - 0x54], eax
call eax
mov ebx, eax
mov eax, 7
jmp 0x40b451