Function at 0x403db0
Capabilities:
Create thread
Hide graphical window
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xab8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xab4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
mov dword [esp + 0x38], eax
xor esi, esi
xor eax, eax
mov dword [esp + 0x28], 0
xor edi, edi
mov dword [esp + 0x1c], eax
mov byte [esp + 0x1a], al
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x68], edi
mov dword [esp + 0x30], eax
call fcn.00407ec0
mov eax, dword [esp + 0x2c]
mov dword [0x4690f4], eax
call fcn.00422010
mov byte [esp + 0x1b], al
test al, al
je 0x403e53
call fcn.0042faf0
test al, al
jne 0x403e53
push 0x10
push str.Pageant_Fatal_Error
push str.Unable_to_access_security_APIs._Pageant_will_nnot_run__in_case_it_causes_a_security_breach.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0xab4]
xor ecx, esp
call fcn.004339c8
mov esp, ebp
pop ebp
ret 0x10
call fcn.00404de0
push 0x7f0
lea eax, [esp + 0x2bc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x2b8]
push 0x5c
push eax
mov dword [esp + 0x18], eax
call fcn.00434750
add esp, 8
test eax, eax
je 0x403e97
lea ecx, [esp + 0x2b8]
cmp eax, ecx
jb 0x403e97
inc eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x2b8]
push 0x3a
push eax
call fcn.00434750
mov ecx, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x403eb8
cmp eax, ecx
jb 0x403eb8
lea ecx, [eax + 1]
movq xmm0, qword [str.putty.exe]
movq qword [ecx], xmm0
mov ax, word [0x45883c]
mov word [ecx + 8], ax
lea eax, [esp + 0x2b8]
push 0x458840
push eax
call fcn.004374d1
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x403f0a
lea ecx, [esp + 0x2b8]
call fcn.00431bc0
push dword [esp + 0x14]
mov dword [0x468728], eax
call fcn.0043760d
add esp, 4
jmp 0x403f10
mov dword [0x468728], esi
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x18]
call fcn.00431830
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x78]
mov ecx, dword [esp + 0x18]
push eax
mov byte [esp + 0x25], 0
call fcn.00430c10
add esp, 0xc
lea ecx, [esp + 0x40]
movups xmm0, xmmword [eax]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x50], eax
movups xmmword [esp + 0x40], xmm0
call fcn.00430e40
test al, al
jne 0x40411c
lea edx, [esp + 0x10]
lea ecx, [esp + 0x40]
call fcn.00430db0
push 0
test al, al
je 0x403faa
push 1
push edi
push 8
lea edx, [esp + 0x40]
mov ecx, esi
call fcn.00431550
mov ecx, dword [esp + 0x20]
add esp, 0x10
mov dword [esp + 0x24], eax
lea esi, [eax + edi*8]
inc edi
mov dword [esp + 0x68], edi
call fcn.00430bc0
mov dword [esi], eax
mov al, byte [esp + 0x19]
mov byte [esi + 4], al
jmp 0x404107
push str._pgpfp
lea eax, [esp + 0x48]
push 0
push eax
call fcn.00430c40
add esp, 0x10
test al, al
jne 0x404178
push 0
push str._restrictacl
push 0x45885c
push str._restrict_acl
lea eax, [esp + 0x50]
push 0
push eax
call fcn.00430c40
add esp, 0x18
test al, al
je 0x403ff4
call fcn.004301e0
jmp 0x40410b
push 0
push 0x45887c
push str._restrict_putty_acl
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.00430c40
add esp, 0x14
test al, al
je 0x40401f
mov byte [0x46872c], 1
jmp 0x40410b
push 0
push str._encrypted
push str._nodecrypt
push 0x4588bc
push str._no_decrypt
lea eax, [esp + 0x54]
push 0
push eax
call fcn.00430c40
add esp, 0x1c
test al, al
je 0x404052
mov byte [esp + 0x19], 1
jmp 0x40410b
push 0
push str._keylist
lea eax, [esp + 0x48]
push 0
push eax
call fcn.00430c40
add esp, 0x10
test al, al
je 0x404076
mov byte [esp + 0x1a], 1
jmp 0x40410b
push 0
push 0x4588e0
push str._openssh_config
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00430c40
add esp, 0x14
test al, al
je 0x4040a2
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], eax
jmp 0x40410b
push 0
push str._unix
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00430c40
add esp, 0x10
test al, al
je 0x4040c9
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
jmp 0x40410b
push 0
push 0x458908
lea eax, [esp + 0x48]
push 0
push eax
call fcn.00430c40
add esp, 0x10
test al, al
jne 0x404156
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + esi*4]
lea eax, [eax + esi*4]
mov dword [esp + 0x14], eax
call fcn.00410a10
test eax, eax
je 0x404b3d
inc esi
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x40]
call fcn.00430e40
test al, al
je 0x403f61
xor ecx, ecx
mov dword [esp + 0x34], ecx
call fcn.004311d0
mov esi, eax
lea edx, [esp + 0x20]
mov ecx, esi
call fcn.004307d0
mov ecx, esi
mov dword [esp + 0x14], eax
call fcn.00431540
cmp dword [esp + 0x14], 0
jne 0x404182
push 0x10
push str.Pageant_Error
push dword [esp + 0x28]
jmp 0x403e30
mov ecx, dword [esp + 0x40]
cmp ecx, dword [esp + 0x44]
jge 0x40416d
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + ecx*4]
mov dword [esp + 0x28], ecx
jmp 0x40411e
mov ecx, 0x457b00
mov dword [esp + 0x28], ecx
jmp 0x40411e
call fcn.00430ee0
jmp 0x403e38
call fcn.004056a0
mov byte [0x4686e2], al
test al, al
jne 0x4044b0
cmp dword [ebp + 0xc], 0
jne 0x4041fe
mov eax, dword [esp + 0x2c]
xorps xmm0, xmm0
push 0xc8
push eax
mov dword [esp + 0x78], 0
movlpd qword [esp + 0x80], xmm0
movlpd qword [esp + 0x90], xmm0
mov dword [esp + 0x98], 0
mov dword [esp + 0x7c], 0x4030e0
mov dword [esp + 0x88], eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0x98], str.PageantSysTray
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0
push dword [esp + 0x30]
mov dword [0x4686e8], 0
push 0
push 0
push 0x64
push 0x64
push 0x80000000
push 0x80000000
push 0xef0000
push 0x458328
push str.PageantSysTray
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4686e4], eax
call fcn.00404f60
call fcn.00407d20
cmp byte [esp + 0x1b], 0
mov dword [0x46871c], 0x458d4c
mov byte [0x468720], 1
je 0x40437a
mov edx, 0x46871c
lea ecx, [esp + 0x20]
call fcn.004082f0
mov dword [esp + 0x30], eax
call fcn.00430b80
mov edx, dword [esp + 0x20]
mov ecx, eax
mov dword [esp + 0x10], eax
call fcn.0040bf70
mov esi, eax
push esi
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x18]
call ecx
add esp, 4
test eax, eax
je 0x4042c3
mov eax, dword [esi]
push esi
mov eax, dword [eax + 0x18]
call eax
add esp, 4
push eax
push dword [esp + 0x14]
push str.Unable_to_open_named_pipe_at__s_for_SSH_agent:_n_s
call fcn.00431ba0
add esp, 0xc
push 0x10
push str.Pageant_Error
push eax
jmp 0x403e30
mov ecx, dword [esp + 0x30]
mov edx, esi
call fcn.00408330
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x404371
push 0x45897c
push esi
call fcn.004374d1
add esp, 8
mov dword [esp + 0x38], eax
test eax, eax
jne 0x40430b
push esi
push str.Unable_to_write_OpenSSH_config_file_to__s
call fcn.00431ba0
add esp, 8
push 0x10
push str.Pageant_Error
push eax
jmp 0x403e30
push eax
push str.IdentityAgent__
call fcn.00437bfa
mov eax, dword [esp + 0x18]
add esp, 8
mov esi, eax
mov cl, byte [eax]
test cl, cl
je 0x404359
mov edi, dword [esp + 0x38]
mov edx, 0x2f
nop
cmp cl, 0x5c
movzx eax, cl
push edi
cmove eax, edx
movsx eax, al
push eax
call fcn.004373e6
mov cl, byte [esi + 1]
lea esi, [esi + 1]
add esp, 8
mov edx, 0x2f
test cl, cl
jne 0x404330
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x38]
push esi
push 0x4589bc
call fcn.00437bfa
push esi
call fcn.0043760d
add esp, 0xc
mov ecx, dword [esp + 0x10]
call fcn.00431540
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4043e4
call fcn.0040c140
push esi
call fcn.00437845
add esp, 4
lea ecx, [esp + 0x20]
mov edx, 0x46871c
call fcn.004082f0
mov edx, dword [esp + 0x20]
mov ecx, esi
mov dword [esp + 0x30], eax
call fcn.0040d1e0
mov esi, eax
push esi
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x18]
call ecx
add esp, 4
test eax, eax
je 0x4043d9
mov eax, dword [esi]
push esi
mov eax, dword [eax + 0x18]
call eax
add esp, 4
push eax
mov eax, dword [esp + 0x20]
push eax
push str.Unable_to_open_AF_UNIX_socket_at__s_for_SSH_agent:_n_s
jmp 0x4042ae
mov ecx, dword [esp + 0x30]
mov edx, esi
call fcn.00408330
cmp dword [ebp + 0xc], 0
jne 0x404436
mov eax, dword [esp + 0x2c]
xorps xmm0, xmm0
mov dword [esp + 0x80], eax
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0x74], 0
movlpd qword [esp + 0x7c], xmm0
movlpd qword [esp + 0x88], xmm0
movlpd qword [esp + 0x90], xmm0
mov dword [esp + 0x78], 0x403c30
mov dword [esp + 0x98], 0x458328
call dword [sym.imp.USER32.dll_RegisterClassA]
mov ecx, 0x46870c
mov dword [0x46870c], 0x458d40
mov byte [0x468714], 1
call fcn.00406410
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
mov dword [0x469130], eax
call esi
mov dword [0x469134], eax
lea eax, [esp + 0x6c]
push eax
push 0
lea eax, [esp + 0x34]
push eax
push 0x403c80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40449b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x469130]
mov edx, 0x402d10
push 0
call fcn.004050d0
add esp, 4
mov ecx, dword [esp + 0x14]
call fcn.00430880
xor esi, esi
test edi, edi
je 0x4044e1
nop
mov eax, dword [esp + 0x24]
mov dl, byte [eax + esi*8 + 4]
mov ecx, dword [eax + esi*8]
call fcn.00401ab0
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + esi*8]
call fcn.00430bf0
inc esi
cmp esi, edi
jb 0x4044c0
mov ecx, dword [esp + 0x24]
call fcn.00431540
call fcn.00408560
mov edx, dword [esp + 0x28]
test edx, edx
je 0x40455d
mov cl, byte [edx]
inc edx
cmp cl, 0x22
cmovne edx, dword [esp + 0x34]
xor eax, eax
cmp cl, 0x22
mov dword [esp + 0x28], edx
sete al
lea eax, [eax*2 + 0x20]
push eax
push edx
call fcn.00434620
mov esi, eax
add esp, 8
test esi, esi
je 0x404548
mov byte [esi], 0
inc esi
mov al, byte [esi]
test al, al
je 0x404548
nop
movzx eax, al
push eax
call fcn.00437c70
add esp, 4
test eax, eax
je 0x404548
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x404530
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x2c]
mov edx, esi
call fcn.00403d10
mov edx, dword [esp + 0x2c]
add esp, 4
cmp byte [0x4686e2], 0
je 0x404599
test edx, edx
jne 0x404581
test edi, edi
jne 0x404581
push 0x10
push str.Pageant_Error
push str.Pageant_is_already_running
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0xabc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004339c8
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x4686e4]
call fcn.00402970
call dword [sym.imp.USER32.dll_CreatePopupMenu]
cmp dword [0x468728], 0
mov esi, dword [sym.imp.USER32.dll_AppendMenuA]
mov dword [0x4686fc], eax
je 0x404603
call dword [sym.imp.USER32.dll_CreateMenu]
push str.New_Session
push 0x90
push 0
push dword [0x4686fc]
mov dword [0x4686f0], eax
call esi
push str.Saved_Sessions
push dword [0x4686f0]
push 0x10
push dword [0x4686fc]
call esi
push 0
push 0
push 0x800
push dword [0x4686fc]
call esi
push 8
call fcn.004109a0
add esp, 4
test eax, eax
je 0x404674
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
call fcn.0040ff90
xor edi, edi
mov dword [esp + 0x34], eax
test eax, eax
jle 0x40466b
nop dword [eax]
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + edi*4]
call fcn.00430bc0
mov esi, eax
xor edx, edx
lea eax, [esp + 0x6c]
mov ecx, esi
push 0
push eax
call fcn.00408810
add esp, 8
mov ecx, esi
call fcn.00430bf0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + edi*4]
call fcn.00431540
inc edi
cmp edi, dword [esp + 0x34]
jl 0x404630
mov ecx, dword [esp + 0x10]
call fcn.00431540
push 8
call fcn.00410880
add esp, 4
test eax, eax
je 0x40475b
mov edi, dword [sym.imp.ADVAPI32.dll_RegGetValueA]
lea eax, [esp + 0x1c]
push eax
xor esi, esi
mov dword [esp + 0x20], 0
push esi
push esi
push 0x20
push str.SaveCertList
push str.SoftwareSimonTathamPuTTY
push 0x80000001
call edi
test eax, eax
jne 0x404754
mov ecx, dword [esp + 0x1c]
lea edx, [esi + 1]
push eax
call fcn.004314b0
add esp, 4
mov esi, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x34], esi
push eax
push esi
push 0
push 0x20
push str.SaveCertList
push str.SoftwareSimonTathamPuTTY
push 0x80000001
call edi
test eax, eax
jne 0x404754
mov edi, esi
cmp byte [esi], al
je 0x404754
nop dword [eax]
nop word [eax + eax]
mov ecx, edi
mov dword [esp + 0x14], 0
call fcn.00430bc0
mov esi, eax
xor edx, edx
lea eax, [esp + 0x14]
mov ecx, esi
push 0
push eax
call fcn.00408810
add esp, 8
mov ecx, esi
call fcn.00430bf0
mov ecx, dword [esp + 0x14]
call fcn.00431540
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404740
sub ecx, edx
inc edi
add edi, ecx
cmp byte [edi], al
jne 0x404700
mov esi, dword [esp + 0x34]
mov ecx, esi
call fcn.00431540
mov esi, dword [sym.imp.USER32.dll_AppendMenuA]
push str.View_Keys__Certs
push 0x20
push 0
push dword [0x4686fc]
call esi
push 0x458a48
push 0x30
push 0
push dword [0x4686fc]
call esi
push 0x458a58
push 0x40
push 0
push dword [0x4686fc]
call esi
push 0x458a74
push 0x100
push 0
push dword [0x4686fc]
call esi
push 0x458a84
push 0x110
push 0
push dword [0x4686fc]
call esi
push 0x458a94
push 0x120
push 0
push dword [0x4686fc]
call esi
push 0
push 0
push 0x800
push dword [0x4686fc]
call esi
push str.Autoload_Certs__Keys
push 0x130
mov ecx, fcn.004109a0
call fcn.004109d0
push eax
push dword [0x4686fc]
call esi
push str.Remember_Certs__Keys
push 0x140
mov ecx, fcn.00410880
call fcn.004109d0
push eax
push dword [0x4686fc]
call esi
push str.Force_PIN_Caching
push 0x150
mov ecx, fcn.004108b0
call fcn.004109d0
push eax
push dword [0x4686fc]
call esi
push str.Cert__Key_Auth_Prompting
push 0x170
mov ecx, fcn.004108e0
call fcn.004109d0
push eax
push dword [0x4686fc]
call esi
push 0
push 0
push 0x800
push dword [0x4686fc]
call esi
push str.Filter:_Smart_Card_Logon_Certs
push 0x180
mov ecx, fcn.00410910
call fcn.004109d0
push eax
push dword [0x4686fc]
call esi
push str.Filter:_Trusted_Certs
push 0x1a0
mov ecx, fcn.00410850
call fcn.004109d0
push eax
push dword [0x4686fc]
call esi
push str.Filter:_No_Expired_Certs
push 0x190
mov ecx, fcn.00410940
call fcn.004109d0
push eax
push dword [0x4686fc]
call esi
push 0
push 0
push 0x800
push dword [0x4686fc]
call esi
push str.Remove_All_Keys
push 0x50
push 0
push dword [0x4686fc]
call esi
push str.Re_encrypt_All_Keys
push 0x60
push 0
push dword [0x4686fc]
call esi
push 0
push 0
push 0x800
push dword [0x4686fc]
call esi
call fcn.00404e90
test al, al
je 0x40491b
push 0x458b7c
push 0x70
push 0
push dword [0x4686fc]
call esi
push str.About
push 0x80
push 0
push dword [0x4686fc]
call esi
push 0
push 0
push 0x800
push dword [0x4686fc]
call esi
push str.Exit
push 0x10
push 0
push dword [0x4686fc]
call esi
push dword [0x4686f0]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
push 0
push 0x20
push dword [0x4686fc]
mov dword [0x4686f8], eax
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
push 0
push dword [0x4686e4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [esp + 0x1a], 0
je 0x40498c
call fcn.004030a0
mov esi, dword [sym.imp.USER32.dll_IsWindow]
mov edi, dword [sym.imp.USER32.dll_IsDialogMessageA]
call fcn.004051a0
mov edx, eax
mov dword [esp + 0x14], edx
call fcn.00405410
movzx ecx, al
neg ecx
push 0x1cff
sbb ecx, ecx
neg ecx
dec ecx
push ecx
push 0
push edx
push dword [edx + 0x100]
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov edx, eax
mov eax, dword [esp + 0x14]
cmp edx, dword [eax + 0x100]
jae 0x4049e0
mov ecx, eax
call fcn.00405240
mov eax, dword [esp + 0x14]
mov ecx, eax
call fcn.004052a0
push 1
push 0
push 0
push 0
lea eax, [esp + 0xac]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x404ab8
nop word [eax + eax]
cmp dword [esp + 0xa0], 0x12
je 0x404ac2
push dword [0x4686e8]
call esi
test eax, eax
je 0x404a3e
lea eax, [esp + 0x9c]
push eax
push dword [0x4686e8]
call edi
test eax, eax
jne 0x404a9a
push dword [0x468724]
call esi
test eax, eax
je 0x404a5e
lea eax, [esp + 0x9c]
push eax
push dword [0x468724]
call edi
test eax, eax
jne 0x404a9a
push dword [0x468730]
call esi
test eax, eax
je 0x404a7e
lea eax, [esp + 0x9c]
push eax
push dword [0x468730]
call edi
test eax, eax
jne 0x404a9a
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
push 0
lea eax, [esp + 0xac]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x404a10
call fcn.004053c0
jmp 0x404998
mov eax, dword [0x4686e4]
mov dword [esp + 0xbc], eax
lea eax, [esp + 0xb8]
push eax
push 2
mov dword [esp + 0xc0], 0x1fc
mov dword [esp + 0xc8], 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
push dword [0x4686fc]
call dword [sym.imp.USER32.dll_DestroyMenu]
cmp dword [0x468718], 0
je 0x404b0e
call fcn.0042fae0
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x404b31
push 0x45897c
push eax
call fcn.004374d1
add esp, 8
test eax, eax
je 0x404b31
push eax
call fcn.0043760d
add esp, 4
mov ecx, dword [esp + 0xa4]
call fcn.00403d70
mov eax, dword [esp + 0x14]
push dword [eax]
push str.unrecognised_option__s_n
call fcn.00403d80
int3