Function at 0x437c50
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push 0
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareSimonTathamPuTTYJumplist
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x437c86
mov eax, 2
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 1
push 0xc8
mov dword [ebp - 8], 0xc8
call fcn.0040e1f0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 8
mov ebx, eax
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push 0
push str.Recent_sessions
push dword [ebp - 4]
call esi
cmp eax, 0xea
jne 0x437cec
push ebx
call fcn.0040e1d0
push 1
push dword [ebp - 8]
call fcn.0040e1f0
add esp, 0xc
mov ebx, eax
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push 0
push str.Recent_sessions
push dword [ebp - 4]
call esi
cmp eax, 2
je 0x437d2a
test eax, eax
jne 0x437d0d
cmp dword [ebp - 0x10], 7
je 0x437d2f
push str.Recent_sessions
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x437d2a
push ebx
call fcn.0040e1d0
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret
mov word [ebx], 0
push edi
mov edi, dword [ebp - 8]
mov ecx, ebx
lea edx, [edi - 1]
test edx, edx
je 0x437d52
xor eax, eax
nop
cmp byte [ecx], 0
jne 0x437d4c
cmp byte [eax + ebx + 1], 0
je 0x437d52
inc eax
inc ecx
cmp eax, edx
jb 0x437d40
sub ecx, ebx
cmp ecx, edx
jb 0x437d60
mov word [ebx], 0
mov edi, dword [ebp - 8]
mov esi, dword [ebp + 8]
test esi, esi
jne 0x437d84
cmp dword [ebp + 0xc], esi
je 0x437e96
push 1
push edi
call fcn.0040e1f0
add esp, 8
mov dword [ebp - 0xc], eax
mov esi, eax
mov edi, ebx
jmp 0x437dd5
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x437d90
sub ecx, edx
push 1
lea eax, [ecx + 1]
add eax, edi
push eax
call fcn.0040e1f0
mov edx, eax
add esp, 8
mov ecx, edx
mov dword [ebp - 0xc], edx
mov edi, ebx
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x437db4
mov ecx, edx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x437dc6
mov esi, dword [ebp - 0xc]
sub ecx, edx
inc esi
add esi, ecx
cmp byte [ebx], 0
je 0x437e6c
nop
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x437e19
mov ecx, eax
mov eax, edi
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x437e10
test dl, dl
je 0x437e0c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x437e10
add eax, 2
add ecx, 2
test dl, dl
jne 0x437df0
xor eax, eax
jmp 0x437e15
sbb eax, eax
or eax, 1
test eax, eax
je 0x437e53
push edi
call fcn.004376a0
add esp, 4
test eax, eax
je 0x437e53
push eax
call fcn.004373b0
mov edx, esi
add esp, 4
mov eax, edi
sub edx, edi
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x437e35
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x437e47
sub ecx, edx
inc esi
add esi, ecx
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x437e58
sub ecx, edx
inc edi
add edi, ecx
cmp byte [edi], al
jne 0x437de0
mov edi, dword [ebp - 0xc]
mov byte [esi], 0
sub esi, edi
inc esi
push esi
push edi
push 7
push 0
push str.Recent_sessions
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
mov esi, eax
call fcn.0040e1d0
add esp, 4
mov ebx, edi
mov eax, dword [ebp + 0x10]
pop edi
test eax, eax
je 0x437eb5
test esi, esi
jne 0x437eb5
push dword [ebp - 4]
mov dword [eax], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.0040e1d0
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg esi
sbb esi, esi
and esi, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret