Function at 0x566040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x74
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov ecx, dword [0x808040]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
test esi, esi
cmove esi, edx
mov dword [ebp - 0x78], esi
pxor xmm0, xmm0
movdqu xmmword [ebp - 0x60], xmm0
mov ecx, dword [edx + 4]
mov dword [ebp - 0x70], ecx
mov edx, ecx
cmp eax, 0xffffffff
jne 0x56648e
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov edi, dword [eax + 4]
test edi, edi
mov dword [ebp - 0x7c], edx
jle 0x56652f
mov ecx, dword [eax]
mov eax, edi
cmp dword [ecx + eax*4 - 4], 0
je 0x566463
lea edx, [eax - 1]
shl edx, 5
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x64], ecx
mov eax, dword [ecx + eax*4 - 4]
xor edx, edx
test eax, eax
setne dl
mov esi, eax
shr esi, 0x10
cmp eax, 0x10000
cmovb esi, eax
mov eax, 0
setae al
shl eax, 4
mov dword [ebp - 0x68], eax
mov ecx, esi
shr ecx, 8
xor eax, eax
cmp esi, 0x100
cmovb ecx, esi
setae al
mov dword [ebp - 0x74], eax
mov esi, ecx
shr esi, 4
xor eax, eax
cmp ecx, 0x10
cmovb esi, ecx
setae al
mov dword [ebp - 0x80], eax
mov ecx, esi
shr ecx, 2
xor eax, eax
cmp esi, 4
cmovb ecx, esi
setae al
add edx, dword [ebp - 0x6c]
add edx, dword [ebp - 0x68]
mov esi, dword [ebp - 0x74]
lea edx, [edx + esi*8]
mov esi, dword [ebp - 0x80]
lea edx, [edx + esi*4]
cmp ecx, 2
lea edx, [edx + eax*2]
sbb edx, 0xffffffff
dec edx
and edx, 7
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax + 0x14]
test ecx, ecx
mov dword [ebp - 0x6c], edx
jne 0x566567
test edi, edi
jle 0x56647e
mov ecx, dword [ebp - 0x64]
cmp dword [ecx + edi*4 - 4], 0
je 0x56644c
lea esi, [edi - 1]
shl esi, 5
mov eax, dword [ecx + edi*4 - 4]
xor edx, edx
test eax, eax
setne dl
mov ecx, eax
shr ecx, 0x10
cmp eax, 0x10000
cmovb ecx, eax
mov eax, 0
setae al
shl eax, 4
mov dword [ebp - 0x64], eax
mov edi, ecx
shr edi, 8
xor eax, eax
cmp ecx, 0x100
cmovb edi, ecx
setae al
mov dword [ebp - 0x68], eax
mov eax, edi
shr eax, 4
xor ecx, ecx
cmp edi, 0x10
cmovb eax, edi
setae cl
mov dword [ebp - 0x74], ecx
mov edi, eax
shr edi, 2
xor ecx, ecx
cmp eax, 4
cmovb edi, eax
setae cl
or edx, esi
add edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x68]
lea eax, [edx + eax*8]
mov edx, dword [ebp - 0x74]
lea eax, [eax + edx*4]
lea eax, [eax + ecx*2]
cmp edi, 2
sbb eax, 0xffffffff
add eax, 7
shr eax, 3
mov esi, dword [ebp - 0x7c]
movzx edi, byte [ebx]
mov ecx, dword [ebp - 0x6c]
shr edi, cl
test edi, edi
jne 0x566500
xor edx, edx
test ecx, ecx
sete dl
mov dword [ebp - 0x68], eax
mov edi, eax
mov dword [ebp - 0x64], edx
sub edi, edx
mov eax, dword [ebp - 0x70]
add eax, 2
cmp edi, eax
jb 0x56650e
test esi, esi
sets cl
add eax, esi
cmp edi, eax
setae al
or al, cl
je 0x56650e
add ebx, dword [ebp - 0x64]
cmp byte [ebx + edi - 1], 0xbc
jne 0x5664f2
mov esi, dword [ebp - 0x70]
mov eax, esi
not eax
add edi, eax
push edi
call fcn.00564600
add esp, 4
test eax, eax
je 0x566526
mov ecx, esi
mov esi, eax
lea eax, [ebx + edi]
push dword [ebp - 0x78]
push ecx
mov dword [ebp - 0x78], eax
push eax
push edi
push esi
call fcn.004c3170
add esp, 0x14
test eax, eax
je 0x566528
test edi, edi
mov edx, dword [ebp - 0x6c]
je 0x566280
xor eax, eax
mov cl, byte [ebx + eax]
xor byte [esi + eax], cl
inc eax
cmp edi, eax
jne 0x566275
test edx, edx
je 0x566291
mov cl, 8
sub cl, dl
mov eax, 0xff
shr eax, cl
and byte [esi], al
neg dword [ebp - 0x64]
lea eax, [edi - 1]
xor ebx, ebx
mov edx, ebx
mov cl, byte [esi + ebx]
inc ebx
cmp edx, eax
jae 0x5662a7
test cl, cl
je 0x566299
cmp cl, 1
jne 0x5664c7
mov ecx, dword [ebp - 0x7c]
test ecx, ecx
mov eax, dword [ebp + 0x10]
js 0x5662cf
mov edx, dword [ebp - 0x68]
add edx, dword [ebp - 0x64]
not ecx
add ecx, edx
sub ecx, dword [ebp - 0x70]
cmp ecx, ebx
jne 0x5664b6
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x20], xmm0
movdqu xmmword [ebp - 0x30], xmm0
movdqu xmmword [ebp - 0x40], xmm0
movdqu xmmword [ebp - 0x50], xmm0
test eax, eax
je 0x56645c
push dword [eax + 0x1c]
call fcn.00564600
add esp, 4
mov dword [ebp - 0x64], eax
test eax, eax
je 0x566528
push 0
call fcn.005646a0
add esp, 4
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x60], eax
sub edi, ebx
mov ecx, dword [eax + 0xc]
cmp ecx, 0x567040
jne 0x566438
pxor xmm0, xmm0
movdqu xmmword [edx + 0x5c], xmm0
movdqu xmmword [edx + 0x50], xmm0
movdqu xmmword [edx + 0x40], xmm0
movdqu xmmword [edx + 0x30], xmm0
movdqu xmmword [edx + 0x20], xmm0
movaps xmm0, xmmword [0x78cda0]
movups xmmword [edx], xmm0
movdqa xmm0, xmmword [0x78cdb0]
movdqu xmmword [edx + 0x10], xmm0
mov dword [edx + 0x6c], 0x20
lea eax, [ebp - 0x60]
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
call dword [0x8010bc]
push 8
push 0x78d477
lea eax, [ebp - 0x60]
push eax
call ecx
add esp, 0xc
lea eax, [ebp - 0x60]
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
call dword [0x8010bc]
push dword [ebp - 0x70]
push dword [ebp + 0xc]
lea eax, [ebp - 0x60]
push eax
call ecx
add esp, 0xc
mov eax, esi
add eax, ebx
mov dword [ebp - 0x64], eax
lea ebx, [ebp - 0x60]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x10]
call dword [0x8010bc]
push edi
push dword [ebp - 0x64]
push ebx
call ecx
add esp, 0xc
mov eax, dword [ebx]
mov ecx, dword [eax + 0x14]
call dword [0x8010bc]
lea edi, [ebp - 0x50]
push edi
push ebx
call ecx
add esp, 8
mov eax, dword [ebx]
push dword [eax + 0x1c]
push dword [ebx + 4]
call fcn.005646e0
mov eax, dword [ebp - 0x70]
add esp, 8
xor ebx, ebx
inc ebx
test eax, eax
je 0x566405
push eax
push dword [ebp - 0x78]
push edi
call fcn.005c7efd
add esp, 0xc
test eax, eax
jne 0x5664d8
push esi
call fcn.005646a0
add esp, 4
push dword [ebp - 0x5c]
call fcn.005646a0
add esp, 4
mov eax, dword [ebp - 0x54]
test eax, eax
jne 0x56653a
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c6b46
mov eax, ebx
add esp, 0x74
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [0x8010bc]
lea eax, [ebp - 0x60]
push eax
call ecx
add esp, 4
jmp 0x566367
lea eax, [edi - 1]
cmp edi, 1
mov edi, eax
jg 0x56614d
jmp 0x566487
xor edx, edx
jmp 0x56631b
mov dword [ebp - 0x64], ecx
lea ecx, [eax - 1]
cmp eax, 1
mov eax, ecx
mov ecx, dword [ebp - 0x64]
jg 0x56609a
xor edx, edx
jmp 0x56612b
mov ecx, dword [ebp - 0x64]
jne 0x566158
xor eax, eax
jmp 0x5661d7
cmp eax, 0xfffffffe
jne 0x56649d
mov edx, 0xfffffffe
jmp 0x56607f
mov edx, eax
jge 0x56607f
push 0xe9
push str....._third_party_boringssl_srccrypto_fipsmodule_rsapadding.c
push 0x8a
jmp 0x56651a
push 0x11f
push str....._third_party_boringssl_srccrypto_fipsmodule_rsapadding.c
push 0x8a
jmp 0x5664e4
push 0x119
push str....._third_party_boringssl_srccrypto_fipsmodule_rsapadding.c
push 0x8b
jmp 0x5664e4
push 0x12b
push str....._third_party_boringssl_srccrypto_fipsmodule_rsapadding.c
push 0x69
push 0
push 4
call fcn.006baa70
add esp, 0x14
jmp 0x566528
push 0xfe
push str....._third_party_boringssl_srccrypto_fipsmodule_rsapadding.c
push 0x7f
jmp 0x56651a
push 0xf0
push str....._third_party_boringssl_srccrypto_fipsmodule_rsapadding.c
push 0x7a
jmp 0x56651a
push 0xfa
push str....._third_party_boringssl_srccrypto_fipsmodule_rsapadding.c
push 0x71
push 0
push 4
call fcn.006baa70
add esp, 0x14
xor esi, esi
xor ebx, ebx
jmp 0x566405
je 0x566550
mov ecx, dword [eax]
mov eax, edi
jmp 0x5660a5
mov ecx, dword [eax]
mov esi, dword [ebp - 0x58]
call dword [0x8010bc]
push esi
call ecx
add esp, 4
jmp 0x566424
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x6c], 7
test ecx, ecx
je 0x566487
call dword [0x8010bc]
push dword [ebp + 8]
call ecx
add esp, 4
jmp 0x5661dd