Function at 0x101702b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov edi, dword [ecx + 0x1d40]
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx + 0x1d44]
cmp eax, edi
je 0x10170307
xor ebx, ebx
mov esi, dword [edi + ebx*4]
test esi, esi
je 0x101702f9
mov eax, dword [esi]
mov ecx, dword [eax + 8]
call dword [section..00cfg]
push esi
call ecx
mov dword [edi + ebx*4], 0
mov eax, dword [ebp - 0x10]
mov edi, dword [eax + 0x1d40]
mov eax, dword [eax + 0x1d44]
inc ebx
mov ecx, eax
sub ecx, edi
sar ecx, 2
cmp ebx, ecx
jb 0x101702ce
jmp 0x10170309
mov edi, eax
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x1d44], edi
mov esi, dword [ebx + 0x1b9c]
test esi, esi
je 0x10170334
mov eax, dword [esi]
mov ecx, dword [eax + 8]
call dword [section..00cfg]
push esi
call ecx
mov dword [ebx + 0x1b9c], 0
lea eax, [ebx + 0x1d6c]
mov dword [ebp - 0x30], eax
push eax
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
jne 0x10170a33
mov ebx, dword [ebx + 0x1d50]
mov edi, dword [ebx]
cmp edi, ebx
je 0x10170383
mov esi, dword [edi + 0x20]
test esi, esi
je 0x1017037f
mov eax, dword [esi]
mov ecx, dword [eax + 8]
call dword [section..00cfg]
push esi
call ecx
mov dword [edi + 0x20], 0
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax + 0x1d50]
mov edi, dword [edi]
jmp 0x10170356
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x1d54]
test eax, eax
je 0x1017061e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x1d68]
shr ecx, 3
cmp ecx, eax
jbe 0x101703c3
mov edx, dword [ebx]
cmp edx, ebx
je 0x1017061e
mov eax, dword [edx + 0x18]
cmp dword [edx + 0x1c], 0x10
jb 0x10170461
mov ecx, dword [edx + 8]
jmp 0x10170464
mov eax, dword [ebx + 4]
mov dword [eax], 0
mov edi, dword [ebx]
test edi, edi
je 0x10170418
mov esi, dword [sym.imp.mozglue.dll_free]
mov ebx, dword [edi]
mov ecx, dword [edi + 0x1c]
cmp ecx, 0x10
jb 0x1017040c
mov eax, dword [edi + 8]
add ecx, 0xfffff001
cmp ecx, 0xffffefff
ja 0x10170406
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x10170a2d
mov eax, ecx
push eax
call esi
add esp, 4
push edi
call esi
add esp, 4
mov edi, ebx
test ebx, ebx
jne 0x101703d8
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x1d50]
mov dword [eax], eax
mov eax, dword [ecx + 0x1d50]
mov dword [eax + 4], eax
mov dword [ecx + 0x1d54], 0
mov eax, dword [ecx + 0x1d58]
mov ecx, dword [ecx + 0x1d5c]
cmp eax, ecx
je 0x1017061e
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x1d50]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x10170453
jmp 0x1017061e
lea ecx, [edx + 8]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x1d58]
mov dword [ebp - 0x1c], edx
mov edx, 0x811c9dc5
test eax, eax
je 0x1017048f
xor esi, esi
movzx edi, byte [ecx + esi]
xor edi, edx
imul edx, edi, 0x1000193
inc esi
cmp eax, esi
jne 0x1017047e
mov eax, dword [ebp - 0x10]
and edx, dword [eax + 0x1d64]
mov edi, dword [ebp - 0x14]
mov eax, dword [edi + 4]
mov dword [ebp - 0x28], eax
lea eax, [edx + edx]
mov esi, dword [ebp - 0x1c]
lea ecx, [esi + edx*8]
lea edx, [edx + edx + 1]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x18], ecx
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
mov eax, dword [esi + eax*4 + 4]
mov dword [ebp - 0x24], eax
mov esi, dword [edi]
mov ecx, dword [edi + 0x1c]
cmp ecx, 0x10
jb 0x101704f8
mov eax, dword [edi + 8]
add ecx, 0xfffff001
cmp ecx, 0xffffefff
ja 0x101704ee
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x10170a2d
mov eax, ecx
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x10]
dec dword [eax + 0x1d54]
cmp edi, dword [ebp - 0x24]
je 0x1017052b
cmp esi, ebx
jne 0x10170520
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x14]
je 0x10170611
mov edi, esi
cmp esi, ebx
jne 0x101704c0
jmp 0x10170616
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x14]
jne 0x1017053d
mov eax, dword [ebp - 0x18]
mov dword [eax], ebx
mov eax, ebx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
mov dword [ecx + edx*4], eax
cmp esi, ebx
je 0x10170616
cmp dword [esi + 0x1c], 0x10
jb 0x10170559
mov eax, dword [esi + 8]
jmp 0x1017055c
lea eax, [esi + 8]
mov dword [ebp - 0x14], esi
mov edx, dword [esi + 0x18]
mov ecx, 0x811c9dc5
test edx, edx
je 0x1017057e
xor esi, esi
movzx edi, byte [eax + esi]
xor edi, ecx
imul ecx, edi, 0x1000193
inc esi
cmp edx, esi
jne 0x1017056d
mov eax, dword [ebp - 0x10]
and ecx, dword [eax + 0x1d64]
lea eax, [ecx + ecx]
mov esi, dword [ebp - 0x1c]
lea edx, [esi + ecx*8]
mov dword [ebp - 0x18], edx
lea ecx, [ecx + ecx + 1]
mov dword [ebp - 0x20], ecx
mov eax, dword [esi + eax*4 + 4]
mov dword [ebp - 0x24], eax
mov edi, dword [ebp - 0x14]
mov esi, dword [edi]
mov ecx, dword [edi + 0x1c]
cmp ecx, 0x10
jb 0x101705dc
mov eax, dword [edi + 8]
add ecx, 0xfffff001
cmp ecx, 0xffffefff
ja 0x101705d2
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x10170a2d
mov eax, ecx
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x10]
dec dword [eax + 0x1d54]
cmp edi, dword [ebp - 0x24]
je 0x101705fc
mov edi, esi
cmp esi, ebx
jne 0x101705a4
jmp 0x10170611
mov eax, dword [ebp - 0x18]
mov dword [eax], ebx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + eax*4], ebx
mov eax, esi
jmp 0x10170546
mov eax, dword [ebp - 0x18]
mov dword [eax], ebx
mov eax, dword [ebp - 0x28]
mov dword [eax], ebx
mov dword [ebx + 4], eax
push dword [ebp - 0x30]
call sub.MSVCP140.dll__Mtx_unlock
add esp, 4
mov esi, dword [ebp - 0x10]
lea eax, [esi + 0x1dc0]
mov dword [ebp - 0x30], eax
push eax
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
jne 0x10170a33
mov ebx, dword [esi + 0x1da4]
mov edi, dword [ebx]
cmp edi, ebx
je 0x1017067b
mov esi, dword [edi + 0x20]
test esi, esi
je 0x10170677
mov eax, dword [esi]
mov ecx, dword [eax + 8]
call dword [section..00cfg]
push esi
call ecx
mov dword [edi + 0x20], 0
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax + 0x1da4]
mov edi, dword [edi]
jmp 0x1017064e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x1da8]
test eax, eax
je 0x10170916
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x1dbc]
shr ecx, 3
cmp ecx, eax
jbe 0x101706bb
mov edx, dword [ebx]
cmp edx, ebx
je 0x10170916
mov eax, dword [edx + 0x18]
cmp dword [edx + 0x1c], 0x10
jb 0x10170759
mov ecx, dword [edx + 8]
jmp 0x1017075c
mov eax, dword [ebx + 4]
mov dword [eax], 0
mov edi, dword [ebx]
test edi, edi
je 0x10170710
mov esi, dword [sym.imp.mozglue.dll_free]
mov ebx, dword [edi]
mov ecx, dword [edi + 0x1c]
cmp ecx, 0x10
jb 0x10170704
mov eax, dword [edi + 8]
add ecx, 0xfffff001
cmp ecx, 0xffffefff
ja 0x101706fe
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x10170a2d
mov eax, ecx
push eax
call esi
add esp, 4
push edi
call esi
add esp, 4
mov edi, ebx
test ebx, ebx
jne 0x101706d0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x1da4]
mov dword [eax], eax
mov eax, dword [ecx + 0x1da4]
mov dword [eax + 4], eax
mov dword [ecx + 0x1da8], 0
mov eax, dword [ecx + 0x1dac]
mov ecx, dword [ecx + 0x1db0]
cmp eax, ecx
je 0x10170916
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x1da4]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x1017074b
jmp 0x10170916
lea ecx, [edx + 8]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x1dac]
mov dword [ebp - 0x1c], edx
mov edx, 0x811c9dc5
test eax, eax
je 0x10170787
xor esi, esi
movzx edi, byte [ecx + esi]
xor edi, edx
imul edx, edi, 0x1000193
inc esi
cmp eax, esi
jne 0x10170776
mov eax, dword [ebp - 0x10]
and edx, dword [eax + 0x1db8]
mov edi, dword [ebp - 0x14]
mov eax, dword [edi + 4]
mov dword [ebp - 0x28], eax
lea eax, [edx + edx]
mov esi, dword [ebp - 0x1c]
lea ecx, [esi + edx*8]
lea edx, [edx + edx + 1]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x18], ecx
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
mov eax, dword [esi + eax*4 + 4]
mov dword [ebp - 0x24], eax
mov esi, dword [edi]
mov ecx, dword [edi + 0x1c]
cmp ecx, 0x10
jb 0x101707f0
mov eax, dword [edi + 8]
add ecx, 0xfffff001
cmp ecx, 0xffffefff
ja 0x101707e6
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x10170a2d
mov eax, ecx
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x10]
dec dword [eax + 0x1da8]
cmp edi, dword [ebp - 0x24]
je 0x10170823
cmp esi, ebx
jne 0x10170818
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x14]
je 0x10170909
mov edi, esi
cmp esi, ebx
jne 0x101707b8
jmp 0x1017090e
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x14]
jne 0x10170835
mov eax, dword [ebp - 0x18]
mov dword [eax], ebx
mov eax, ebx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
mov dword [ecx + edx*4], eax
cmp esi, ebx
je 0x1017090e
cmp dword [esi + 0x1c], 0x10
jb 0x10170851
mov eax, dword [esi + 8]
jmp 0x10170854
lea eax, [esi + 8]
mov dword [ebp - 0x14], esi
mov edx, dword [esi + 0x18]
mov ecx, 0x811c9dc5
test edx, edx
je 0x10170876
xor esi, esi
movzx edi, byte [eax + esi]
xor edi, ecx
imul ecx, edi, 0x1000193
inc esi
cmp edx, esi
jne 0x10170865
mov eax, dword [ebp - 0x10]
and ecx, dword [eax + 0x1db8]
lea eax, [ecx + ecx]
mov esi, dword [ebp - 0x1c]
lea edx, [esi + ecx*8]
mov dword [ebp - 0x18], edx
lea ecx, [ecx + ecx + 1]
mov dword [ebp - 0x20], ecx
mov eax, dword [esi + eax*4 + 4]
mov dword [ebp - 0x24], eax
mov edi, dword [ebp - 0x14]
mov esi, dword [edi]
mov ecx, dword [edi + 0x1c]
cmp ecx, 0x10
jb 0x101708d4
mov eax, dword [edi + 8]
add ecx, 0xfffff001
cmp ecx, 0xffffefff
ja 0x101708ca
mov ecx, dword [eax - 4]
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
jae 0x10170a2d
mov eax, ecx
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov eax, dword [ebp - 0x10]
dec dword [eax + 0x1da8]
cmp edi, dword [ebp - 0x24]
je 0x101708f4
mov edi, esi
cmp esi, ebx
jne 0x1017089c
jmp 0x10170909
mov eax, dword [ebp - 0x18]
mov dword [eax], ebx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + eax*4], ebx
mov eax, esi
jmp 0x1017083e
mov eax, dword [ebp - 0x18]
mov dword [eax], ebx
mov eax, dword [ebp - 0x28]
mov dword [eax], ebx
mov dword [ebx + 4], eax
push dword [ebp - 0x30]
call sub.MSVCP140.dll__Mtx_unlock
add esp, 4
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebx + 0x15fc]
test edi, edi
je 0x1017093f
mov ecx, edi
call fcn.101698e0
push edi
call dword [sym.imp.mozglue.dll_free]
add esp, 4
mov dword [ebx + 0x15fc], 0
mov edi, dword [ebx + 0x1df4]
test edi, edi
je 0x10170968
mov eax, dword [edi]
mov ebx, dword [eax]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
push 1
call ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x1df4], 0
mov edi, dword [ebx + 0x30c4]
test edi, edi
je 0x10170991
mov eax, dword [edi]
mov ebx, dword [eax]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
push 1
call ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30c4], 0
mov edi, dword [ebx + 0x30c8]
test edi, edi
je 0x101709ba
mov eax, dword [edi]
mov ebx, dword [eax]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
push 1
call ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30c8], 0
mov edi, dword [ebx + 0x30cc]
test edi, edi
je 0x101709e3
mov eax, dword [edi]
mov ebx, dword [eax]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
push 1
call ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30cc], 0
xor esi, esi
mov edi, dword [ebx + esi + 0x30dc]
test edi, edi
je 0x10170a0f
mov eax, dword [edi]
mov ebx, dword [eax]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
push 1
call ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + esi + 0x30dc], 0
add esi, 0x10
cmp esi, 0xc0
jne 0x101709ef
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
int3