Function at 0x40b120
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, 0x8c
cmp word [ecx], 0
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x70], ecx
je 0x40b805
mov eax, ecx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40b148
mov edi, dword [ebp - 0x70]
mov esi, dword [sym.imp.ucrtbase.dll_malloc]
sub eax, edi
mov dword [ebp - 0x68], esi
add eax, 0xe
mov dword [esp], eax
call esi
mov ebx, eax
mov eax, edi
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x40b170
sub eax, dword [ebp - 0x70]
sar eax, 1
add eax, 7
mov edi, dword [ebp - 0x70]
mov dword [esp + 8], 0x411bf0
mov dword [esp + 4], eax
mov dword [esp + 0xc], edi
mov dword [esp], ebx
call sym._swprintf_1
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x58]
mov edx, ebx
call sym._REGPROC_write_line
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], ebx
mov dword [ebp - 0x6c], eax
call eax
mov esi, dword [ebp - 0x68]
mov dword [esp], 0x200
call esi
mov dword [esp], 0x800
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], 0x800
mov dword [ebp - 0x50], 0x100
lea esi, [esi]
lea esi, [esi]
mov eax, dword [ebp - 0x50]
mov dword [esp + 0x10], 0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
je 0x40b270
cmp eax, 0xea
jne 0x40b548
mov ebx, dword [ebp - 0x28]
cmp ebx, dword [ebp - 0x48]
jbe 0x40b460
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], eax
jmp 0x40b1f0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x3c]
mov edx, 0x3d
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x4c], eax
mov eax, 0x411c70
test ecx, ecx
je 0x40b29c
cmp word [ecx], 0
je 0x40b29c
jmp 0x40b4e0
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x40b298
sub eax, 0x411c70
mov ecx, dword [ebp + 8]
mov edx, 0x411c70
sar eax, 1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x58]
call sym._REGPROC_write_line
mov edi, dword [ebp - 0x1c]
cmp ebx, 1
je 0x40b3e0
cmp ebx, 4
je 0x40b488
cmp ebx, 3
jne 0x40b69a
mov eax, 0x65
mov ebx, 0x411c64
jmp 0x40b2f4
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
jne 0x40b2f0
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp + 8]
mov edx, 0x411c64
call sym._REGPROC_write_line
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x40b444
sub ebx, 0x411c64
sar ebx, 1
add edi, ebx
mov eax, dword [ebp - 0x4c]
lea esi, [eax - 1]
lea eax, [eax + eax*2]
add eax, eax
mov dword [ebp - 0x60], esi
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
mov esi, eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x64], eax
xor ecx, ecx
mov edx, edi
xor ebx, ebx
mov edi, ecx
jmp 0x40b35a
inc ebx
cmp ebx, dword [ebp - 0x4c]
jae 0x40b42f
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x40], 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 sym._swprintf_1
add eax, edi
cmp ebx, dword [ebp - 0x60]
je 0x40b42f
mov edx, 0x2c
xor ecx, ecx
lea edi, [eax + 1]
mov word [esi + eax*2], dx
mov edx, dword [ebp - 0x40]
mov word [esi + eax*2 + 2], cx
add edx, 3
cmp edx, 0x4c
jbe 0x40b350
mov edi, dword [ebp - 0x58]
mov ecx, dword [ebp + 8]
mov edx, esi
mov eax, edi
call sym._REGPROC_write_line
mov ecx, dword [ebp + 8]
mov edx, str._r_n
mov eax, edi
xor edi, edi
call sym._REGPROC_write_line
mov edx, 2
jmp 0x40b350
mov esi, dword [ebp - 0x4c]
lea ecx, [ebp - 0x1c]
mov eax, esi
shr eax, 1
dec eax
test esi, esi
cmove eax, esi
mov edx, eax
mov eax, dword [ebp - 0x44]
call sym._REGPROC_escape_string
mov ebx, eax
mov eax, dword [ebp - 0x1c]
lea edi, [eax + 3]
lea eax, [edi + edi]
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
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 sym._swprintf_1
mov dword [esp], ebx
mov eax, dword [ebp - 0x6c]
call eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp + 8]
mov edx, esi
call sym._REGPROC_write_line
mov dword [esp], esi
mov eax, dword [ebp - 0x6c]
call eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x58]
mov edx, 0x411bc2
call sym._REGPROC_write_line
inc dword [ebp - 0x5c]
jmp 0x40b1f0
mov eax, dword [ebp - 0x50]
lea ebx, [eax + eax]
shl eax, 2
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x3c], eax
jmp 0x40b1f0
mov eax, dword [ebp - 0x4c]
mov dword [esp], 0x1e
test eax, eax
mov eax, dword [ebp - 0x68]
jne 0x40b7c8
call eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], str.hex__x_:
mov ebx, eax
mov dword [esp + 4], 0xf
mov dword [esp], eax
call sym._swprintf_1
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp + 8]
mov edx, ebx
call sym._REGPROC_write_line
mov dword [esp], ebx
mov eax, dword [ebp - 0x6c]
call eax
jmp 0x40b444
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x1c]
call sym._REGPROC_escape_string
mov edi, eax
mov eax, dword [ebp - 0x1c]
lea edx, [eax + 4]
lea eax, [edx + edx]
mov dword [ebp - 0x40], edx
mov dword [esp], eax
mov eax, dword [ebp - 0x68]
call eax
mov edx, dword [ebp - 0x40]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x411c02
mov esi, eax
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._swprintf_1
mov ecx, dword [ebp + 8]
mov edx, esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x58]
call sym._REGPROC_write_line
mov dword [esp], esi
mov esi, dword [ebp - 0x6c]
call esi
mov dword [esp], edi
call esi
jmp 0x40b2be
mov eax, dword [ebp - 0x44]
mov edi, dword [ebp - 0x6c]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call edi
mov dword [esp], 0x202
mov eax, dword [ebp - 0x68]
call eax
mov ebx, eax
mov eax, dword [ebp - 0x70]
cmp word [eax], 0
je 0x40b822
lea esi, [esi]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40b580
sub eax, dword [ebp - 0x70]
sar eax, 1
mov dword [ebp - 0x40], eax
xor esi, esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x101
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x54]
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 0x40b688
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x68]
lea edx, [ecx + eax + 2]
lea eax, [edx + edx]
mov dword [ebp - 0x3c], edx
mov dword [esp], eax
call edi
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x3c]
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 sym._swprintf_1
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x1c]
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 0x40b660
mov dword [esp], edi
mov eax, dword [ebp - 0x6c]
inc esi
call eax
jmp 0x40b593
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov ecx, edi
mov dword [esp], eax
mov eax, dword [ebp - 0x58]
call sym._export_registry_data
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x40b64a
mov dword [esp], ebx
mov eax, dword [ebp - 0x6c]
call eax
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x1e
mov eax, dword [ebp - 0x68]
call eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.hex__x_:
mov esi, eax
mov dword [esp + 4], 0xf
mov dword [esp], eax
call sym._swprintf_1
mov ecx, dword [ebp + 8]
mov edx, esi
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x58]
call sym._REGPROC_write_line
mov dword [esp], esi
mov esi, dword [ebp - 0x6c]
call esi
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x40b444
mov esi, dword [ebp + 8]
add edi, dword [ebp - 0x40]
test esi, esi
jne 0x40b321
cmp ebx, 2
je 0x40b703
cmp ebx, 7
jne 0x40b321
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x40b7f2
mov esi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x44]
mov dword [esp + 0x1c], 0
mov ebx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x18], 0
shr esi, 1
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], esi
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 - 0x68]
sub esp, 0x20
mov dword [ebp - 0x4c], eax
mov dword [esp], eax
call ecx
mov ecx, dword [ebp - 0x4c]
mov dword [esp + 0xc], esi
mov dword [ebp - 0x64], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call ebx
mov ebx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x68]
sub esp, 0x20
lea eax, [ebx - 1]
mov dword [ebp - 0x60], eax
lea eax, [ebx + ebx*2]
add eax, eax
mov dword [esp], eax
call ecx
mov esi, eax
test ebx, ebx
jne 0x40b33f
jmp 0x40b42f
call eax
mov esi, eax
mov eax, dword [ebp - 0x44]
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 sym._swprintf_1
jmp 0x40b42f
mov dword [esp], 0
mov eax, dword [ebp - 0x68]
call eax
mov esi, eax
jmp 0x40b42f
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp], 0xe
mov dword [ebp - 0x68], eax
call eax
mov ebx, eax
mov eax, 7
jmp 0x40b181
mov dword [ebp - 0x40], 0
jmp 0x40b591