Function at 0x1000b305
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1001d066
call sub.msvcrt.dll__EH_prolog
sub esp, 0xd48
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x153]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x154], bl
call sub.msvcrt.dll_memset
mov esi, 0x3ff
push esi
lea eax, [ebp - 0xd53]
push ebx
push eax
mov dword [ebp - 0x18], 0x104
mov byte [ebp - 0xd54], bl
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x553]
push ebx
push eax
mov byte [ebp - 0x554], bl
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x953]
push ebx
push eax
mov byte [ebp - 0x954], bl
call sub.msvcrt.dll_memset
inc esi
push esi
lea eax, [ebp - 0xd54]
push ebx
push eax
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x554]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x48
push esi
lea eax, [ebp - 0x954]
push ebx
push eax
call sub.msvcrt.dll_memset
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push 1
push ebx
push str.SoftwareMartin_PrikrylWinSCP_2Configuration
push 0x80000001
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
call edi
test eax, eax
jne 0x1000b6f2
mov esi, dword [sym.imp.ADVAPI32.dll_RegGetValueA]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push 0x10
push str.UseMasterPassword
push str.Security
push dword [ebp - 0x10]
call esi
test eax, eax
je 0x1000b410
cmp dword [ebp - 0x10], ebx
je 0x1000b410
push dword [ebp - 0x10]
call dword [0x1023c0cc]
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x34], ebx
je 0x1000b426
cmp dword [ebp - 0x10], ebx
je 0x1000b437
push dword [ebp - 0x10]
call dword [0x1023c0cc]
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x10], ebx
je 0x1000b437
push dword [ebp - 0x10]
call dword [0x1023c0cc]
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
push 9
push ebx
push str.SoftwareMartin_PrikrylWinSCP_2Sessions
push 0x80000001
call edi
test eax, eax
jne 0x1000b6f2
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x154]
push eax
push ebx
push dword [ebp - 0x10]
call dword [0x1023c158]
cmp eax, ebx
jne 0x1000b6e1
push 0xf423f
push ebx
call dword [0x1023c164]
push eax
call dword [0x1023c0fc]
mov dword [ebp - 0x14], eax
push str.Soft:_WinSCP_n
push dword [ebp - 0x14]
call dword [0x1023c110]
push 0x10022c60
push dword [ebp - 0x14]
call dword [0x1023c110]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xd54]
push eax
push ebx
push 2
push str.HostName
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0xd54]
push eax
push dword [ebp - 0x14]
call dword [0x1023c110]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push 0xffff
push str.PortNumber
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x20], 4
call esi
test eax, eax
jne 0x1000b52e
push dword [ebp - 0x24]
lea eax, [ebp - 0x50]
push eax
call fcn.1000fa71
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.1000e6f6
push eax
push dword [ebp - 0x14]
call dword [0x1023c110]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.1000e52a
jmp 0x1000b53c
push 0x10022c80
push dword [ebp - 0x14]
call dword [0x1023c110]
push 0x10022c84
push dword [ebp - 0x14]
call dword [0x1023c110]
push 0x10022c88
push dword [ebp - 0x14]
call dword [0x1023c110]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x554]
push eax
push ebx
push 2
push str.UserName
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x554]
push eax
push dword [ebp - 0x14]
call dword [0x1023c110]
push 0x10022c9c
push dword [ebp - 0x14]
call dword [0x1023c110]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x954]
push eax
push ebx
push 2
push str.Password
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 0x10]
call esi
push 0x10022cac
push dword [ebp - 0x14]
call dword [0x1023c110]
push 0x10022977
lea eax, [ebp - 0x954]
push eax
call dword [0x1023c13c]
test eax, eax
je 0x1000b619
lea eax, [ebp - 0x954]
push eax
lea eax, [ebp - 0x554]
push eax
lea eax, [ebp - 0xd54]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.1000ae4f
add esp, 0x10
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.1000e6f6
push eax
push dword [ebp - 0x14]
call dword [0x1023c110]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.1000e52a
push 0x10022cb8
push dword [ebp - 0x14]
call dword [0x1023c110]
push 0x10022cbc
push dword [ebp - 0x14]
call dword [0x1023c110]
inc dword [ebp - 0x1c]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0x104
push dword [ebp - 0x10]
call dword [0x1023c158]
push ebx
mov edi, eax
lea eax, [ebp - 0x554]
push ebx
push eax
call sub.msvcrt.dll_memset
push ebx
lea eax, [ebp - 0x954]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
cmp edi, 0x103
jne 0x1000b489
push dword [ebp - 0x14]
call dword [0x1023c020]
push eax
push dword [ebp - 0x14]
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x10022cc0
call fcn.1000e4bf
sub esp, 0x50
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
mov byte [ebp - 4], 3
call fcn.100010db
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], bl
call fcn.10012774
add esp, 0x68
lea ecx, [ebp - 0x40]
call fcn.1000e52a
push 4
lea eax, [ebp - 0x14]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp - 0x10], ebx
je 0x1000b6f2
push dword [ebp - 0x10]
call dword [0x1023c0cc]
mov dword [ebp - 0x10], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10001097
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret