Function at 0x40e36a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdf4
mov eax, dword [0x43c078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x10f]
push ebx
push eax
mov dword [ebp - 0xd44], ebx
mov byte [ebp - 0x110], bl
call fcn.004236e0
add esp, 0xc
mov esi, 0x400
push esi
lea eax, [ebp - 0x510]
push ebx
push eax
mov dword [ebp - 0xd40], 0x104
call fcn.004236e0
add esp, 0xc
push esi
lea eax, [ebp - 0x910]
push ebx
push eax
call fcn.004236e0
add esp, 0xc
push esi
lea eax, [ebp - 0xd10]
push ebx
push eax
call fcn.004236e0
add esp, 0xc
lea eax, [ebp - 0xd30]
push eax
push 1
push ebx
push str.SoftwareMartin_PrikrylWinSCP_2Configuration
mov dword [ebp - 0xd50], esi
mov dword [ebp - 0xd54], esi
mov dword [ebp - 0xd48], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push SysReAllocString
call esi
test eax, eax
jne 0x40e89c
mov edi, dword [sym.imp.ADVAPI32.dll_RegGetValueA]
lea eax, [ebp - 0xd6c]
push eax
lea eax, [ebp - 0xd58]
push eax
push ebx
push 0x10
push str.UseMasterPassword
push str.Security
push dword [ebp - 0xd30]
call edi
test eax, eax
je 0x40e46b
cmp dword [ebp - 0xd30], ebx
je 0x40e89c
push dword [ebp - 0xd30]
call dword [0x6e8f50]
mov dword [ebp - 0xd30], ebx
jmp 0x40e89c
cmp dword [ebp - 0xd58], ebx
jne 0x40e448
cmp dword [ebp - 0xd30], ebx
je 0x40e48d
push dword [ebp - 0xd30]
call dword [0x6e8f50]
mov dword [ebp - 0xd30], ebx
lea eax, [ebp - 0xd30]
push eax
push 9
push ebx
push str.SoftwareMartin_PrikrylWinSCP_2Sessions
push SysReAllocString
call esi
test eax, eax
jne 0x40e89c
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xd40]
push eax
lea eax, [ebp - 0x110]
push eax
push ebx
push dword [ebp - 0xd30]
call dword [0x6e8fdc]
test eax, eax
jne 0x40e448
push 0x435927
lea esi, [ebp - 0xd3c]
call fcn.0041073a
push str.Soft:_WinSCP_n
lea esi, [ebp - 0xd90]
lea eax, [ebp - 0xd3c]
call fcn.0041085c
lea esi, [ebp - 0xd3c]
call fcn.004107e0
mov eax, dword [ebp - 0xd90]
call fcn.00402910
push 0x436674
lea esi, [ebp - 0xd84]
lea eax, [ebp - 0xd3c]
call fcn.0041085c
lea esi, [ebp - 0xd3c]
call fcn.004107e0
mov eax, dword [ebp - 0xd84]
call fcn.00402910
lea eax, [ebp - 0xd50]
push eax
lea eax, [ebp - 0x510]
push eax
push ebx
push 2
push str.HostName
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0xd30]
call edi
lea eax, [ebp - 0x510]
push eax
lea esi, [ebp - 0xd78]
lea eax, [ebp - 0xd3c]
call fcn.0041085c
lea esi, [ebp - 0xd3c]
call fcn.004107e0
mov eax, dword [ebp - 0xd78]
call fcn.00402910
lea eax, [ebp - 0xd5c]
push eax
lea eax, [ebp - 0xd4c]
push eax
push ebx
push 0xffff
push str.PortNumber
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0xd30]
mov dword [ebp - 0xd5c], 4
call edi
test eax, eax
jne 0x40e611
push dword [ebp - 0xd4c]
lea ecx, [ebp - 0xdc0]
call fcn.00412808
mov edi, eax
pop ecx
lea esi, [ebp - 0xda8]
lea eax, [ebp - 0xd3c]
call fcn.0041081a
lea esi, [ebp - 0xd3c]
call fcn.004107e0
mov eax, dword [ebp - 0xda8]
call fcn.00402910
mov eax, dword [ebp - 0xdc0]
call fcn.00402910
mov edi, dword [sym.imp.ADVAPI32.dll_RegGetValueA]
jmp 0x40e63d
push 0x436694
lea esi, [ebp - 0xdd8]
lea eax, [ebp - 0xd3c]
call fcn.0041085c
lea esi, [ebp - 0xd3c]
call fcn.004107e0
mov eax, dword [ebp - 0xdd8]
call fcn.00402910
push str._nLogin:
lea esi, [ebp - 0xdf0]
lea eax, [ebp - 0xd3c]
call fcn.0041085c
lea esi, [ebp - 0xd3c]
call fcn.004107e0
mov eax, dword [ebp - 0xdf0]
call fcn.00402910
lea eax, [ebp - 0xd54]
push eax
lea eax, [ebp - 0x910]
push eax
push ebx
push 2
push str.UserName
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0xd30]
call edi
lea eax, [ebp - 0x910]
push eax
lea esi, [ebp - 0xde4]
lea eax, [ebp - 0xd3c]
call fcn.0041085c
lea esi, [ebp - 0xd3c]
call fcn.004107e0
mov eax, dword [ebp - 0xde4]
call fcn.00402910
push 0x4366b0
lea esi, [ebp - 0xd9c]
lea eax, [ebp - 0xd3c]
call fcn.0041085c
lea esi, [ebp - 0xd3c]
call fcn.004107e0
mov eax, dword [ebp - 0xd9c]
call fcn.00402910
lea eax, [ebp - 0xd48]
push eax
lea eax, [ebp - 0xd10]
push eax
push ebx
push 2
push str.Password
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0xd30]
call edi
push 0x4366c0
lea esi, [ebp - 0xdcc]
lea eax, [ebp - 0xd3c]
call fcn.0041085c
lea esi, [ebp - 0xd3c]
call fcn.004107e0
mov eax, dword [ebp - 0xdcc]
call fcn.00402910
push 0x43592a
lea eax, [ebp - 0xd10]
push eax
call dword [0x6e8fc0]
test eax, eax
je 0x40e7b5
lea eax, [ebp - 0x910]
push eax
lea eax, [ebp - 0x510]
push eax
lea ecx, [ebp - 0xd10]
lea edx, [ebp - 0xd2c]
call fcn.0040de84
cmp dword [eax + 0x14], 0x10
pop ecx
pop ecx
jb 0x40e778
mov eax, dword [eax]
push eax
lea esi, [ebp - 0xdb4]
lea eax, [ebp - 0xd3c]
call fcn.0041085c
lea esi, [ebp - 0xd3c]
call fcn.004107e0
mov eax, dword [ebp - 0xdb4]
call fcn.00402910
push 1
xor ebx, ebx
lea esi, [ebp - 0xd2c]
call fcn.0040f504
mov edi, dword [sym.imp.ADVAPI32.dll_RegGetValueA]
push 0x4366cc
lea esi, [ebp - 0xd68]
lea eax, [ebp - 0xd3c]
call fcn.0041085c
lea esi, [ebp - 0xd3c]
call fcn.004107e0
mov eax, dword [ebp - 0xd68]
call fcn.00402910
inc dword [ebp - 0xd44]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xd40]
push eax
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0xd44]
mov dword [ebp - 0xd40], 0x104
push dword [ebp - 0xd30]
call dword [0x6e8fdc]
cmp eax, 0x103
jne 0x40e4e2
sub esp, 0x68
lea ebx, [ebp + 8]
mov edi, esp
call fcn.00401ced
push dword [ebp - 0xd3c]
call dword [0x6e8ea4]
push dword [ebp - 0xd3c]
mov ebx, eax
sub esp, 0xc
mov esi, esp
push 0x4366d0
call fcn.0041073a
lea eax, [ebp - 0xd68]
push eax
call fcn.004170a4
mov eax, dword [ebp - 0xd68]
add esp, 0x7c
call fcn.00402910
xor eax, eax
cmp dword [ebp - 0xd30], 0
lea edi, [ebp - 0xd3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
je 0x40e891
push dword [ebp - 0xd30]
call dword [0x6e8f50]
and dword [ebp - 0xd30], 0
mov eax, dword [ebp - 0xd3c]
call fcn.00402910
lea esi, [ebp + 8]
call fcn.00401cce
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041cae4
leave
ret