Function at 0x495a60
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x64b9b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x1c]
push 0
mov dword [ebp - 0x42c], eax
call fcn.0059baaf
push 0x38
push 1
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x418], edx
mov byte [ebp - 0x40c], 0
call dword [0x643010]
mov ebx, eax
add esp, 0xc
mov dword [ebp - 0x410], ebx
test ebx, ebx
jne 0x495adf
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057b967
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x10], 0
push edi
je 0x496056
push 0x1388
call dword [section..data]
mov edi, eax
add esp, 4
mov dword [ebp - 0x414], edi
test edi, edi
jne 0x495b10
push ebx
call dword [0x643004]
jmp 0x496040
push 0x3b
push esi
call fcn.005947b0
mov cl, byte [esi]
add esp, 8
mov dword [ebp - 0x410], eax
test cl, cl
je 0x495b40
cmp cl, 0x20
je 0x495b31
cmp cl, 9
jne 0x495b40
mov cl, byte [esi + 1]
inc esi
test cl, cl
jne 0x495b27
nop dword [eax]
push edi
lea eax, [ebp - 0x404]
mov byte [edi], 0
push eax
push str._1023___r_n___4999___r_n_
push esi
mov byte [ebp - 0x404], 0
call fcn.00475e80
add esp, 0x10
cmp eax, 1
jl 0x495e9b
mov edx, edi
lea ecx, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x495b70
sub edx, ecx
lea ecx, [ebp - 0x404]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x495b82
sub ecx, edi
add esi, ecx
cmp byte [esi], 0x3d
sete ah
mov byte [ebp - 0x405], ah
test ecx, ecx
je 0x495bd9
mov al, byte [esi - 1]
dec esi
cmp al, 0x20
je 0x495ba9
cmp al, 9
jne 0x495bd9
test al, al
je 0x495bc5
nop dword [eax]
cmp al, 0x20
je 0x495bb8
cmp al, 9
jne 0x495bc5
test ecx, ecx
je 0x495bc5
mov al, byte [esi - 1]
dec esi
dec ecx
test al, al
jne 0x495bb0
cmp ecx, 0x400
jae 0x4964d1
mov byte [ebp + ecx - 0x404], 0
mov ecx, dword [ebp - 0x414]
test edx, edx
je 0x495bf9
mov al, byte [ecx + edx - 1]
cmp al, 0x20
je 0x495bef
cmp al, 9
jne 0x495bf9
mov byte [ecx + edx - 1], 0
sub edx, 1
jne 0x495be3
mov al, byte [ecx]
mov edi, ecx
test al, al
je 0x495c11
cmp al, 0x20
je 0x495c09
cmp al, 9
jne 0x495c11
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x495c01
cmp dword [ebx + 4], 0
jne 0x495cb6
test ah, ah
je 0x495cb6
lea eax, [ebp - 0x404]
push eax
call dword [0x64300c]
push edi
mov dword [ebx + 4], eax
call dword [0x64300c]
add esp, 8
mov dword [ebx + 8], eax
cmp dword [ebx + 4], 0
je 0x495c4e
test eax, eax
jne 0x495d09
mov byte [ebp - 0x40c], 1
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x495f28
cmp byte [eax], 0x22
jne 0x495c66
inc eax
push 0xa
push 0
push eax
call fcn.005a72db
mov edi, dword [ebp - 0x428]
or esi, 0xffffffff
add esp, 0xc
mov dword [ebx + 0x18], eax
mov ecx, eax
mov dword [ebx + 0x1c], edx
sub esi, edi
mov eax, SysReAllocString
sbb eax, dword [ebp - 0x418]
cmp eax, edx
jg 0x495f18
jl 0x495ca3
cmp esi, ecx
jae 0x495f18
mov dword [ebx + 0x18], 0xffffffff
mov dword [ebx + 0x1c], SysReAllocString
jmp 0x495f6a
test edx, edx
jne 0x495d09
lea eax, [ebp - 0x404]
push eax
push str.secure
call fcn.004abe00
add esp, 8
test eax, eax
je 0x495cdb
mov byte [ebx + 0x30], 1
jmp 0x495e9b
lea eax, [ebp - 0x404]
push eax
push str.httponly
call fcn.004abe00
add esp, 8
test eax, eax
je 0x495cfc
mov byte [ebx + 0x32], 1
jmp 0x495e9b
cmp byte [ebp - 0x405], 0
je 0x495e9b
lea eax, [ebp - 0x404]
push eax
push str.path
call fcn.004abe00
add esp, 8
test eax, eax
je 0x495d4b
lea esi, [ebx + 0xc]
push edi
push esi
call fcn.004971c0
mov eax, dword [esi]
add esp, 8
test eax, eax
je 0x495c4e
push eax
call fcn.00497130
add esp, 4
mov dword [ebx + 0x10], eax
test eax, eax
jmp 0x495e95
lea eax, [ebp - 0x404]
push eax
push str.domain
call fcn.004abe00
add esp, 8
test eax, eax
je 0x495e33
cmp byte [edi], 0x2e
jne 0x495d6d
inc edi
mov esi, dword [ebp - 0x41c]
mov eax, edi
test esi, esi
cmovne eax, esi
push eax
call fcn.00496f90
push 0x2e
push edi
mov byte [ebp - 0x405], al
call fcn.005947b0
add esp, 0xc
test eax, eax
jne 0x495da2
mov esi, 0x62acf0
mov dword [ebp - 0x41c], esi
jmp 0x495da6
test esi, esi
je 0x495ddc
cmp byte [ebp - 0x405], 0
je 0x495e08
mov ecx, esi
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x495dd3
test dl, dl
je 0x495dcf
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x495dd3
add eax, 2
add ecx, 2
test dl, dl
jne 0x495db3
xor eax, eax
jmp 0x495dd8
sbb eax, eax
or eax, 1
test eax, eax
jne 0x495e16
lea esi, [ebx + 0x14]
push edi
push esi
call fcn.004971c0
add esp, 8
cmp dword [esi], 0
je 0x495c4e
cmp byte [ebp - 0x405], 0
jne 0x495e9b
mov byte [ebx + 0x24], 1
jmp 0x495e9b
push esi
push edi
call fcn.004971e0
add esp, 8
test al, al
jne 0x495ddc
push edi
push str.skipped_cookie_with_bad_tailmatch_domain:__s_n
push dword [ebp - 0x424]
mov byte [ebp - 0x40c], 1
call fcn.004a1c10
add esp, 0xc
jmp 0x495e9b
lea eax, [ebp - 0x404]
push eax
push str.version
call fcn.004abe00
add esp, 8
test eax, eax
je 0x495e50
lea esi, [ebx + 0x28]
jmp 0x495e88
lea eax, [ebp - 0x404]
push eax
push str.max_age
call fcn.004abe00
add esp, 8
test eax, eax
je 0x495e6d
lea esi, [ebx + 0x2c]
jmp 0x495e88
lea eax, [ebp - 0x404]
push eax
push str.expires
call fcn.004abe00
add esp, 8
test eax, eax
je 0x495e9b
lea esi, [ebx + 0x20]
push edi
push esi
call fcn.004971c0
add esp, 8
cmp dword [esi], 0
je 0x495c4e
mov eax, dword [ebp - 0x410]
test eax, eax
je 0x495c55
cmp byte [eax], 0
je 0x495c55
lea esi, [eax + 1]
mov al, byte [esi]
test al, al
je 0x495ed0
nop dword [eax + eax]
cmp al, 0x20
je 0x495ec8
cmp al, 9
jne 0x495ed0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x495ec0
push 0x3b
push esi
call fcn.005947b0
mov edi, eax
add esp, 8
mov dword [ebp - 0x410], edi
test edi, edi
mov edi, dword [ebp - 0x414]
jne 0x495b40
cmp byte [esi], 0
je 0x495c55
push 0
push esi
call fcn.005947b0
add esp, 8
mov dword [ebp - 0x410], eax
test eax, eax
je 0x495c55
jmp 0x495b40
add ecx, edi
mov dword [ebx + 0x18], ecx
adc edx, dword [ebp - 0x418]
mov dword [ebx + 0x1c], edx
jmp 0x495f6a
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x495f6a
push 0
push eax
call fcn.004ac0a0
mov dword [ebx + 0x1c], edx
add esp, 8
mov ecx, dword [ebx + 0x1c]
mov edx, eax
mov dword [ebx + 0x18], eax
or eax, ecx
jne 0x495f52
mov dword [ebx + 0x18], 1
jmp 0x495f63
test ecx, ecx
jg 0x495f6a
jl 0x495f5c
test edx, edx
jae 0x495f6a
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov ecx, dword [ebp - 0x40c]
test cl, cl
jne 0x496018
cmp dword [ebx + 0x14], 0
jne 0x495f99
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x495f99
push eax
call dword [0x64300c]
add esp, 4
mov dword [ebx + 0x14], eax
test eax, eax
je 0x496011
cmp dword [ebx + 0xc], 0
jne 0x496018
mov edi, dword [ebp - 0x42c]
test edi, edi
je 0x496018
push 0x3f
push edi
call fcn.005947b0
add esp, 8
test eax, eax
jne 0x495fc5
push 0x2f
push edi
call fcn.00595080
add esp, 8
jmp 0x495fd3
sub eax, edi
push eax
push 0x2f
push edi
call fcn.004ac7f0
add esp, 0xc
mov esi, eax
test esi, esi
je 0x496018
sub esi, edi
inc esi
lea eax, [esi + 1]
push eax
call dword [section..data]
add esp, 4
mov dword [ebx + 0xc], eax
test eax, eax
je 0x496011
push esi
push edi
push eax
call fcn.00594b00
mov eax, dword [ebx + 0xc]
mov byte [esi + eax], 0
push dword [ebx + 0xc]
call fcn.00497130
add esp, 0x10
mov dword [ebx + 0x10], eax
test eax, eax
jne 0x496018
mov byte [ebp - 0x40c], 1
push dword [ebp - 0x414]
call dword [0x643004]
add esp, 4
cmp byte [ebp - 0x40c], 0
jne 0x49603a
cmp dword [ebx + 4], 0
jne 0x4962e4
push ebx
call fcn.00496e10
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057b967
mov esp, ebp
pop ebp
ret
push 0xa
push str.HttpOnly_
push esi
mov dword [ebp - 0x418], 0
call fcn.005a7de0
add esp, 0xc
test eax, eax
jne 0x49607b
add esi, 0xa
mov byte [ebx + 0x32], 1
cmp byte [esi], 0x23
je 0x495b04
push 0xd
push esi
call fcn.005947b0
add esp, 8
test eax, eax
je 0x496096
mov byte [eax], 0
push 0xa
push esi
call fcn.005947b0
add esp, 8
test eax, eax
je 0x4960a8
mov byte [eax], 0
lea eax, [ebp - 0x418]
push eax
push 0x62ad10
push esi
call fcn.004ac6f0
mov esi, eax
add esp, 0xc
xor edi, edi
test esi, esi
je 0x49603a
nop dword [eax]
cmp byte [ebp - 0x40c], 0
jne 0x4962ab
cmp edi, 6
ja case.default.0x4960e6
jmp dword [edi*4 + 0x4964d8]
cmp byte [esi], 0x2e
jne 0x4960f3
inc esi
push esi
call dword [0x64300c]
add esp, 4
mov dword [ebx + 0x14], eax
test eax, eax
jne case.default.0x4960e6
mov byte [ebp - 0x40c], 1
jmp case.default.0x4960e6
push str.TRUE
push esi
call fcn.004abe00
add esp, 8
test eax, eax
setne al
mov byte [ebx + 0x24], al
jmp case.default.0x4960e6
mov ecx, esi
mov eax, str.TRUE
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x496156
test dl, dl
je 0x496152
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x496156
add eax, 2
add ecx, 2
test dl, dl
jne 0x496136
xor eax, eax
jmp 0x49615b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4961cc
mov ecx, esi
mov eax, str.FALSE
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x496186
test dl, dl
je 0x496182
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x496186
add eax, 2
add ecx, 2
test dl, dl
jne 0x496166
xor eax, eax
jmp 0x49618b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4961cc
push esi
call dword [0x64300c]
add esp, 4
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x4961ac
mov byte [ebp - 0x40c], 1
jmp case.default.0x4960e6
push eax
call fcn.00497130
add esp, 4
mov dword [ebx + 0x10], eax
test eax, eax
jne case.default.0x4960e6
mov byte [ebp - 0x40c], 1
jmp case.default.0x4960e6
push 0x5cacc8
call dword [0x64300c]
mov ecx, dword [ebp - 0x40c]
test eax, eax
mov dword [ebx + 0xc], eax
mov edi, 1
movzx ebx, cl
push 0x5cacc8
cmove ebx, edi
call dword [0x64300c]
mov ecx, dword [ebp - 0x410]
add esp, 8
test eax, eax
mov dword [ecx + 0x10], eax
movzx ecx, bl
mov ebx, dword [ebp - 0x410]
cmove ecx, edi
mov dword [ebp - 0x40c], ecx
mov edi, 3
push str.TRUE
push esi
call fcn.004abe00
add esp, 8
test eax, eax
setne al
mov byte [ebx + 0x30], al
jmp case.default.0x4960e6
push 0xa
push 0
push esi
call fcn.005a72db
add esp, 0xc
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edx
jmp case.default.0x4960e6
push esi
call dword [0x64300c]
add esp, 4
mov dword [ebx + 4], eax
test eax, eax
jne case.default.0x4960e6
mov byte [ebp - 0x40c], 1
jmp case.default.0x4960e6
push esi
call dword [0x64300c]
mov ecx, dword [ebp - 0x40c]
add esp, 4
test eax, eax
mov dword [ebx + 8], eax
movzx ecx, cl
mov eax, 1
cmove ecx, eax
mov byte [ebp - 0x40c], cl
lea eax, [ebp - 0x418]
push eax
push 0x62ad10
push 0
call fcn.004ac6f0
mov esi, eax
add esp, 0xc
inc edi
test esi, esi
jne 0x4960d0
cmp edi, 6
jne 0x4962ce
push 0x6212b4
call dword [0x64300c]
add esp, 4
mov dword [ebx + 8], eax
test eax, eax
je 0x49603a
mov edi, 7
cmp byte [ebp - 0x40c], 0
jne 0x49603a
cmp edi, 7
jne 0x49603a
mov esi, dword [ebp - 0x420]
mov cl, byte [esi + 8]
test cl, cl
jne 0x496302
cmp byte [esi + 0x10], cl
je 0x496302
mov eax, dword [ebx + 0x18]
or eax, dword [ebx + 0x1c]
je 0x49603a
push esi
mov byte [ebx + 0x31], cl
call fcn.004970b0
mov esi, dword [esi]
xor cl, cl
add esp, 4
mov byte [ebp - 0x405], cl
test esi, esi
je 0x496450
push dword [ebx + 4]
push dword [esi + 4]
call fcn.004abe00
add esp, 8
test eax, eax
je 0x496356
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49636d
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x496369
push ecx
push eax
call fcn.004abe00
add esp, 8
test eax, eax
je 0x496356
mov al, byte [esi + 0x24]
cmp al, byte [ebx + 0x24]
je 0x496373
mov cl, byte [ebp - 0x405]
mov edi, esi
mov esi, dword [esi]
test esi, esi
jne 0x496320
jmp 0x496452
test eax, eax
jne 0x496356
cmp dword [ebx + 0x14], 0
jne 0x496356
mov eax, dword [esi + 0x10]
test eax, eax
je 0x49639d
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x496399
push ecx
push eax
call fcn.004abe00
add esp, 8
test eax, eax
jne 0x4963ad
xor cl, cl
mov byte [ebp - 0x405], cl
jmp 0x49635c
test eax, eax
jne 0x4963a3
cmp dword [ebx + 0x10], 0
je 0x4963ad
xor cl, cl
mov byte [ebp - 0x405], cl
jmp 0x49635c
cmp byte [ebx + 0x31], 0
mov byte [ebp - 0x405], 1
jne 0x4963c4
cmp byte [esi + 0x31], 0
jne 0x49603a
mov eax, dword [esi]
mov dword [ebx], eax
push dword [esi + 4]
call dword [0x643004]
push dword [esi + 8]
call dword [0x643004]
push dword [esi + 0x14]
call dword [0x643004]
push dword [esi + 0xc]
call dword [0x643004]
push dword [esi + 0x10]
call dword [0x643004]
push dword [esi + 0x20]
call dword [0x643004]
push dword [esi + 0x28]
call dword [0x643004]
push dword [esi + 0x2c]
call dword [0x643004]
movups xmm0, xmmword [ebx]
push ebx
movups xmmword [esi], xmm0
movups xmm0, xmmword [ebx + 0x10]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [ebx + 0x20]
movups xmmword [esi + 0x20], xmm0
movq xmm0, qword [ebx + 0x30]
movq qword [esi + 0x30], xmm0
call dword [0x643004]
add esp, 0x24
mov ebx, esi
nop dword [eax]
mov edi, esi
mov esi, dword [esi]
test esi, esi
jne 0x496440
mov cl, byte [ebp - 0x405]
jmp 0x496452
xor edi, edi
mov esi, dword [ebp - 0x420]
cmp byte [esi + 8], 0
je 0x496493
push dword [ebx + 0x1c]
test cl, cl
mov edx, str.Added
push dword [ebx + 0x18]
mov eax, str.Replaced
push dword [ebx + 0xc]
cmove eax, edx
push dword [ebx + 0x14]
push dword [ebx + 8]
push dword [ebx + 4]
push eax
push str._s_cookie__s__s__for_domain__s__path__s__expire__I64d_n
push dword [ebp - 0x424]
call fcn.004a1c10
add esp, 0x24
mov al, byte [ebp - 0x405]
test al, al
jne 0x4964be
test edi, edi
je 0x4964b9
mov dword [edi], ebx
mov eax, ebx
inc dword [esi + 0xc]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057b967
mov esp, ebp
pop ebp
ret
inc dword [esi + 0xc]
mov dword [esi], ebx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057b967
mov esp, ebp
pop ebp
ret
call fcn.0057c183
nop
in eax, dx
pushal
dec ecx
add byte [ecx], dl
dec ecx
add byte [edi], ch
popal
dec ecx
add byte [0x35004962], bl
bound ecx, qword [ecx]
dec edx
bound ecx, qword [ecx]
bound ecx, qword fs:[ecx]
int3