Function at 0x40c310
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420d10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
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
xor edi, edi
mov byte [ebp - 0x154], bl
call sub.msvcrt.dll_memset
push 0x3ff
lea ecx, [ebp - 0xd53]
push ebx
push ecx
mov dword [ebp - 0x18], 0x104
mov byte [ebp - 0xd54], bl
call sub.msvcrt.dll_memset
push 0x3ff
lea edx, [ebp - 0x553]
push ebx
push edx
mov byte [ebp - 0x554], bl
call sub.msvcrt.dll_memset
push 0x3ff
lea eax, [ebp - 0x953]
push ebx
push eax
mov byte [ebp - 0x954], bl
call sub.msvcrt.dll_memset
mov esi, 0x400
push esi
lea ecx, [ebp - 0xd54]
push ebx
push ecx
call sub.msvcrt.dll_memset
push esi
lea edx, [ebp - 0x554]
push ebx
push edx
call sub.msvcrt.dll_memset
add esp, 0x48
push esi
lea eax, [ebp - 0x954]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push ebx
push str.SoftwareMartin_PrikrylWinSCP_2Configuration
push SysReAllocString
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40c43f
lea ecx, [ebp + 0x34]
mov dword [ebp - 4], 3
call fcn.0040fcc0
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 2
call fcn.0040fcc0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x14]
call fcn.0040fcc0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.0040fcc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegGetValueA]
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x34]
push eax
push ebx
push 0x10
push str.UseMasterPassword
push str.Security
push ecx
call esi
test eax, eax
mov eax, dword [ebp - 0x10]
je 0x40c477
cmp eax, ebx
je 0x40c485
push eax
call dword [0xb3e44c]
xor eax, eax
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x40c485
push eax
call dword [0xb3e44c]
mov dword [ebp - 0x10], ebx
lea edx, [ebp - 0x10]
push edx
push 9
push ebx
push str.SoftwareMartin_PrikrylWinSCP_2Sessions
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40c4c4
lea ecx, [ebp + 0x34]
mov dword [ebp - 4], 6
call fcn.0040fcc0
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 5
call fcn.0040fcc0
mov byte [ebp - 4], 4
jmp 0x40c417
mov edx, dword [ebp - 0x10]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x154]
push ecx
push ebx
push edx
call dword [0xb3e4d8]
cmp eax, ebx
jne 0x40c773
push 0xf423f
push ebx
call dword [0xb3e4e4]
push eax
call dword [0xb3e47c]
mov dword [ebp - 0x14], eax
jmp 0x40c503
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
push str.Soft:_WinSCP_n
push eax
call dword [0xb3e490]
mov ecx, dword [ebp - 0x14]
push 0x426f28
push ecx
call dword [0xb3e490]
lea edx, [ebp - 0x28]
push edx
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xd54]
push eax
push ebx
push 2
push str.HostName
lea ecx, [ebp - 0x154]
push ecx
push edx
call esi
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0xd54]
push eax
push ecx
call dword [0xb3e490]
lea edx, [ebp - 0x2c]
push edx
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0xffff
push str.PortNumber
lea ecx, [ebp - 0x154]
push ecx
push edx
mov dword [ebp - 0x2c], 4
call esi
test eax, eax
jne 0x40c5b0
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x50]
push ecx
call fcn.004119c0
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.0040fee0
mov edx, dword [ebp - 0x14]
push eax
push edx
call dword [0xb3e490]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.0040fcc0
jmp 0x40c5bf
mov eax, dword [ebp - 0x14]
push 0x426f48
push eax
call dword [0xb3e490]
mov ecx, dword [ebp - 0x14]
push 0x426f4c
push ecx
call dword [0xb3e490]
mov edx, dword [ebp - 0x14]
push 0x426f50
push edx
call dword [0xb3e490]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x554]
push ecx
push ebx
push 2
push str.UserName
lea edx, [ebp - 0x154]
push edx
push eax
call esi
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x554]
push ecx
push edx
call dword [0xb3e490]
mov eax, dword [ebp - 0x14]
push 0x426f64
push eax
call dword [0xb3e490]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x954]
push edx
push ebx
push 2
push str.Password
lea eax, [ebp - 0x154]
push eax
push ecx
call esi
mov edx, dword [ebp - 0x14]
push 0x426f74
push edx
call dword [0xb3e490]
push 0x426c3e
lea eax, [ebp - 0x954]
push eax
call dword [0xb3e4bc]
test eax, eax
je 0x40c6a4
lea ecx, [ebp - 0x954]
push ecx
lea edx, [ebp - 0x554]
push edx
lea eax, [ebp - 0xd54]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.0040be10
add esp, 0x10
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.0040fee0
mov edx, dword [ebp - 0x14]
push eax
push edx
call dword [0xb3e490]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.0040fcc0
mov eax, dword [ebp - 0x14]
push 0x426f80
push eax
call dword [0xb3e490]
mov ecx, dword [ebp - 0x14]
push 0x426f84
push ecx
call dword [0xb3e490]
mov ecx, dword [ebp - 0x10]
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x154]
push eax
inc edi
push edi
push ecx
mov dword [ebp - 0x18], 0x104
mov dword [ebp - 0x20], edi
call dword [0xb3e4d8]
push ebx
lea edx, [ebp - 0x554]
push ebx
push edx
mov edi, 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 0x40c500
mov ecx, dword [ebp - 0x14]
push ecx
call dword [0xb3e3a0]
mov edx, dword [ebp - 0x14]
push eax
push edx
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x426f88
call fcn.0040fc40
sub esp, 0x68
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov byte [ebp - 4], 9
call fcn.00401130
lea ecx, [ebp - 0x40]
push ecx
mov byte [ebp - 4], bl
call fcn.00414dd0
add esp, 0x80
lea ecx, [ebp - 0x40]
call fcn.0040fcc0
push 4
lea edx, [ebp - 0x14]
push ebx
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x40c784
push eax
call dword [0xb3e44c]
mov dword [ebp - 0x10], ebx
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004010c0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret