Function at 0x1016c0d0
Capabilities:
Encode data using xor
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x13c
mov eax, dword [0x101d2014]
mov ebx, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x114], 0x50
mov ecx, dword [ebx + 0xc4]
call fcn.10160fa0
test eax, eax
je 0x1016c1fc
mov dword [ebx + 0x190], 0
mov edi, dword [ebp + 0xc]
cmp dword [ebx + 0x604], 2
jne 0x1016c12a
mov eax, dword [edi + 8]
xor esi, esi
cmp byte [eax], 0x17
je 0x1016c2ab
test byte [ebx + 0x1d], 4
jne 0x1016c13e
push dword [ebx + 0x174]
call fcn.1013e010
add esp, 4
mov esi, dword [ebx + 0x3b0]
cmp dword [ebx + 0x9f8], 1
jne 0x1016c208
push dword [edi + 8]
push esi
call fcn.1015e2e0
add esp, 8
cmp word [esi + 0x4c], ax
je 0x1016c18c
movzx ecx, word [ebx + 0x58]
cmp ecx, 0x304
jb 0x1016c281
movzx eax, ax
push eax
push 1
push ebx
call fcn.101837f0
add esp, 0xc
mov esi, eax
test eax, eax
je 0x1016c281
cmp esi, dword [ebx + 0x3b0]
movzx eax, word [esi + 0x10]
lea edi, [esi + 0x10]
sete byte [ebp - 0x132]
cmp eax, 0x300
seta byte [ebp - 0x131]
cmp dword [ebx + 0x9f8], 1
jne 0x1016c226
mov dword [ebp - 0x118], edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x10]
push dword [eax + 4]
push dword [eax]
push dword [edi + 8]
push esi
push ebx
call fcn.1015ce60
add esp, 0x14
test eax, eax
jne 0x1016c2ea
push edi
push edi
push esi
push ebx
call fcn.1015e360
add esp, 0x10
test eax, eax
je 0x1016c281
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov edi, dword [ebp - 0x118]
jmp 0x1016c234
push 0
push 0xffffd053
jmp 0x1016c2a0
test esi, esi
je 0x1016c281
movzx eax, word [esi + 0x10]
lea edi, [esi + 0x10]
mov byte [ebp - 0x132], 1
cmp eax, 0x300
seta byte [ebp - 0x131]
mov ecx, dword [esi + 0x58]
mov eax, dword [esi + 0x5c]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov dword [edx + 4], eax
mov edx, dword [esi + 0x14]
cmp ecx, dword [edx + 0x30]
sbb eax, dword [edx + 0x34]
jae 0x1016c285
mov eax, dword [ebp + 0xc]
movzx edx, word [esi + 0xf4]
mov ecx, dword [eax + 0x10]
lea eax, [edx + 0x140]
cmp dword [ecx + 4], eax
jbe 0x1016c2c2
test byte [ebx + 0x1d], 4
jne 0x1016c26b
push dword [ebx + 0x174]
call fcn.1013e0d0
add esp, 4
push 0x16
push 2
push ebx
call fcn.1015f2c0
add esp, 0xc
push 0
push 0xffffd019
jmp 0x1016c2a0
xor esi, esi
jmp 0x1016c2ed
test byte [ebx + 0x1d], 4
jne 0x1016c299
push dword [ebx + 0x174]
call fcn.1013e0d0
add esp, 4
push 0
push 0xffffd099
call sym.nss3.dll_PR_SetError
add esp, 8
xor esi, esi
dec esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
mov eax, esi
add esp, 0x13c
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ebx + 0x194], eax
mov dword [ebp - 0x118], edi
lea edi, [ebx + 0x18c]
mov dword [ebp - 0x148], edx
jae 0x1016c303
push eax
push edi
call fcn.10175a30
add esp, 8
test eax, eax
je 0x1016c303
xor esi, esi
dec esi
test byte [ebx + 0x1d], 4
jne 0x1016c2ab
push dword [ebx + 0x174]
call fcn.1013e0d0
add esp, 4
jmp 0x1016c2ab
lea eax, [ebx + 0x190]
mov dword [ebp - 0x13c], edi
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
movzx eax, byte [eax]
mov dword [ebp - 0x110], eax
cmp word [esi + 0x4c], 0
je 0x1016c362
mov eax, dword [ebp - 0x118]
mov edi, dword [ebp + 0xc]
movzx eax, word [eax]
cmp eax, 0x303
jbe 0x1016c384
lea eax, [ebp - 0x114]
lea ecx, [ebp - 0x110]
push eax
push ecx
push dword [ebp - 0x13c]
push edi
push esi
push ebx
call fcn.10189be0
add esp, 0x18
jmp 0x1016ce24
cmp dword [ebx + 0x9f8], 1
jne 0x1016c437
mov edi, dword [ebp + 0xc]
cmp al, 0x17
je 0x1016c442
and al, 0xe0
cmp al, 0x20
je 0x1016c442
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 0x5d]
mov dword [ebp - 0x10c], 0x41
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x100], 0xd
mov dword [ebp - 0xfc], 1
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x118], ecx
cmp eax, 2
je 0x1016c460
mov ecx, dword [esi + 0x18]
cmp eax, 1
mov edx, dword [ecx + 0xc]
jne 0x1016c3eb
movzx ecx, word [esi + 0x10]
inc edx
cmp ecx, 0x302
jb 0x1016c3eb
mov ecx, dword [ebp - 0x118]
add edx, dword [ecx + 0x14]
mov ecx, dword [edi + 0x10]
cmp dword [ecx + 4], edx
jb 0x1016ce02
xor edx, edx
xor edi, edi
dec edx
cmp eax, 1
jne 0x1016c47d
movzx eax, word [esi + 0x10]
cmp eax, 0x302
jb 0x1016c47d
mov eax, dword [ebp - 0x118]
mov edi, dword [eax + 0x14]
lea eax, [edi - 8]
cmp eax, 0x10
jbe 0x1016c80c
mov dword [ebp - 0x114], 0x50
push 0
push 0xffffe001
jmp 0x1016c4bd
mov edi, dword [ebp + 0xc]
cmp al, 0x17
jne 0x1016c384
push 0
push 0xffffd036
call sym.nss3.dll_PR_SetError
add esp, 8
mov dword [ebp - 0x114], 0xa
jmp 0x1016ce2c
mov ecx, dword [ebp - 0x118]
mov edx, dword [edi + 0x10]
mov eax, dword [ecx + 0x1c]
add eax, dword [ecx + 0x20]
cmp dword [edx + 4], eax
jb 0x1016ce02
xor edx, edx
xor edi, edi
dec edx
movzx ebx, word [esi + 0x10]
xor ecx, ecx
cmp ebx, 0x300
seta al
cmp ebx, 0x301
jb 0x1016c4ca
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + 4]
sub ecx, edi
cmp ecx, 0x4801
mov ecx, 0
jb 0x1016c4ca
mov dword [ebp - 0x114], 0x16
push 0
push 0xffffd019
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x1016ce1b
mov cl, al
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x128], ecx
mov eax, dword [eax + 8]
movzx edi, word [eax + 1]
movzx edx, byte [eax]
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 0x10]
rol di, 8
mov dword [ebp - 0x124], edx
mov word [ebp - 0x120], di
cmp eax, 1
je 0x1016c600
cmp eax, 2
jne 0x1016c630
mov ecx, dword [ebp - 0x118]
mov eax, dword [ecx + 0x20]
mov ebx, dword [ecx + 0x1c]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x138], ebx
mov eax, dword [eax + 0x10]
mov edi, dword [eax + 4]
mov eax, dword [ebp - 0x11c]
add eax, ebx
movzx ebx, word [ebp - 0x120]
sub edi, eax
mov eax, dword [ecx + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x120], ebx
lea ebx, [ebp - 0x108]
mov dword [ebp - 0x118], eax
xor eax, eax
cmp dword [ecx + 0x9f8], 1
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
movzx ecx, word [esi + 0x4c]
sete al
push ebx
push edi
mov edi, dword [ebp + 0xc]
push eax
push dword [ebp - 0x120]
push dword [ebp - 0x128]
push dword [ebp - 0x124]
push dword [edi + 4]
call fcn.10160520
add esp, 0x1c
mov ecx, dword [ebp - 0x11c]
lea eax, [esi + 0x34]
mov ebx, ecx
test ecx, ecx
je 0x1016c775
mov edi, dword [ebp - 0x118]
lea ecx, [ebp - 0x50]
push edi
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp + edi - 0x50]
mov edi, ebx
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x124], ebx
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0x108]
mov edx, dword [ecx]
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x12c], edx
jmp 0x1016c7a2
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 0x118]
xor edx, edx
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx + 4]
sub eax, dword [ebp - 0x11c]
mov dword [ebp - 0x138], eax
div dword [edi + 0x18]
mov edi, dword [ebp - 0x11c]
test edx, edx
jne 0x1016ce02
jmp 0x1016c647
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 0x11c]
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx + 4]
sub eax, edi
mov dword [ebp - 0x138], eax
mov eax, dword [ebp + 8]
add edi, dword [ecx]
mov edx, dword [esi + 0x20]
mov ecx, dword [eax + 0x18c]
mov eax, dword [eax + 0x194]
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x11c], ecx
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0x140], eax
call dword [section..00cfg]
push dword [ebp - 0x138]
push edi
push dword [ebp - 0x140]
push dword [ebp - 0x130]
push dword [ebp - 0x11c]
push dword [ebp - 0x12c]
call ecx
add esp, 0x18
test eax, eax
jne 0x1016ce02
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x118]
mov edi, dword [eax]
cmp dword [ecx + 0x10], 1
mov dword [ebp - 0x11c], edi
jne 0x1016c898
mov eax, dword [esi + 0x18]
movzx edx, bx
cmp edx, 0x300
mov ebx, dword [eax + 0xc]
lea ecx, [ebx + 1]
jbe 0x1016c84a
cmp ecx, edi
ja 0x1016c84e
mov eax, dword [ebp - 0x13c]
mov ecx, edi
not ebx
mov edx, 0x100
add ebx, ecx
mov edi, dword [eax]
movzx eax, byte [ecx + edi - 1]
sub ebx, eax
mov dword [ebp - 0x12c], eax
sar ebx, 0x1f
cmp ecx, edx
cmovb edx, ecx
not ebx
test edx, edx
je 0x1016c73d
lea edi, [ecx + edi - 1]
mov ecx, eax
mov al, byte [edi]
mov dword [ebp - 0x138], ebx
mov ebx, ecx
dec edi
dec ecx
sar ebx, 0x1f
not ebx
xor al, byte [ebp - 0x12c]
movzx eax, al
and eax, ebx
mov ebx, dword [ebp - 0x138]
not eax
and ebx, eax
dec edx
jne 0x1016c714
mov eax, ebx
mov edi, dword [ebp - 0x11c]
shr eax, 4
and eax, ebx
mov ecx, eax
shr ecx, 2
and ecx, eax
mov edx, ecx
shr edx, 1
and edx, ecx
mov ecx, dword [ebp - 0x12c]
and edx, 1
mov eax, edx
dec edx
neg eax
inc ecx
and ecx, eax
sub edi, ecx
mov ecx, dword [ebp - 0x130]
jmp 0x1016c885
mov ecx, dword [ebp - 0x108]
mov dword [ebp - 0x124], 8
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x128], ecx
mov ecx, dword [edi + 0x10]
mov edi, dword [ebp - 0x128]
mov edx, dword [ecx]
mov dword [ebp - 0x12c], edi
mov ecx, dword [ecx + 4]
mov eax, dword [ebp - 0x118]
add edx, ebx
xor edi, edi
sub ecx, ebx
add eax, ebx
push ecx
push edx
push dword [ebp - 0x138]
mov ecx, dword [ebp + 8]
push dword [ecx + 0x194]
push dword [ebp - 0x130]
push dword [ecx + 0x18c]
push dword [ebp - 0x104]
push dword [ebp - 0x128]
push dword [ebp - 0x124]
push dword [ebp - 0x12c]
push eax
push edi
push dword [ebp - 0x120]
push edi
push edi
push 1
push dword [esi + 0x20]
call fcn.10189080
add esp, 0x44
test eax, eax
jne 0x1016ce02
jmp 0x1016cdf7
mov ebx, dword [ecx]
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x11c], eax
call dword [section..00cfg]
lea edx, [ebp - 0x50]
lea eax, [ebp - 0xa0]
push edi
push ebx
push 0x18
push eax
push edx
push dword [ebp - 0x11c]
call ecx
add esp, 0x18
mov edx, eax
neg edx
or edx, eax
sar edx, 0x1f
not edx
jmp 0x1016c47d
cmp ecx, edi
jbe 0x1016c853
xor edx, edx
dec edx
jmp 0x1016c887
mov eax, dword [ebp - 0x118]
not ebx
add ebx, edi
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax]
movzx ecx, byte [edi + ecx - 1]
sub ebx, ecx
inc ecx
sub edx, ecx
or edx, ebx
sar edx, 0x1f
mov eax, edx
not eax
and eax, ecx
mov ecx, dword [ebp - 0x130]
sub edi, eax
mov dword [ecx], edi
mov ecx, edx
neg ecx
or ecx, edx
sar ecx, 0x1f
not ecx
and dword [ebp - 0x144], ecx
mov ecx, dword [esi + 0x18]
mov eax, dword [ebp + 8]
xor ebx, ebx
sub edi, dword [ecx + 0xc]
cmp dword [eax + 0x9f8], 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [esi + 0x4c]
mov edx, dword [eax]
movzx eax, word [ebp - 0x120]
sete bl
mov dword [ebp - 0x120], eax
mov eax, edi
lea edi, [ebp - 0x108]
push edi
push eax
push ebx
push dword [ebp - 0x120]
push dword [ebp - 0x128]
push dword [ebp - 0x124]
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
call fcn.10160520
add esp, 0x1c
mov eax, dword [ebp - 0x118]
cmp dword [eax + 0x10], 1
jne 0x1016caa2
mov ecx, dword [esi + 0x18]
cmp dword [ecx], 0
je 0x1016cb6b
mov eax, dword [ebp - 0x130]
movzx edx, word [esi + 0x10]
xor ebx, ebx
lea edi, [ebp - 0xa0]
mov dword [ebp - 0x120], 0
mov eax, dword [eax]
cmp edx, 0x300
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx + 4]
sete bl
add ebx, 0xce534363
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x138], edx
lea edx, [ebp - 0x50]
mov eax, dword [eax]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x11c]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x108]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], ecx
mov dword [edx + 8], ecx
mov ecx, dword [ebp - 0x104]
mov dword [ebp - 0x12c], ecx
mov dword [edx + 0xc], ecx
lea ecx, [ebp - 0xe0]
mov dword [ecx + 4], edx
lea edx, [ebp - 0xf8]
mov dword [ecx + 8], 0x10
mov dword [edx + 4], edi
mov edi, dword [ebp - 0x10c]
mov dword [edx + 8], edi
mov edi, ecx
xor ecx, ecx
mov dword [edi], ecx
lea edi, [ebp - 0xec]
mov dword [edx], ecx
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x118]
mov dword [edi + 8], eax
mov dword [edi], ecx
push edi
push edx
lea eax, [ebp - 0xe0]
push eax
push ebx
push dword [esi + 0x2c]
call fcn.10129170
add esp, 0x14
test eax, eax
je 0x1016cba2
cmp dword [0x101d4d40], 0
je 0x1016d095
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1016d077
cmp dword [eax + 0x28], 0xffffe006
jne 0x1016cbb0
mov eax, dword [esi + 0x18]
cmp dword [eax], 0
je 0x1016cb6b
mov ebx, dword [ebp - 0x118]
mov eax, dword [eax + 0xc]
mov edi, dword [esi + 0x30]
sub ebx, dword [ebp - 0x138]
mov dword [ebp - 0x118], eax
push edi
call sym.nss3.dll_PK11_DigestBegin
add esp, 4
mov dword [ebp - 0x120], eax
push dword [ebp - 0x12c]
push dword [ebp - 0x124]
push edi
call sym.nss3.dll_PK11_DigestOp
add esp, 0xc
mov dword [ebp - 0x124], eax
push ebx
push dword [ebp - 0x128]
push edi
call sym.nss3.dll_PK11_DigestOp
add esp, 0xc
mov ebx, eax
lea eax, [ebp - 0x10c]
or ebx, dword [ebp - 0x120]
or ebx, dword [ebp - 0x124]
push dword [ebp - 0x118]
push eax
lea eax, [ebp - 0xa0]
push eax
push edi
call sym.nss3.dll_PK11_DigestFinal
add esp, 0x10
or eax, ebx
jne 0x1016cbba
jmp 0x1016cb75
mov ecx, dword [ebp - 0x130]
mov eax, dword [esi + 0x18]
mov edi, dword [ecx]
sub edi, dword [eax + 0xc]
mov dword [ecx], edi
mov eax, dword [esi + 0x18]
cmp dword [eax], 0
je 0x1016cb81
mov ecx, dword [ebp - 0x108]
mov eax, dword [eax + 0xc]
mov ebx, dword [esi + 0x30]
mov dword [ebp - 0x124], ecx
mov ecx, dword [ebp - 0x104]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x120], ecx
mov ecx, dword [ebp - 0x13c]
mov ecx, dword [ecx]
mov dword [ebp - 0x11c], ecx
push ebx
call sym.nss3.dll_PK11_DigestBegin
add esp, 4
mov dword [ebp - 0x128], eax
push dword [ebp - 0x120]
push dword [ebp - 0x124]
push ebx
call sym.nss3.dll_PK11_DigestOp
add esp, 0xc
mov dword [ebp - 0x124], eax
push edi
push dword [ebp - 0x11c]
push ebx
call sym.nss3.dll_PK11_DigestOp
add esp, 0xc
mov edi, eax
lea eax, [ebp - 0x10c]
lea ecx, [ebp - 0xa0]
or edi, dword [ebp - 0x128]
or edi, dword [ebp - 0x124]
push dword [ebp - 0x118]
push eax
push ecx
push ebx
call sym.nss3.dll_PK11_DigestFinal
add esp, 0x10
or eax, edi
je 0x1016cb8b
push 0xffffd04b
call fcn.10176550
add esp, 4
xor edi, edi
dec edi
jmp 0x1016cb8d
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x120], 0
jmp 0x1016cbd0
mov dword [ebp - 0x10c], 0
xor edi, edi
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x130]
mov edx, dword [eax]
add edx, dword [ecx]
jmp 0x1016cdc3
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x10c], eax
jmp 0x1016cbd0
mov dword [ebp - 0x10c], 0
push 0xffffd04b
call fcn.10176550
add esp, 4
xor eax, eax
dec eax
mov dword [ebp - 0x120], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x12c], esi
mov edi, dword [ebp - 0x11c]
mov esi, dword [eax + 0xc]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x130]
mov ebx, edi
mov eax, dword [eax]
lea ecx, [esi + 0x100]
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x124], eax
sub eax, esi
sub ebx, ecx
mov ecx, 0
cmovb ebx, ecx
mov ecx, eax
lea eax, [esi - 0x10]
rol eax, 0x1e
sub ecx, ebx
cmp eax, 8
ja case.0x1016cc1f.2
jmp dword [eax*4 + 0x101a84b8]
and ecx, 0xf
jmp 0x1016cc2e
and ecx, 0x1f
mov dword [ebp - 0x140], ecx
jmp 0x1016cc98
mov eax, 0xff
mov edx, ecx
and ecx, eax
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*4]
shr ecx, 7
and ecx, 0x3c
lea ecx, [ecx + ecx*4]
sub edx, ecx
and edx, eax
lea eax, [edx - 0x14]
sar eax, 0x1f
or eax, 0xffffffeb
jmp 0x1016cc81
mov eax, 0xff
mov edx, ecx
and ecx, eax
add ecx, ecx
lea ecx, [ecx + ecx*4]
shr ecx, 5
and ecx, 0x70
lea ecx, [ecx + ecx*2]
sub edx, ecx
and edx, eax
lea eax, [edx - 0x30]
sar eax, 0x1f
or eax, 0xffffffcf
lea edx, [edx + eax + 1]
jmp 0x1016cc92
movzx eax, cl
xor edx, edx
div dword [ebp - 0x118]
mov dword [ebp - 0x140], edx
mov esi, dword [ebp - 0x118]
lea eax, [ebp - 0x50]
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, esi
add esp, 0xc
cmp ebx, edi
jae 0x1016cd1e
mov eax, dword [ebp - 0x124]
mov esi, ecx
mov edx, eax
sub esi, eax
neg edx
mov dword [ebp - 0x128], edx
test ecx, ecx
je 0x1016cd14
cmp ebx, edi
jae 0x1016cd14
mov eax, dword [ebp - 0x13c]
mov edi, dword [eax]
xor eax, eax
inc eax
lea ecx, [esi + ebx]
mov edx, dword [ebp - 0x128]
sar ecx, 0x1f
not cl
and cl, byte [edi + ebx]
add edx, ebx
inc ebx
sar edx, 0x1f
and cl, dl
or byte [ebp + eax - 0x51], cl
cmp ebx, dword [ebp - 0x11c]
jae 0x1016cd0e
mov ecx, dword [ebp - 0x118]
cmp eax, ecx
lea eax, [eax + 1]
jb 0x1016ccda
jmp 0x1016cd14
mov ecx, dword [ebp - 0x118]
mov edi, dword [ebp - 0x11c]
cmp ebx, edi
jb 0x1016ccc7
lea eax, [ebp - 0xe0]
push ecx
push 0
push eax
mov esi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test esi, esi
je 0x1016cd9a
mov ecx, dword [ebp - 0x118]
mov esi, dword [ebp - 0x118]
mov eax, ecx
sub eax, dword [ebp - 0x140]
movzx edx, al
sub edx, ecx
sar edx, 0x1f
and edx, eax
xor eax, eax
mov bl, byte [ebp + eax - 0x50]
movzx ecx, dl
xor edx, edx
mov dword [ebp - 0x11c], eax
movzx edi, dl
sub edi, ecx
mov eax, edi
neg eax
or eax, edi
sar eax, 0x1f
not al
and al, bl
or byte [ebp + edx - 0xe0], al
inc edx
cmp esi, edx
jne 0x1016cd65
mov eax, dword [ebp - 0x11c]
inc cl
movzx edx, cl
sub edx, esi
sar edx, 0x1f
inc eax
and dl, cl
cmp eax, esi
jne 0x1016cd56
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x124]
mov edx, dword [ebp - 0x130]
mov edi, dword [ebp - 0x120]
mov esi, dword [ebp - 0x12c]
sub ecx, dword [eax + 0xc]
mov dword [edx], ecx
lea edx, [ebp - 0xe0]
mov eax, dword [ebp - 0x10c]
mov ecx, dword [esi + 0x18]
cmp eax, dword [ecx + 0xc]
jne 0x1016ce02
lea ecx, [ebp - 0xa0]
push eax
push ecx
push edx
call sym.nss3.dll_NSS_SecureMemcmp
add esp, 0xc
test eax, eax
jne 0x1016ce02
mov eax, edi
neg eax
or eax, edi
sar eax, 0x1f
not eax
and dword [ebp - 0x144], eax
xor eax, eax
cmp dword [ebp - 0x144], 0
jne 0x1016ce1e
push 0
push 0xffffd00f
call sym.nss3.dll_PR_SetError
add esp, 8
mov dword [ebp - 0x114], 0x14
xor eax, eax
dec eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
test eax, eax
je 0x1016cf16
test byte [ebx + 0x1d], 4
jne 0x1016ce40
push dword [ebx + 0x174]
call fcn.1013e0d0
add esp, 4
mov dword [ebx + 0x190], 0
movzx eax, word [ebx + 0x58]
cmp eax, 0x304
jb 0x1016ce9c
mov eax, dword [edi + 8]
cmp byte [eax], 0x14
jne 0x1016ce9c
cmp dword [ebx + 0x450], 0
je 0x1016ce9c
mov eax, dword [edi + 0x10]
cmp dword [eax + 4], 1
jne 0x1016ce9c
mov eax, dword [eax]
cmp byte [eax], 1
jne 0x1016ce9c
cmp dword [ebx + 0x61c], 0
je 0x1016d052
mov dword [ebp - 0x114], 0xa
push 0
push 0xffffd025
call sym.nss3.dll_PR_SetError
add esp, 8
cmp dword [ebx + 0x9f8], 1
jne 0x1016cebb
push esi
call fcn.1015c9c0
add esp, 4
test eax, eax
je 0x1016ceca
cmp dword [ebx + 0x9f8], 1
je 0x1016ced9
cmp dword [ebx + 0x60], 0
je 0x1016ced9
cmp dword [ebx + 0x604], 1
jne 0x1016ced9
xor eax, eax
cmp eax, dword [ebx + 0x69c]
sbb esi, esi
jmp 0x1016c2ab
cmp dword [0x101d4d40], 0
je 0x1016d08b
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x1016d063
mov esi, dword [eax + 0x28]
push dword [ebp - 0x114]
push 2
push ebx
call fcn.1015f2c0
add esp, 0xc
push 0
push esi
jmp 0x1016c2a0
cmp dword [ebx + 0x9f8], 1
jne 0x1016cf58
lea eax, [esi + 0x60]
push dword [edi + 4]
push dword [edi]
push eax
call fcn.1015e0e0
add esp, 0xc
mov edx, dword [edi]
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x5c]
add edx, 1
adc edi, 0
cmp edx, eax
mov ebx, edi
sbb ebx, ecx
mov ebx, dword [ebp + 8]
cmovb edi, ecx
cmovb edx, eax
mov dword [esi + 0x58], edx
mov dword [esi + 0x5c], edi
jmp 0x1016cf60
add dword [esi + 0x58], 1
adc dword [esi + 0x5c], 0
movzx edi, word [esi + 0x4c]
test byte [ebx + 0x1d], 4
jne 0x1016cf78
push dword [ebx + 0x174]
call fcn.1013e0d0
add esp, 4
cmp byte [ebp - 0x132], 0
je 0x1016cfb5
cmp byte [ebp - 0x131], 0
je 0x1016cfcd
mov eax, dword [ebp - 0x148]
mov ecx, dword [ebp - 0x130]
cmp dword [ecx], eax
jbe 0x1016cfcd
xor esi, esi
mov dword [ebx + 0x190], esi
push 0x16
push 2
push ebx
call fcn.1015f2c0
add esp, 0xc
push esi
jmp 0x1016c27a
push dword [ebp - 0x13c]
push dword [ebp - 0x110]
push esi
push ebx
call fcn.1015cb70
add esp, 0x10
jmp 0x1016d02b
mov eax, dword [ebp - 0x110]
cmp eax, 0x17
jne 0x1016d00f
xor esi, esi
cmp dword [ebx + 0x38], 0
jne 0x1016c2ab
movzx eax, word [ebx + 0x58]
cmp eax, 0x304
jb 0x1016d032
cmp dword [ebx + 0x60], 0
je 0x1016d032
cmp dword [ebx + 0x600], 2
jne 0x1016d032
push dword [ebp - 0x13c]
push ebx
call fcn.1018a240
add esp, 8
jmp 0x1016d02b
movzx ecx, di
push dword [ebp - 0x13c]
mov edx, dword [ebp + 0xc]
push dword [edx + 4]
push dword [edx]
push ecx
push eax
push ebx
call fcn.1016b980
add esp, 0x18
mov esi, eax
jmp 0x1016c2ab
xor esi, esi
mov dword [ebx + 0x190], esi
push 0xa
push 2
push ebx
call fcn.1015f2c0
add esp, 0xc
push esi
push 0xffffd036
jmp 0x1016c2a0
mov dword [ebx + 0x61c], 1
xor esi, esi
jmp 0x1016c2ab
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x1016cefa
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
jmp 0x1016c9ff
call sym.nss3.dll_PR_Init
jmp 0x1016cee6
call sym.nss3.dll_PR_Init
jmp 0x1016c9eb