Function at 0x403d60
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 [0x467004]
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.00407e40
mov eax, dword [esp + 0x2c]
mov dword [0x4690b4], eax
call fcn.00421b50
mov byte [esp + 0x1b], al
test al, al
je 0x403e03
call fcn.0042f7a0
test al, al
jne 0x403e03
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.00433718
mov esp, ebp
pop ebp
ret 0x10
call fcn.00404da0
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.004344a0
add esp, 8
test eax, eax
je 0x403e47
lea ecx, [esp + 0x2b8]
cmp eax, ecx
jb 0x403e47
inc eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x2b8]
push 0x3a
push eax
call fcn.004344a0
mov ecx, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x403e68
cmp eax, ecx
jb 0x403e68
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.00437223
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x403eba
lea ecx, [esp + 0x2b8]
call fcn.004318d0
push dword [esp + 0x14]
mov dword [0x4686e8], eax
call fcn.0043735f
add esp, 4
jmp 0x403ec0
mov dword [0x4686e8], esi
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x18]
call fcn.00431530
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x78]
mov ecx, dword [esp + 0x18]
push eax
mov byte [esp + 0x25], 0
call fcn.004308f0
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.00430b20
test al, al
jne 0x4040cc
lea edx, [esp + 0x10]
lea ecx, [esp + 0x40]
call fcn.00430a90
push 0
test al, al
je 0x403f5a
push 1
push edi
push 8
lea edx, [esp + 0x40]
mov ecx, esi
call fcn.00431230
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.004308a0
mov dword [esi], eax
mov al, byte [esp + 0x19]
mov byte [esi + 4], al
jmp 0x4040b7
push str._pgpfp
lea eax, [esp + 0x48]
push 0
push eax
call fcn.00430920
add esp, 0x10
test al, al
jne 0x404128
push 0
push str._restrictacl
push 0x45885c
push str._restrict_acl
lea eax, [esp + 0x50]
push 0
push eax
call fcn.00430920
add esp, 0x18
test al, al
je 0x403fa4
call fcn.0042fe90
jmp 0x4040bb
push 0
push 0x45887c
push str._restrict_putty_acl
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.00430920
add esp, 0x14
test al, al
je 0x403fcf
mov byte [0x4686ec], 1
jmp 0x4040bb
push 0
push str._encrypted
push str._nodecrypt
push 0x4588bc
push str._no_decrypt
lea eax, [esp + 0x54]
push 0
push eax
call fcn.00430920
add esp, 0x1c
test al, al
je 0x404002
mov byte [esp + 0x19], 1
jmp 0x4040bb
push 0
push str._keylist
lea eax, [esp + 0x48]
push 0
push eax
call fcn.00430920
add esp, 0x10
test al, al
je 0x404026
mov byte [esp + 0x1a], 1
jmp 0x4040bb
push 0
push 0x4588e0
push str._openssh_config
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00430920
add esp, 0x14
test al, al
je 0x404052
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], eax
jmp 0x4040bb
push 0
push str._unix
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00430920
add esp, 0x10
test al, al
je 0x404079
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
jmp 0x4040bb
push 0
push 0x458908
lea eax, [esp + 0x48]
push 0
push eax
call fcn.00430920
add esp, 0x10
test al, al
jne 0x404106
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.004108f0
test eax, eax
je 0x404afd
inc esi
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x40]
call fcn.00430b20
test al, al
je 0x403f11
xor ecx, ecx
mov dword [esp + 0x34], ecx
call fcn.00430eb0
mov esi, eax
lea edx, [esp + 0x20]
mov ecx, esi
call fcn.004304b0
mov ecx, esi
mov dword [esp + 0x14], eax
call fcn.00431220
cmp dword [esp + 0x14], 0
jne 0x404132
push 0x10
push str.Pageant_Error
push dword [esp + 0x28]
jmp 0x403de0
mov ecx, dword [esp + 0x40]
cmp ecx, dword [esp + 0x44]
jge 0x40411d
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + ecx*4]
mov dword [esp + 0x28], ecx
jmp 0x4040ce
mov ecx, 0x457b00
mov dword [esp + 0x28], ecx
jmp 0x4040ce
call fcn.00430bc0
jmp 0x403de8
call fcn.00405660
mov byte [0x4686a2], al
test al, al
jne 0x404460
cmp dword [ebp + 0xc], 0
jne 0x4041ae
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 [0x4686a8], 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 [0x4686a4], eax
call fcn.00404f20
call fcn.00407ca0
cmp byte [esp + 0x1b], 0
mov dword [0x4686dc], 0x458d4c
mov byte [0x4686e0], 1
je 0x40432a
mov edx, 0x4686dc
lea ecx, [esp + 0x20]
call fcn.004082b0
mov dword [esp + 0x30], eax
call fcn.00430860
mov edx, dword [esp + 0x20]
mov ecx, eax
mov dword [esp + 0x10], eax
call fcn.0040bf30
mov esi, eax
push esi
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x18]
call ecx
add esp, 4
test eax, eax
je 0x404273
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.004318b0
add esp, 0xc
push 0x10
push str.Pageant_Error
push eax
jmp 0x403de0
mov ecx, dword [esp + 0x30]
mov edx, esi
call fcn.004082f0
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x404321
push 0x45897c
push esi
call fcn.00437223
add esp, 8
mov dword [esp + 0x38], eax
test eax, eax
jne 0x4042bb
push esi
push str.Unable_to_write_OpenSSH_config_file_to__s
call fcn.004318b0
add esp, 8
push 0x10
push str.Pageant_Error
push eax
jmp 0x403de0
push eax
push str.IdentityAgent__
call fcn.0043794c
mov eax, dword [esp + 0x18]
add esp, 8
mov esi, eax
mov cl, byte [eax]
test cl, cl
je 0x404309
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.00437138
mov cl, byte [esi + 1]
lea esi, [esi + 1]
add esp, 8
mov edx, 0x2f
test cl, cl
jne 0x4042e0
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x38]
push esi
push 0x4589bc
call fcn.0043794c
push esi
call fcn.0043735f
add esp, 0xc
mov ecx, dword [esp + 0x10]
call fcn.00431220
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x404394
call fcn.0040c100
push esi
call fcn.00437597
add esp, 4
lea ecx, [esp + 0x20]
mov edx, 0x4686dc
call fcn.004082b0
mov edx, dword [esp + 0x20]
mov ecx, esi
mov dword [esp + 0x30], eax
call fcn.0040d1a0
mov esi, eax
push esi
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x18]
call ecx
add esp, 4
test eax, eax
je 0x404389
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 0x40425e
mov ecx, dword [esp + 0x30]
mov edx, esi
call fcn.004082f0
cmp dword [ebp + 0xc], 0
jne 0x4043e6
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], 0x403be0
mov dword [esp + 0x98], 0x458328
call dword [sym.imp.USER32.dll_RegisterClassA]
mov ecx, 0x4686cc
mov dword [0x4686cc], 0x458d40
mov byte [0x4686d4], 1
call fcn.004063c0
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 [0x4690f0], eax
call esi
mov dword [0x4690f4], eax
lea eax, [esp + 0x6c]
push eax
push 0
lea eax, [esp + 0x34]
push eax
push 0x403c30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40444b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x4690f0]
mov edx, 0x402d10
push 0
call fcn.00405090
add esp, 4
mov ecx, dword [esp + 0x14]
call fcn.00430560
xor esi, esi
test edi, edi
je 0x404491
nop
mov eax, dword [esp + 0x24]
mov dl, byte [eax + esi*8 + 4]
mov ecx, dword [eax + esi*8]
call fcn.00401ac0
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + esi*8]
call fcn.004308d0
inc esi
cmp esi, edi
jb 0x404470
mov ecx, dword [esp + 0x24]
call fcn.00431220
call fcn.00408520
mov edx, dword [esp + 0x28]
test edx, edx
je 0x40450d
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.00434370
mov esi, eax
add esp, 8
test esi, esi
je 0x4044f8
mov byte [esi], 0
inc esi
mov al, byte [esi]
test al, al
je 0x4044f8
nop
movzx eax, al
push eax
call fcn.004379c0
add esp, 4
test eax, eax
je 0x4044f8
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4044e0
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x2c]
mov edx, esi
call fcn.00403cc0
mov edx, dword [esp + 0x2c]
add esp, 4
cmp byte [0x4686a2], 0
je 0x404549
test edx, edx
jne 0x404531
test edi, edi
jne 0x404531
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.00433718
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [0x4686a4]
call fcn.00402970
call dword [sym.imp.USER32.dll_CreatePopupMenu]
cmp dword [0x4686e8], 0
mov esi, dword [sym.imp.USER32.dll_AppendMenuA]
mov dword [0x4686bc], eax
je 0x4045b3
call dword [sym.imp.USER32.dll_CreateMenu]
push str.New_Session
push 0x90
push 0
push dword [0x4686bc]
mov dword [0x4686b0], eax
call esi
push str.Saved_Sessions
push dword [0x4686b0]
push 0x10
push dword [0x4686bc]
call esi
push 0
push 0
push 0x800
push dword [0x4686bc]
call esi
or ecx, 0xffffffff
call fcn.004108c0
test eax, eax
je 0x404624
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
call fcn.0040ff70
xor edi, edi
mov dword [esp + 0x34], eax
test eax, eax
jle 0x40461b
nop word [eax + eax]
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + edi*4]
call fcn.004308a0
mov esi, eax
xor edx, edx
lea eax, [esp + 0x6c]
mov ecx, esi
push 0
push eax
call fcn.004087d0
add esp, 8
mov ecx, esi
call fcn.004308d0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + edi*4]
call fcn.00431220
inc edi
cmp edi, dword [esp + 0x34]
jl 0x4045e0
mov ecx, dword [esp + 0x10]
call fcn.00431220
or ecx, 0xffffffff
call fcn.00410800
test eax, eax
je 0x4046fb
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 0x4046f4
mov ecx, dword [esp + 0x1c]
lea edx, [esi + 1]
push eax
call fcn.00431190
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 0x4046f4
mov edi, esi
cmp byte [esi], al
je 0x4046f4
mov ecx, edi
mov dword [esp + 0x14], 0
call fcn.004308a0
mov esi, eax
xor edx, edx
lea eax, [esp + 0x14]
mov ecx, esi
push 0
push eax
call fcn.004087d0
add esp, 8
mov ecx, esi
call fcn.004308d0
mov ecx, dword [esp + 0x14]
call fcn.00431220
mov eax, edi
lea edx, [eax + 1]
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4046e0
sub eax, edx
inc edi
add edi, eax
cmp byte [edi], cl
jne 0x4046a1
mov esi, dword [esp + 0x34]
mov ecx, esi
call fcn.00431220
mov esi, dword [sym.imp.USER32.dll_AppendMenuA]
push str.View_Keys__Certs
push 0x20
push 0
push dword [0x4686bc]
call esi
push 0x458a48
push 0x30
push 0
push dword [0x4686bc]
call esi
push 0x458a58
push 0x40
push 0
push dword [0x4686bc]
call esi
push 0x458a74
push 0x100
push 0
push dword [0x4686bc]
call esi
push 0x458a84
push 0x110
push 0
push dword [0x4686bc]
call esi
push 0x458a94
push 0x120
push 0
push dword [0x4686bc]
call esi
push 0
push 0
push 0x800
push dword [0x4686bc]
call esi
push str.Autoload_Certs__Keys
push 0x130
or ecx, 0xffffffff
call fcn.004108c0
neg eax
sbb eax, eax
and eax, 8
push eax
push dword [0x4686bc]
call esi
push str.Remember_Certs__Keys
push 0x140
or ecx, 0xffffffff
call fcn.00410800
neg eax
sbb eax, eax
and eax, 8
push eax
push dword [0x4686bc]
call esi
push str.Force_PIN_Caching
push 0x150
or ecx, 0xffffffff
call fcn.00410820
neg eax
sbb eax, eax
and eax, 8
push eax
push dword [0x4686bc]
call esi
push str.Cert__Key_Auth_Prompting
push 0x170
or ecx, 0xffffffff
call fcn.00410840
neg eax
sbb eax, eax
and eax, 8
push eax
push dword [0x4686bc]
call esi
push 0
push 0
push 0x800
push dword [0x4686bc]
call esi
push str.Filter:_Smart_Card_Logon_Certs
push 0x180
or ecx, 0xffffffff
call fcn.00410860
neg eax
sbb eax, eax
and eax, 8
push eax
push dword [0x4686bc]
call esi
push str.Filter:_Trusted_Certs
push 0x1a0
or ecx, 0xffffffff
call fcn.004107e0
neg eax
sbb eax, eax
and eax, 8
push eax
push dword [0x4686bc]
call esi
push str.Filter:_No_Expired_Certs
push 0x190
or ecx, 0xffffffff
call fcn.00410880
neg eax
sbb eax, eax
and eax, 8
push eax
push dword [0x4686bc]
call esi
push 0
push 0
push 0x800
push dword [0x4686bc]
call esi
push str.Remove_All_Keys
push 0x50
push 0
push dword [0x4686bc]
call esi
push str.Re_encrypt_All_Keys
push 0x60
push 0
push dword [0x4686bc]
call esi
push 0
push 0
push 0x800
push dword [0x4686bc]
call esi
call fcn.00404e50
test al, al
je 0x4048de
push 0x458b7c
push 0x70
push 0
push dword [0x4686bc]
call esi
push str.About
push 0x80
push 0
push dword [0x4686bc]
call esi
push 0
push 0
push 0x800
push dword [0x4686bc]
call esi
push str.Exit
push 0x10
push 0
push dword [0x4686bc]
call esi
push dword [0x4686b0]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
push 0
push 0x20
push dword [0x4686bc]
mov dword [0x4686b8], eax
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
push 0
push dword [0x4686a4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [esp + 0x1a], 0
je 0x40494f
call fcn.004030a0
mov esi, dword [sym.imp.USER32.dll_IsWindow]
mov edi, dword [sym.imp.USER32.dll_IsDialogMessageA]
nop dword [eax + eax]
call fcn.00405160
mov edx, eax
mov dword [esp + 0x14], edx
call fcn.004053d0
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 0x4049a8
mov ecx, eax
call fcn.00405200
mov eax, dword [esp + 0x14]
mov ecx, eax
call fcn.00405260
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 0x404a78
nop dword [eax]
cmp dword [esp + 0xa0], 0x12
je 0x404a82
push dword [0x4686a8]
call esi
test eax, eax
je 0x4049fe
lea eax, [esp + 0x9c]
push eax
push dword [0x4686a8]
call edi
test eax, eax
jne 0x404a5a
push dword [0x4686e4]
call esi
test eax, eax
je 0x404a1e
lea eax, [esp + 0x9c]
push eax
push dword [0x4686e4]
call edi
test eax, eax
jne 0x404a5a
push dword [0x4686f0]
call esi
test eax, eax
je 0x404a3e
lea eax, [esp + 0x9c]
push eax
push dword [0x4686f0]
call edi
test eax, eax
jne 0x404a5a
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 0x4049d0
call fcn.00405380
jmp 0x404960
mov eax, dword [0x4686a4]
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 [0x4686bc]
call dword [sym.imp.USER32.dll_DestroyMenu]
cmp dword [0x4686d8], 0
je 0x404ace
call fcn.0042f790
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x404af1
push 0x45897c
push eax
call fcn.00437223
add esp, 8
test eax, eax
je 0x404af1
push eax
call fcn.0043735f
add esp, 4
mov ecx, dword [esp + 0xa4]
call fcn.00403d20
mov eax, dword [esp + 0x14]
push dword [eax]
push str.unrecognised_option__s_n
call fcn.00403d30
int3