Function at 0x1000dd70
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x21c
mov cl, byte [eax]
push ebx
push ebp
push esi
cmp cl, 0x5c
push edi
lea ebx, [eax + 1]
jne 0x1000dfd4
mov al, byte [ebx]
inc ebx
cmp al, 0x21
jne 0x1000dfd4
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [ebx]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test al, al
lea ecx, [esp + 0x24]
je 0x1000ddd1
cmp al, 0x21
je 0x1000ddd1
mov al, byte [ebx + 1]
inc ebx
inc ecx
test al, al
jne 0x1000ddc4
mov byte [ecx], 0
mov cl, byte [ebx]
inc ebx
cmp cl, 0x21
jne 0x1000dfd4
mov dl, byte [ebx]
inc ebx
cmp dl, 0x5c
jne 0x1000dfd4
lea eax, [esp + 0x14]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetServicesLanmanServerShares
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000dfd4
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x128]
push ecx
lea eax, [esp + 0x24]
push edx
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push 0
lea ebp, [esp + 0x138]
push ecx
push edx
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x28], ebp
call esi
cmp eax, 0xea
jne 0x1000de97
mov eax, dword [esp + 0x18]
inc eax
push eax
mov dword [esp + 0x1c], eax
call sym.fbclient.dll_gds__alloc
test eax, eax
mov dword [esp + 0x10], eax
jne 0x1000de7a
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push eax
push edx
lea eax, [esp + 0x30]
push 0
push eax
push ecx
call esi
mov ebp, dword [esp + 0x10]
test eax, eax
jne 0x1000dfb8
test ebp, ebp
mov esi, ebp
je 0x1000dfb8
cmp byte [esi], 0
je 0x1000dfb8
push 4
push str.path
push esi
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x1000deeb
cmp dword [esp + 0x20], 7
jne 0x1000dfb8
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esi + ecx + 1]
test esi, esi
jne 0x1000dea9
jmp 0x1000dfb8
lea edi, [esi + 5]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x1c], edi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
mov ebp, ecx
or ecx, 0xffffffff
mov edx, ebp
and edx, 0xffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [edx + esi + 4], 0x5c
mov esi, edx
sete al
add esi, ecx
lea ecx, [eax + esi + 1]
cmp ecx, 0x104
jae 0x1000dfb4
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x1c], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + edx + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [eax - 1], 0x5c
je 0x1000df65
mov byte [eax], 0x5c
inc ebp
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
and ebp, 0xffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + ebp + 0x24]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x230]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x128]
cmp ebp, eax
je 0x1000dfc9
push ebp
call sym.fbclient.dll_gds__free
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret