Function at 0x92c450
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov dword [esp + 0x58], eax
mov dword [esp + 0x4c], edx
mov esi, ecx
cmp dword [eax + 8], edx
jl 0x92c6de
cmp dword [esp + 0x84], 3
jg 0x92c560
mov edx, dword [esp + 0x4c]
test edx, edx
jle 0x92c714
mov edi, 1
mov cl, byte [esp + 0x84]
shl edi, cl
mov eax, dword [esp + 0x58]
mov eax, dword [eax]
mov ebx, eax
mov dword [esp + 0x5c], eax
mov eax, 4
shl eax, cl
mov dword [esp + 0x28], eax
mov eax, ebx
mov dword [esp + 0x1c], ebx
lea eax, [eax + edx*4]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], esi
lea esi, [esi]
test edi, edi
jle 0x92c700
mov esi, dword [esp + 0x20]
xor ebp, ebp
xor ebx, ebx
mov ecx, dword [esi]
mov edx, dword [esp + 0x80]
xor edx, ebx
lea eax, [edx - 1]
not edx
and edx, eax
sar edx, 0x1f
and ecx, edx
or ebp, ecx
inc ebx
add esi, 4
cmp edi, ebx
jne 0x92c4d0
mov eax, dword [esp + 0x1c]
mov dword [eax], ebp
mov esi, dword [esp + 0x28]
add dword [esp + 0x20], esi
add eax, 4
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x24], eax
jne 0x92c4c0
mov edi, dword [esp + 0x58]
mov edx, dword [esp + 0x4c]
mov dword [edi + 4], edx
mov edi, dword [esp + 0x5c]
lea eax, [edi + edx*4 - 4]
nop
sub eax, 4
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x92c52d
dec edx
jne 0x92c520
mov dword [esp + 0x4c], edx
mov edi, dword [esp + 0x58]
mov dword [edi + 4], edx
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x92c707
mov eax, dword [esp + 0x58]
mov dword [eax + 0xc], 0
mov eax, 1
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x84]
lea ebx, [eax - 2]
mov eax, 1
mov cl, bl
shl eax, cl
mov dword [esp + 0x20], eax
dec eax
and eax, dword [esp + 0x80]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x80]
sar eax, cl
mov ecx, eax
not eax
lea edx, [ecx - 1]
and eax, edx
cdq
mov dword [esp + 0x28], edx
mov eax, ecx
xor eax, 1
dec eax
mov edx, ecx
xor edx, 0xfffffffe
and eax, edx
cdq
mov dword [esp + 0x2c], edx
mov eax, ecx
xor eax, 2
dec eax
mov edx, ecx
xor edx, 0xfffffffd
and eax, edx
cdq
mov dword [esp + 0x30], edx
mov edx, ecx
xor edx, 3
dec edx
mov eax, ecx
xor eax, 0xfffffffc
and eax, edx
cdq
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x4c]
test edx, edx
jle 0x92c714
mov eax, dword [esp + 0x58]
mov eax, dword [eax]
mov edi, eax
mov dword [esp + 0x5c], eax
mov eax, 4
mov ebp, eax
mov cl, byte [esp + 0x84]
shl ebp, cl
mov dword [esp + 0x54], ebp
mov dword [esp + 0x44], edi
lea edi, [edi + edx*4]
mov dword [esp + 0x50], edi
mov cl, bl
shl eax, cl
mov dword [esp + 0x40], eax
mov eax, 8
shl eax, cl
mov dword [esp + 0x3c], eax
mov eax, 0xc
shl eax, cl
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], esi
mov ebx, dword [esp + 0x20]
test ebx, ebx
jle 0x92c6d4
lea esi, [esi]
lea edi, [edi]
mov edi, dword [esp + 0x48]
mov dword [esp + 0x1c], 0
xor ebp, ebp
nop
mov eax, dword [edi]
mov esi, dword [esp + 0x40]
lea edx, [esi + edi]
mov esi, dword [edx]
mov ebx, dword [esp + 0x3c]
lea edx, [ebx + edi]
mov edx, dword [edx]
mov ebx, dword [esp + 0x38]
lea ecx, [ebx + edi]
mov ebx, dword [ecx]
mov ecx, dword [esp + 0x24]
xor ecx, ebp
and esi, dword [esp + 0x2c]
and edx, dword [esp + 0x30]
or edx, esi
and eax, dword [esp + 0x28]
or eax, edx
and ebx, dword [esp + 0x34]
or eax, ebx
mov edx, ecx
not edx
dec ecx
and ecx, edx
sar ecx, 0x1f
mov edx, ecx
and edx, eax
or dword [esp + 0x1c], edx
inc ebp
add edi, 4
cmp dword [esp + 0x20], ebp
jne 0x92c650
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x1c]
mov dword [eax], edi
mov ebx, dword [esp + 0x54]
add dword [esp + 0x48], ebx
add eax, 4
mov dword [esp + 0x44], eax
cmp dword [esp + 0x50], eax
je 0x92c50c
mov ebx, dword [esp + 0x20]
test ebx, ebx
jg 0x92c640
mov dword [esp + 0x1c], 0
jmp 0x92c6a5
mov dword [esp + 4], edx
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call fcn.0092fa10
test eax, eax
jne 0x92c46a
xor eax, eax
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebp, ebp
jmp 0x92c4f1
mov eax, 1
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x4c]
mov dword [eax + 4], edi
jmp 0x92c538