Function at 0x6b6cb240
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
cmp dword [eax], 0
je 0x6b6cb2c4
mov edi, dword [esp + 0x40]
push edi
call fcn.6b534490
add esp, 4
push edi
call fcn.6b534600
add esp, 4
mov ebx, eax
push edi
call fcn.6b534600
add esp, 4
mov ebp, eax
push edi
call fcn.6b534600
add esp, 4
mov dword [esp], eax
test eax, eax
je 0x6b6cb70e
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push ebx
call fcn.6b6c9bd0
add esp, 0xc
test eax, eax
je 0x6b6cb70e
push ebx
call fcn.6b5370f0
add esp, 4
test eax, eax
je 0x6b6cb2d7
push esi
call fcn.6b538180
add esp, 4
mov ebx, 1
jmp 0x6b6cb710
push esi
call fcn.6b538180
add esp, 4
mov ebx, 1
jmp 0x6b6cb719
mov eax, dword [esp + 0x3c]
test byte [eax], 1
mov dword [esp + 4], ebp
mov dword [esp + 0xc], ebx
jne 0x6b6cb580
push edi
call fcn.6b534600
add esp, 4
mov esi, eax
push edi
call fcn.6b534600
add esp, 4
mov dword [esp + 8], eax
push edi
call fcn.6b534600
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x6b6cb70e
mov dword [esp + 0x10], esi
xor ecx, ecx
mov dword [esp + 0x14], ecx
push edi
push 0
push 0
push 0
mov esi, dword [esp + 0x4c]
push dword [esi]
mov esi, dword [esp + 0x24]
push esi
call fcn.6b53a7d0
add esp, 0x18
test eax, eax
je 0x6b6cb70e
push dword [esp + 0x3c]
push esi
push esi
call fcn.6b6c9bd0
add esp, 0xc
test eax, eax
je 0x6b6cb70e
push ebp
call fcn.6b538180
add esp, 4
push esi
push dword [esp + 4]
call fcn.6b5374f0
add esp, 8
test eax, eax
je 0x6b6cb70e
mov esi, dword [esp + 0x3c]
cmp dword [esi], 2
jl 0x6b6cb523
mov eax, 1
jmp 0x6b6cb3b9
mov eax, dword [esp]
mov dword [eax + 4], esi
push eax
call fcn.6b537830
add esp, 4
mov eax, dword [esp + 0x1c]
inc eax
mov esi, dword [esp + 0x3c]
cmp eax, dword [esi]
mov edi, dword [esp + 0x40]
mov ebp, dword [esp + 4]
mov ebx, dword [esp + 0xc]
jge 0x6b6cb523
mov dword [esp + 0x1c], eax
push edi
push esi
push ebp
push ebp
call fcn.6b6ca180
add esp, 0x10
test eax, eax
je 0x6b6cb70e
push edi
push esi
push dword [esp + 8]
mov ebp, dword [esp + 0x14]
push ebp
call fcn.6b6ca180
add esp, 0x10
test eax, eax
je 0x6b6cb70e
push edi
push esi
push ebx
push ebp
mov esi, dword [esp + 0x28]
push esi
call fcn.6b6c9fd0
add esp, 0x14
test eax, eax
je 0x6b6cb70e
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 4]
cmp eax, dword [esi + 4]
mov ebp, ecx
cmovl ebp, esi
mov ebx, esi
cmovl ebx, ecx
push dword [ebp + 4]
push ecx
call fcn.6b537550
add esp, 8
test eax, eax
je 0x6b6cb703
cmp dword [ebx + 4], 0
jle 0x6b6cb458
mov ecx, dword [ebp]
mov edx, dword [ebx]
mov eax, dword [esp + 4]
mov esi, dword [eax]
xor eax, eax
mov edi, dword [edx + eax*4]
xor edi, dword [ecx + eax*4]
mov dword [esi + eax*4], edi
inc eax
cmp eax, dword [ebx + 4]
jl 0x6b6cb440
mov esi, dword [ebp + 4]
cmp eax, esi
jl 0x6b6cb461
jmp 0x6b6cb47e
xor eax, eax
mov esi, dword [ebp + 4]
cmp eax, esi
jge 0x6b6cb47e
mov ecx, dword [ebp]
mov edx, dword [esp + 4]
mov edx, dword [edx]
nop
nop
nop
nop
nop
nop
mov esi, dword [ecx + eax*4]
mov dword [edx + eax*4], esi
inc eax
mov esi, dword [ebp + 4]
cmp eax, esi
jl 0x6b6cb470
mov eax, dword [esp + 4]
mov dword [eax + 4], esi
push eax
call fcn.6b537830
add esp, 4
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 4]
mov ebp, ecx
cmovl ebp, ebx
cmovl ebx, ecx
push dword [ebp + 4]
mov esi, dword [esp + 4]
push esi
call fcn.6b537550
add esp, 8
test eax, eax
je 0x6b6cb703
cmp dword [ebx + 4], 0
jle 0x6b6cb4ec
mov ecx, dword [ebp]
mov edx, dword [ebx]
mov esi, dword [esi]
xor eax, eax
nop
mov edi, dword [edx + eax*4]
xor edi, dword [ecx + eax*4]
mov dword [esi + eax*4], edi
inc eax
cmp eax, dword [ebx + 4]
jl 0x6b6cb4d0
mov esi, dword [ebp + 4]
cmp eax, esi
jge 0x6b6cb38d
jmp 0x6b6cb4f9
xor eax, eax
mov esi, dword [ebp + 4]
cmp eax, esi
jge 0x6b6cb38d
mov ecx, dword [ebp]
mov edx, dword [esp]
mov edx, dword [edx]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, dword [ecx + eax*4]
mov dword [edx + eax*4], esi
inc eax
mov esi, dword [ebp + 4]
cmp eax, esi
jl 0x6b6cb510
jmp 0x6b6cb38d
push dword [esp]
call fcn.6b5370f0
add esp, 4
mov ecx, dword [esp + 0x14]
cmp ecx, 0x30
ja 0x6b6cb540
inc ecx
test eax, eax
jne 0x6b6cb31f
mov esi, dword [esp]
push esi
call fcn.6b5370f0
add esp, 4
test eax, eax
mov edx, dword [esp + 0x3c]
je 0x6b6cb59e
call fcn.6b5620e0
push str.BN_GF2m_mod_solve_quad_arr
push 0
push 0x6b7d0bde
call fcn.6b5621e0
add esp, 0xc
push 0
push 0x71
push 3
call fcn.6b562290
add esp, 0xc
jmp 0x6b6cb70e
push ebx
push ebp
call fcn.6b5374f0
add esp, 8
test eax, eax
mov esi, dword [esp]
je 0x6b6cb70e
mov edx, dword [esp + 0x3c]
cmp dword [edx], 3
jge 0x6b6cb609
push edi
push edx
push ebp
push esi
call fcn.6b6ca180
add esp, 0x10
test eax, eax
mov ebx, 0
je 0x6b6cb710
mov eax, dword [ebp + 4]
cmp eax, dword [esi + 4]
mov ecx, esi
mov esi, ebp
cmovl esi, ecx
mov eax, ebp
mov ebp, ecx
cmovl ebp, eax
push dword [esi + 4]
push ecx
call fcn.6b537550
add esp, 8
test eax, eax
je 0x6b6cb710
cmp dword [ebp + 4], 0
jle 0x6b6cb723
mov ecx, dword [esi]
mov edx, dword [ebp]
mov eax, dword [esp]
mov ebx, dword [eax]
xor eax, eax
mov edi, dword [edx + eax*4]
xor edi, dword [ecx + eax*4]
mov dword [ebx + eax*4], edi
inc eax
cmp eax, dword [ebp + 4]
jl 0x6b6cb5f5
jmp 0x6b6cb725
mov eax, 1
jmp 0x6b6cb648
mov dword [ebp + 4], ebx
push ebp
call fcn.6b537830
add esp, 4
mov edx, dword [esp + 0x3c]
mov eax, dword [edx]
lea ecx, [eax - 1]
shr ecx, 0x1f
lea eax, [eax + ecx - 1]
sar eax, 1
mov ecx, dword [esp + 8]
cmp ecx, eax
lea eax, [ecx + 1]
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0xc]
mov esi, dword [esp]
jge 0x6b6cb59e
mov dword [esp + 8], eax
push edi
push edx
push ebp
push ebp
mov esi, edx
call fcn.6b6ca180
add esp, 0x10
test eax, eax
je 0x6b6cb70e
push edi
push esi
push ebp
push ebp
call fcn.6b6ca180
add esp, 0x10
test eax, eax
je 0x6b6cb70e
mov eax, dword [ebp + 4]
cmp eax, dword [ebx + 4]
mov esi, ebp
cmovl esi, ebx
cmovl ebx, ebp
push dword [esi + 4]
push ebp
call fcn.6b537550
add esp, 8
test eax, eax
je 0x6b6cb70a
cmp dword [ebx + 4], 0
jle 0x6b6cb6d1
mov ecx, dword [esi]
mov edx, dword [ebx]
mov ebp, dword [ebp]
xor eax, eax
nop
nop
nop
nop
nop
mov edi, dword [edx + eax*4]
xor edi, dword [ecx + eax*4]
mov dword [ebp + eax*4], edi
inc eax
cmp eax, dword [ebx + 4]
jl 0x6b6cb6b0
mov ebx, dword [esi + 4]
cmp eax, ebx
mov ebp, dword [esp + 4]
jge 0x6b6cb610
jmp 0x6b6cb6e2
xor eax, eax
mov ebx, dword [esi + 4]
cmp eax, ebx
mov ebp, dword [esp + 4]
jge 0x6b6cb610
mov ecx, dword [esi]
mov edx, dword [ebp]
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edi, dword [ecx + eax*4]
mov dword [edx + eax*4], edi
inc eax
mov ebx, dword [esi + 4]
cmp eax, ebx
jl 0x6b6cb6f0
jmp 0x6b6cb610
xor ebx, ebx
jmp 0x6b6cb7a4
mov edi, dword [esp + 0x40]
xor ebx, ebx
push edi
call fcn.6b534580
add esp, 4
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ebx, dword [esi + 4]
cmp eax, ebx
jge 0x6b6cb741
mov ecx, dword [esi]
mov edx, dword [esp]
mov edx, dword [edx]
mov edi, dword [ecx + eax*4]
mov dword [edx + eax*4], edi
inc eax
mov ebx, dword [esi + 4]
cmp eax, ebx
jl 0x6b6cb733
mov esi, dword [esp]
mov dword [esi + 4], ebx
push esi
call fcn.6b537830
add esp, 4
push dword [esp + 0xc]
push esi
call fcn.6b537cf0
add esp, 8
test eax, eax
mov eax, dword [esp + 4]
je 0x6b6cb790
call fcn.6b5620e0
push str.BN_GF2m_mod_solve_quad_arr
push 0
push 0x6b7d0bde
call fcn.6b5621e0
add esp, 0xc
push 0
push 0x74
push 3
call fcn.6b562290
add esp, 0xc
xor ebx, ebx
jmp 0x6b6cb7a4
push eax
push dword [esp + 0x38]
call fcn.6b5374f0
add esp, 8
xor ebx, ebx
test eax, eax
setne bl
mov edi, dword [esp + 0x40]
jmp 0x6b6cb710