Function at 0x495670
Capabilities:
Encode data using base64
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov ebx, dword [esp + 0x44]
mov eax, 0xfffffdf5
cmp byte [ebx + 0x20], 0
jne 0x495e0c
mov edi, dword [esp + 0x48]
cmp byte [ebx + 0x22c], 0
je 0x495807
mov eax, dword [ebx + 0x228]
mov byte [ebx + 0x22c], 0
mov dword [ebx + 0x228], 0xffffffff
mov ecx, dword [ebx + 0x18]
cmp ecx, eax
jbe 0x495764
cmp eax, 0x1e
ja 0x4956cf
or al, 0x20
mov byte [esp + 0x10], al
mov ecx, 1
jmp 0x49574a
add eax, 0xffffffe1
cmp eax, 0x80
jb 0x49573a
mov ecx, 2
mov esi, eax
mov edx, eax
nop word cs:[eax + eax]
shr edx, 7
inc ecx
cmp esi, 0x3fff
mov esi, edx
ja 0x4956f0
lea edx, [ecx - 2]
cmp edx, 0xf
jae 0x4957a6
mov esi, ebx
mov byte [esp + 0x10], 0x3f
lea edx, [esp + 0x11]
nop word cs:[eax + eax]
mov ebx, eax
mov ebp, eax
or al, 0x80
mov byte [edx], al
mov eax, ebp
shr eax, 7
inc edx
cmp ebx, 0x3fff
ja 0x495720
mov ebx, esi
jmp 0x495748
mov byte [esp + 0x10], 0x3f
mov ecx, 2
lea edx, [esp + 0x11]
mov byte [edx], al
lea eax, [esp + 0x10]
push ecx
push eax
push edi
call fcn.0049e910
add esp, 0xc
test eax, eax
jne 0x4957fe
mov ecx, dword [ebx + 0x18]
cmp ecx, 0x1e
ja 0x495777
or cl, 0x20
mov byte [esp + 0x10], cl
mov eax, 1
jmp 0x4957eb
add ecx, 0xffffffe1
cmp ecx, 0x80
jb 0x4957ad
mov eax, 2
mov esi, ecx
mov edx, ecx
nop dword [eax + eax]
shr edx, 7
inc eax
cmp esi, 0x3fff
mov esi, edx
ja 0x495790
lea edx, [eax - 2]
cmp edx, 0xf
jb 0x4957bd
mov eax, 0xfffffdf5
jmp 0x4957fe
mov byte [esp + 0x10], 0x3f
mov eax, 2
lea edx, [esp + 0x11]
jmp 0x4957e9
mov esi, ebx
mov byte [esp + 0x10], 0x3f
lea edx, [esp + 0x11]
nop dword [eax + eax]
mov ebx, ecx
mov ebp, ecx
or cl, 0x80
mov byte [edx], cl
mov ecx, ebp
shr ecx, 7
inc edx
cmp ebx, 0x3fff
ja 0x4957d0
mov ebx, esi
mov byte [edx], cl
lea ecx, [esp + 0x10]
push eax
push ecx
push edi
call fcn.0049e910
add esp, 0xc
test eax, eax
je 0x495807
mov byte [ebx + 0x20], 1
jmp 0x495e0c
cmp dword [esp + 0x50], 0
je 0x495e0a
lea eax, [ebx + 0x24]
mov dword [esp + 0x28], eax
xor eax, eax
jmp 0x495848
mov ebx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
push dword [esp + 8]
push ebp
call fcn.00497910
add esp, 8
test eax, eax
jne 0x4957fe
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, dword [esp + 0x50]
je 0x495e0a
mov dword [esp + 0x2c], eax
lea eax, [eax + eax*4]
mov ecx, dword [esp + 0x4c]
lea edx, [ecx + eax*4]
mov dword [esp], edx
mov ebp, dword [ebx + 0x10]
mov esi, dword [ecx + eax*4]
mov edi, dword [ecx + eax*4 + 8]
mov ecx, esi
mov edx, edi
call fcn.00497f50
cmp eax, 0xffffffff
mov dword [esp + 4], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], esi
je 0x4958b0
xor edi, edi
cmp eax, 0x3c
ja 0x495950
mov ecx, dword [esp + 4]
mov eax, ecx
shl eax, 6
mov edi, dword [eax + ecx*4 + 0x9a9a74]
jmp 0x495950
test edi, edi
je 0x4958c2
cmp edi, 4
jae 0x4958cf
mov edi, 0x811c9dc5
xor eax, eax
jmp 0x49591a
mov edi, 0x811c9dc5
mov ebp, dword [esp]
jmp 0x49596c
mov ecx, edi
and ecx, 0xfffffffc
mov edi, 0x811c9dc5
xor eax, eax
mov ebx, dword [esp + 0x20]
nop
movzx edx, byte [ebx + eax]
xor edx, edi
imul edx, edx, 0x1000193
movzx esi, byte [ebx + eax + 1]
xor esi, edx
imul edx, esi, 0x1000193
movzx esi, byte [ebx + eax + 2]
xor esi, edx
imul edx, esi, 0x1000193
movzx esi, byte [ebx + eax + 3]
xor esi, edx
imul edi, esi, 0x1000193
add eax, 4
cmp ecx, eax
jne 0x4958e0
mov ecx, dword [esp + 0xc]
and ecx, 3
mov ebx, dword [esp + 0x44]
je 0x495950
add eax, dword [esp + 0x20]
xor edx, edx
nop dword [eax]
movzx esi, byte [eax + edx]
xor esi, edi
imul edi, esi, 0x1000193
inc edx
cmp ecx, edx
jne 0x495930
nop word cs:[eax + eax]
mov edx, 2
mov eax, dword [esp + 4]
cmp eax, 0x16
je 0x4959b0
cmp eax, 0x1f
mov ebp, dword [esp]
jne 0x49596c
cmp dword [ebp + 0xc], 0x14
jb case.0x495984.3
mov edx, 2
test byte [ebp + 0x10], 1
jne case.0x495984.3
add eax, 0xfffffffd
cmp eax, 0x33
ja case.0x495984.4
mov edx, 1
jmp dword [eax*4 + 0x9a9600]
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0xc]
add eax, ecx
add eax, 0x20
mov ecx, dword [ebx + 0x18]
lea ecx, [ecx + ecx*2]
shr ecx, 2
xor edx, edx
cmp eax, ecx
seta dl
jmp case.0x495984.3
mov ebp, dword [esp]
mov dword [esp + 8], edx
mov eax, edi
and eax, 0x7f
mov ecx, dword [esp + 0x28]
mov esi, dword [ecx + eax*4]
xor ebx, ebx
test esi, esi
je 0x4959f0
mov edx, dword [esp + 4]
cmp edx, 0xffffffff
je 0x495a00
cmp dword [esp + 8], 2
jne 0x495b85
nop dword [eax]
cmp dword [esi + 8], edx
je 0x495a4c
mov esi, dword [esi + 0x24]
test esi, esi
jne 0x4959e0
jmp 0x495a50
mov edx, dword [esp + 4]
jmp 0x495a50
cmp dword [esp + 8], 2
je 0x495a17
xor ebx, ebx
jmp 0x495b2b
mov esi, dword [esi + 0x24]
test esi, esi
je 0x495a50
cmp dword [esi + 8], 0xffffffff
jne 0x495a10
cmp dword [esi + 0x2c], edi
jne 0x495a10
mov eax, dword [esi]
mov ecx, dword [esp + 0xc]
cmp dword [eax + 0xc], ecx
jne 0x495a10
push dword [esp + 0xc]
push dword [esp + 0x24]
push dword [eax + 8]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x495a10
mov ebx, esi
nop
cmp edx, 0x3c
ja 0x495ae0
cmp dword [esp + 8], 2
je 0x495820
mov eax, edx
shl eax, 6
lea esi, [eax + edx*4]
add esi, 0x9a9a50
mov ebx, edx
jmp 0x495a8d
inc ebx
add esi, 0x44
cmp ebx, 0x3d
je 0x495c5a
cmp dword [esi + 0x20], edx
jne 0x495c5a
mov eax, dword [esi + 4]
cmp eax, dword [ebp + 0xc]
jne 0x495a80
push eax
push dword [ebp + 4]
push dword [esi]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0xc]
add esp, 0xc
test eax, eax
jne 0x495a80
mov esi, dword [esp + 0x48]
lea eax, [ebx + 1]
cmp eax, 0x7e
ja 0x495bf1
or al, 0x80
mov byte [esp + 0x10], al
mov ecx, 1
jmp 0x495dea
test ebx, ebx
je 0x495ca2
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebx + 0x28]
not ecx
lea esi, [eax + ecx]
add esi, 0x3d
mov eax, dword [esp + 8]
test eax, eax
je 0x495c68
mov ebx, dword [esp + 0x44]
jmp 0x495d71
mov ebp, dword [esp]
mov edx, dword [esp + 4]
nop word cs:[eax + eax]
mov esi, dword [esi + 0x24]
test esi, esi
je 0x495a50
cmp dword [esi + 8], 0xffffffff
jne 0x495b20
cmp dword [esi + 0x2c], edi
jne 0x495b20
mov eax, dword [esi]
mov ecx, dword [esp + 0xc]
cmp dword [eax + 0xc], ecx
jne 0x495b20
push ecx
push dword [esp + 0x24]
push dword [eax + 8]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x495b0f
test ebx, ebx
cmove ebx, esi
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0xc]
mov ebp, dword [esp]
cmp ecx, dword [ebp + 0xc]
jne 0x495b12
push ecx
push dword [ebp + 4]
push dword [eax + 8]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
mov ebp, dword [esp + 0xc]
add esp, 0xc
test eax, eax
mov edx, dword [esp + 4]
jne 0x495b20
jmp 0x495bcf
xor ebx, ebx
jmp 0x495b9f
mov edx, dword [esp + 4]
mov esi, dword [esi + 0x24]
test esi, esi
je 0x495a50
cmp dword [esi + 8], edx
jne 0x495b94
test ebx, ebx
cmove ebx, esi
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0xc]
cmp ecx, dword [ebp + 0xc]
jne 0x495b90
push ecx
push dword [ebp + 4]
push dword [eax + 8]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
mov ebp, dword [esp + 0xc]
add esp, 0xc
test eax, eax
mov edx, dword [esp + 4]
jne 0x495b94
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0x1c]
mov ecx, dword [esi + 0x28]
not ecx
lea ebx, [eax + ecx]
add ebx, 0x3d
mov esi, dword [esp + 0x48]
lea eax, [ebx + 1]
cmp eax, 0x7e
jbe 0x495ac8
add ebx, 0xffffff82
cmp ebx, 0x80
jb 0x495dda
mov ecx, 2
mov edx, ebx
mov eax, ebx
nop dword [eax]
shr eax, 7
inc ecx
cmp edx, 0x3fff
mov edx, eax
ja 0x495c10
lea edx, [ecx - 2]
mov eax, 0xfffffdf5
cmp edx, 0xe
ja 0x495df9
mov byte [esp + 0x10], 0xff
lea eax, [esp + 0x11]
nop dword [eax + eax]
mov edi, ebx
mov edx, ebx
or dl, 0x80
mov byte [eax], dl
shr ebx, 7
inc eax
cmp edi, 0x3fff
ja 0x495c40
jmp 0x495de8
mov esi, edx
mov eax, dword [esp + 8]
test eax, eax
jne 0x495b06
cmp esi, 0xffffffff
mov ebx, dword [esp + 0x44]
je 0x495cbb
mov eax, dword [ebx + 0xc]
lea ecx, [eax + 0x3d]
cmp ecx, esi
mov ebp, dword [esp + 0x24]
jbe 0x495e29
cmp esi, 0x3d
jb 0x495cf2
lea ecx, [esi - 0x3d]
cmp eax, ecx
jbe 0x495e3e
mov eax, dword [ebx]
add ecx, dword [ebx + 8]
and ecx, dword [ebx + 4]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
jmp 0x495cff
mov eax, dword [esp + 8]
cmp eax, 2
je 0x495ce3
cmp eax, 1
mov ebx, dword [esp + 0x44]
jne 0x495cbb
xor eax, eax
jmp 0x495d8a
mov ebp, dword [esp + 0x24]
push ebp
push dword [esp + 0x10]
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
push eax
call fcn.0049a4f0
add esp, 0x10
mov esi, 0xffffffff
test eax, eax
je 0x495d0c
jmp 0x4957fe
mov al, 0x10
mov esi, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
jmp 0x495d8e
mov eax, esi
shl eax, 6
lea eax, [eax + esi*4]
add eax, 0x9a9a34
mov dword [esp + 0x10], eax
push eax
call fcn.0049a580
add esp, 4
push ebp
mov eax, dword [esp + 4]
push dword [eax + 0xc]
push dword [eax + 4]
lea eax, [esp + 0x20]
push eax
call fcn.0049a4f0
add esp, 0x10
test eax, eax
jne 0x495e14
mov eax, dword [esp + 4]
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], 0
mov ecx, ebx
lea edx, [esp + 0x10]
push edi
push dword [esp + 0x2c]
call fcn.00498850
add esp, 8
mov edi, eax
push dword [esp + 0x14]
call fcn.0049a5a0
add esp, 4
push dword [esp + 0x10]
call fcn.0049a5a0
add esp, 4
test edi, edi
mov ebp, dword [esp]
jne 0x4957a6
mov edx, esi
cmp esi, 0xffffffff
jne 0x495824
mov ecx, dword [esp + 8]
shl ecx, 3
mov eax, 0x100040
shr eax, cl
mov esi, dword [esp + 0x48]
movzx eax, al
push eax
push esi
call fcn.0049ea50
add esp, 8
test eax, eax
jne 0x4957fe
mov edi, dword [esp]
mov edx, dword [edi]
mov ecx, esi
push dword [edi + 8]
call fcn.00498bc0
add esp, 4
test eax, eax
jne 0x4957fe
mov edx, dword [edi + 4]
mov ecx, esi
push dword [edi + 0xc]
call fcn.00498bc0
add esp, 4
test eax, eax
je 0x495839
jmp 0x4957fe
mov byte [esp + 0x10], 0xff
mov ecx, 2
lea eax, [esp + 0x11]
mov byte [eax], bl
push ecx
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0049e910
add esp, 0xc
mov ebx, dword [esp + 0x44]
test eax, eax
je 0x495839
jmp 0x4957fe
xor eax, eax
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [esp + 0x10]
mov esi, eax
call fcn.0049a5a0
mov eax, esi
add esp, 4
jmp 0x4957fe
push 0x518
push str.nghttp2_hd.c
push str.INDEX_RANGE_VALID_context__idx_
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__assert]
push 0x263
push str.nghttp2_hd.c
push 0x9aaa68
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__assert]
nop word cs:[eax + eax]
push ebx
push edi
push esi
sub esp, 0x20
mov esi, dword [esp + 0x30]
mov ebx, esp
push dword [esi + 0x10]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push ebx
call fcn.0049e730
add esp, 0x10
test eax, eax
je 0x495e8b
add esp, 0x20
pop esi
pop edi
pop ebx
ret
push dword [esp + 0x40]
push dword [esp + 0x40]
push ebx
push esi
call fcn.00495670
add esp, 0x10
mov edi, eax
push ebx
call fcn.0049e8f0
add esp, 4
mov esi, eax
push ebx
call fcn.0049e8a0
add esp, 4
cmp edi, 0xfffffe0a
je 0x495ec5
mov eax, edi
test edi, edi
jne 0x495e84
mov eax, esi
jmp 0x495e84
mov eax, 0xfffffdf3
jmp 0x495e84