Function at 0x10020d00
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x70
mov eax, dword [0x1005d3b0]
xor eax, esp
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x74]
push ebx
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x98]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x90]
push esi
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], 0xffffffff
call fcn.10008de0
mov esi, eax
add esp, 4
mov eax, dword [esi]
lea eax, [eax*2 + 2]
cmp ebx, eax
jae 0x10020d87
push 0xffffe004
call sub.nssutil3.dll_PORT_SetError_Util
add esp, 4
or eax, 0xffffffff
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.1003cf2f
add esp, 0x70
ret
mov eax, dword [esi + 4]
push edi
call eax
mov edi, eax
test edi, edi
jne 0x10020db6
push 0xffffe013
call sub.nssutil3.dll_PORT_SetError_Util
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.1003cf2f
add esp, 0x70
ret
mov eax, dword [esi + 0x10]
push edi
call eax
mov eax, dword [esp + 0xa8]
add esp, 4
test eax, eax
je 0x10020dd5
push eax
mov eax, dword [esi + 0x14]
push ebp
push edi
call eax
add esp, 0xc
push 0x40
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x44]
push eax
mov eax, dword [esi + 0x18]
push edi
call eax
mov eax, dword [esi + 0xc]
push 1
push edi
call eax
push ebx
call sub.nssutil3.dll_PORT_Alloc_Util
mov edi, eax
add esp, 0x1c
test edi, edi
jne 0x10020e10
push 0xffffe013
call sub.nssutil3.dll_PORT_SetError_Util
add esp, 4
jmp 0x1002102d
mov ebp, ebx
sub ebp, dword [esi]
dec ebp
push ebp
mov dword [esp + 0x28], ebp
call sub.nssutil3.dll_PORT_Alloc_Util
mov ebx, eax
add esp, 4
mov dword [esp + 0x2c], ebx
test ebx, ebx
jne 0x10020e42
push 0xffffe013
call sub.nssutil3.dll_PORT_SetError_Util
mov esi, dword [esp + 0x20]
add esp, 4
jmp 0x10021023
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push edi
call fcn.1003cf40
mov ecx, dword [esi]
mov eax, dword [esp + 0x28]
sub eax, ecx
dec eax
push eax
lea eax, [edi + 1]
add eax, ecx
push eax
push ecx
push ebx
push dword [esp + 0xb8]
call fcn.10020280
xor ecx, ecx
add esp, 0x20
mov dword [esp + 0x14], ecx
cmp dword [esi], ecx
jbe 0x10020e94
jmp 0x10020e80
mov al, byte [ecx + ebx]
xor byte [edi + ecx + 1], al
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, dword [esi]
jb 0x10020e80
push dword [esi]
lea eax, [edi + 1]
push eax
push ebp
push ebx
push dword [esp + 0xac]
call fcn.10020280
xor edx, edx
add esp, 0x14
mov dword [esp + 0x14], edx
test ebp, ebp
je 0x10020ecf
mov eax, dword [esi]
add eax, edx
lea ecx, [eax + edi]
mov al, byte [edx + ebx]
xor byte [ecx + 1], al
mov edx, dword [esp + 0x14]
inc edx
mov dword [esp + 0x14], edx
cmp edx, ebp
jb 0x10020eb5
mov al, byte [edi]
lea ecx, [edi + 1]
mov esi, dword [esi]
mov dl, al
neg dl
mov dword [esp + 0x20], 0
or dl, al
mov dword [esp + 0x18], esi
not dl
xor dh, dh
shr dl, 7
add ecx, esi
xor ah, ah
mov byte [esp + 0x12], dh
test esi, esi
je 0x10020f26
lea esi, [esp + 0x3c]
sub esi, ecx
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x38]
lea ecx, [ecx]
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
or ah, al
dec esi
jne 0x10020f10
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
mov al, ah
neg al
or al, ah
not al
shr al, 7
and dl, al
lea eax, [esi*2 + 1]
mov esi, dword [esp + 0x1c]
mov byte [esp + 0x13], dl
mov dword [esp + 0x14], eax
cmp eax, esi
jae 0x10020fc2
mov bh, byte [esp + 0x12]
mov ebp, eax
mov bl, byte [edi + ebp]
mov cl, 1
sub cl, bl
mov al, bl
dec al
or cl, al
not cl
shr cl, 7
movzx edx, cl
movzx ecx, bh
not ecx
and ecx, edx
dec dl
dec ecx
mov eax, ecx
and ecx, dword [esp + 0x20]
not eax
and eax, ebp
inc ebp
or eax, ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], eax
mov cl, bl
neg cl
mov al, dl
or cl, bl
not dl
and al, bh
and dl, 1
or al, dl
not cl
mov dl, byte [esp + 0x13]
mov bh, al
shr cl, 7
not al
not cl
and cl, al
dec cl
and dl, cl
mov byte [esp + 0x13], dl
cmp ebp, esi
jb 0x10020f50
mov ebp, dword [esp + 0x24]
mov byte [esp + 0x12], bh
mov ebx, dword [esp + 0x2c]
mov dh, byte [esp + 0x12]
test dl, dh
jne 0x10020fd5
push 0xffffe002
call sub.nssutil3.dll_PORT_SetError_Util
add esp, 4
jmp 0x10021019
mov ecx, dword [esp + 0x20]
mov eax, esi
mov edx, dword [esp + 0x30]
inc ecx
sub eax, ecx
mov dword [edx], eax
cmp eax, dword [esp + 0x8c]
jbe 0x10020ffc
push 0xffffe003
call sub.nssutil3.dll_PORT_SetError_Util
add esp, 4
jmp 0x10021019
test eax, eax
je 0x10021011
push eax
lea eax, [ecx + edi]
push eax
push dword [esp + 0x3c]
call fcn.1003cf40
add esp, 0xc
mov dword [esp + 0x28], 0
push ebp
push ebx
call sub.nssutil3.dll_PORT_ZFree_Util
add esp, 8
push esi
push edi
call sub.nssutil3.dll_PORT_ZFree_Util
add esp, 8
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003cf2f
add esp, 0x70
ret