Function at 0x495d70
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4ff94c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x48], ebx
test eax, eax
jne 0x495da0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push esi
push edi
push eax
call edx
mov edi, dword [ebp + 0x10]
add esp, 4
mov esi, eax
test edi, edi
jle 0x495dd0
mov eax, dword [esi + 0x1c]
cmp eax, 0xc
jge 0x495dcd
mov cl, byte [ebx]
dec edi
mov byte [eax + esi + 4], cl
inc dword [esi + 0x1c]
inc ebx
test edi, edi
jg 0x495db6
mov dword [ebp - 0x48], ebx
cmp dword [esi + 0x1c], 0xc
jl 0x495fb8
cmp dword [esi + 0x14], 0
jne 0x495e4e
mov al, byte [esi + 4]
cmp al, 0x42
jne 0x495df1
movzx ecx, byte [esi + 0xa]
movzx edx, byte [esi + 0xb]
jmp 0x495df9
movzx ecx, byte [esi + 0xb]
movzx edx, byte [esi + 0xa]
shl ecx, 8
or ecx, edx
mov dword [esi + 0x20], ecx
cmp al, 0x42
jne 0x495e0f
movzx eax, byte [esi + 0xc]
movzx edx, byte [esi + 0xd]
jmp 0x495e17
movzx eax, byte [esi + 0xd]
movzx edx, byte [esi + 0xc]
shl eax, 8
or eax, edx
add ecx, 3
and ecx, 0xfffffffc
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], ecx
add eax, 3
inc ecx
and eax, 0xfffffffc
push 1
push ecx
mov dword [esi + 0x2c], eax
call fcn.00454380
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x2c]
push 1
push eax
call fcn.00454380
add esp, 0x10
mov dword [esi + 0x18], eax
test edi, edi
jle 0x495ea8
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x1c]
add ecx, 0xc
cmp eax, ecx
jge 0x495e73
mov cl, byte [ebx]
mov edx, dword [esi + 0x14]
dec edi
mov byte [eax + edx - 0xc], cl
inc dword [esi + 0x1c]
inc ebx
test edi, edi
jg 0x495e52
jmp 0x495ea5
mov dword [ebp - 0x48], ebx
test edi, edi
jle 0x495ea8
lea ebx, [ebx]
mov eax, dword [esi + 0x24]
mov edx, dword [esi + 0x2c]
mov ecx, dword [esi + 0x1c]
lea edx, [eax + edx + 0xc]
cmp ecx, edx
jge 0x495ea5
mov edx, dword [esi + 0x18]
sub edx, eax
mov al, byte [ebx]
dec edi
mov byte [edx + ecx - 0xc], al
inc dword [esi + 0x1c]
inc ebx
test edi, edi
jg 0x495e80
mov dword [ebp - 0x48], ebx
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x24]
lea eax, [ecx + edx + 0xc]
cmp dword [esi + 0x1c], eax
jl 0x495fb8
cmp dword [esi + 0x30], 0
jne 0x4960d1
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x14]
mov byte [ecx + edx], 0
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x40]
push eax
mov eax, dword [esi + 0x3c]
push ecx
mov ecx, dword [esi + 0x18]
push edx
push eax
mov eax, dword [esi + 0x14]
call fcn.00495920
add esp, 0x10
test eax, eax
je 0x495fcb
push eax
push str.PuTTY_X11_proxy:__s
call fcn.004548f0
add esp, 8
mov dword [ebp - 0x48], eax
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x495f10
sub eax, edx
mov ebx, eax
lea ecx, [ebx + 0xd]
push 1
push ecx
mov dword [ebp - 0x4c], ebx
call fcn.00454380
mov dl, byte [ebp - 0x4c]
mov edi, eax
mov byte [edi], 0
mov byte [edi + 1], dl
mov eax, dword [esi + 6]
add ebx, 3
and ebx, 0xfffffffc
add esp, 8
mov dword [edi + 2], eax
cmp byte [esi + 4], 0x42
mov ecx, ebx
jne 0x495f5b
sar ecx, 0xa
mov edx, ebx
sar edx, 2
mov byte [edi + 6], cl
mov byte [edi + 7], dl
jmp 0x495f69
mov eax, ebx
sar eax, 2
sar ecx, 0xa
mov byte [edi + 6], al
mov byte [edi + 7], cl
push ebx
lea eax, [edi + 8]
push 0
push eax
call sub.MSVCR100.dll_memset
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
push edx
push eax
lea eax, [edi + 8]
push eax
call sub.MSVCR100.dll_memcpy
mov ecx, dword [esi + 0x44]
add ebx, 8
push ebx
push edi
push ecx
call fcn.0045c530
mov edx, dword [esi + 0x44]
push edx
call fcn.0045c470
mov eax, dword [ebp - 0x50]
push eax
call fcn.00495c90
push edi
call fcn.004544e0
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004544e0
add esp, 0x34
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x10]
mov ecx, dword [edx + 0x84]
mov eax, dword [ecx*4 + 0x4e77e0]
lea ebx, [eax + 1]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x54], ebx
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x495fe8
sub eax, dword [ebp - 0x54]
mov ebx, eax
cmp ecx, 1
jne 0x496013
mov eax, dword [edx + 0x8c]
push eax
add edx, 0x40
push edx
lea edx, [ebp - 0x44]
push edx
mov dword [ebp - 0x4c], eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov cl, byte [esi + 4]
lea eax, [esi + 4]
mov edx, ebx
sar edx, 8
cmp cl, 0x42
jne 0x49602b
mov byte [esi + 0xa], dl
mov byte [esi + 0xb], bl
jmp 0x496031
mov byte [esi + 0xa], bl
mov byte [esi + 0xb], dl
cmp cl, 0x42
mov ecx, dword [ebp - 0x4c]
jne 0x496043
mov edx, ecx
sar edx, 8
mov byte [esi + 0xc], dl
jmp 0x496049
mov byte [esi + 0xc], cl
sar ecx, 8
mov byte [esi + 0xd], cl
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx]
push 0xc
push eax
mov eax, dword [edx + 8]
push ecx
call eax
add esp, 0xc
test ebx, ebx
je 0x496097
mov edx, dword [esi + 0x10]
mov edx, dword [edx + 0x84]
mov eax, dword [ebp - 0x50]
mov edx, dword [edx*4 + 0x4e77e0]
mov ecx, dword [eax]
push ebx
push edx
push eax
mov eax, dword [ecx + 8]
call eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
neg ebx
and ebx, 3
push ebx
push 0x4e7800
push eax
call edx
add esp, 0x18
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x4960c7
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x44]
push edx
push eax
mov eax, dword [ecx + 8]
call eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
neg ebx
and ebx, 3
push ebx
push 0x4e7800
push eax
call edx
add esp, 0x18
mov ebx, dword [ebp - 0x48]
mov dword [esi + 0x30], 1
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push edi
push ebx
push eax
call edx
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b7f56
mov esp, ebp
pop ebp
ret