Function at 0x82ebd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [esp + 0x2c]
mov edi, ecx
mov ebx, edx
mov ecx, dword [eax + 0x14]
mov ebp, dword [eax + 0x28]
cmp ecx, 1
mov dword [esp + 4], ecx
jne 0x82ec3a
movsx eax, word [ebx + 0x28]
test eax, eax
jns 0x82ec07
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], edi
mov dword [esp], 0
jmp 0x82ec6e
test ebp, ebp
je 0x82eda1
mov ecx, dword [ebx + 4]
lea eax, [eax + eax*4]
mov edx, ebp
mov ecx, dword [ecx + eax*4]
call fcn.00783720
xor ecx, ecx
test eax, eax
je 0x82f155
mov dword [esp + 0x10], ebp
mov dword [esp], 0
mov dword [esp + 0xc], edi
jmp 0x82ec6a
mov esi, dword [esp + 0x34]
test esi, esi
je 0x82ebf6
lea edx, [ecx*4]
mov ecx, dword [edi]
push 0
call fcn.007995d0
add esp, 4
test eax, eax
je 0x82f150
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], edi
mov dword [esp], eax
mov dword [esi], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x14], ebx
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x82eecb
mov ebp, fcn.008152a0
imul ebp, ebp
and ebp, 3
movzx eax, word [ebx + 0x32]
cmp ecx, eax
jne 0x82eec0
cmp byte [ebx + 0x36], 0
je 0x82eec0
cmp dword [ebx + 0x24], 0
jne 0x82eec0
cmp dword [esp + 0x10], 0
je 0x82ed6b
xor edx, edx
test ecx, ecx
jle 0x82eeb8
mov eax, dword [ebx + 4]
movsx edi, word [eax + edx*2]
test edi, edi
js 0x82eeb8
xor eax, eax
cmp ebp, 2
mov dword [esp + 8], edx
sete al
movzx edx, byte [0xbb3b93]
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jb 0x82ee31
mov al, byte [0xbb3b93]
xor edx, edx
cmp ebp, 2
sete dl
mov ecx, edx
xor ecx, 1
lea ecx, [edx + ecx*2 + 6]
mov dl, 1
and cl, 7
xor cl, 7
shl dl, cl
or dl, al
lock cmpxchg byte [0xbb3b93], dl
jne 0x82ecfb
xor ecx, ecx
cmp ebp, 2
movzx eax, al
sete cl
mov edx, ecx
xor edx, 1
lea ecx, [ecx + edx*2 + 6]
and cl, 7
xor cl, 7
movzx ecx, cl
bt eax, ecx
jae 0x82eda8
xor eax, eax
cmp ebp, 2
movzx edx, byte [0xbb3b93]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jae 0x82ed44
jmp 0x82ee31
mov eax, dword [ebx + 0x38]
and eax, 3
cmp eax, 2
jne 0x82eec0
test ecx, ecx
jle 0x82ed9b
cmp dword [esp], 0
je 0x82ed9b
mov edx, dword [esp]
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx + eax*8 + 0x24]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, dword [esp + 4]
jne 0x82ed89
mov eax, dword [esp + 0x30]
mov dword [eax], ebx
xor ecx, ecx
jmp 0x82f155
xor eax, eax
cmp ebp, 2
movzx edx, byte [0xbb3b93]
sete al
mov ecx, eax
xor ecx, 1
lea eax, [eax + ecx*2 + 6]
and al, 7
movzx eax, al
bt edx, eax
jb 0x82ee10
xor eax, eax
cmp ebp, 2
mov esi, dword [str.2_p0]
sete al
mov ecx, eax
not ecx
and ecx, 0x211
lea ecx, [eax + ecx*2 + 0x713e5c4e]
mov edx, ecx
xor esi, ecx
shr edx, 0x1f
mov dword [str.2_p0], esi
not esi
or edx, ecx
and cl, 7
imul edx, esi
xor dword [0xbb3b8c], edx
mov dl, 1
shl dl, cl
or byte [0xbb3b93], dl
xor eax, eax
cmp ebp, 2
sete al
mov ecx, eax
xor ecx, 1
lea ecx, [eax + ecx*2 + 6]
mov al, 0xfe
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb3b93], al
mov eax, dword [esp + 0x14]
lea edi, [edi + edi*4]
mov ecx, dword [esp + 8]
mov esi, dword [eax + 4]
mov eax, str.2_p0
mov edx, dword [esi + edi*4 + 8]
test edx, edx
cmove edx, eax
mov eax, dword [ebx + 0x20]
mov ecx, dword [eax + ecx*4]
call fcn.00783720
test eax, eax
je 0x82ee66
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
jmp 0x82eeb8
mov esi, dword [esi + edi*4]
xor edi, edi
mov eax, dword [esp + 0x2c]
mov edx, esi
mov ecx, dword [eax + edi*8 + 0x28]
call fcn.00783720
test eax, eax
jne 0x82ee96
mov ecx, dword [esp]
test ecx, ecx
je 0x82ee9d
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 8]
mov eax, dword [eax + edi*8 + 0x24]
mov dword [ecx + edx*4], eax
jmp 0x82ee9d
inc edi
cmp edi, dword [esp + 4]
jl 0x82ee6b
mov ecx, dword [esp + 4]
cmp edi, ecx
jne 0x82eeab
mov edx, dword [esp + 8]
jmp 0x82eeb8
mov edx, dword [esp + 8]
inc edx
cmp edx, ecx
jl 0x82ecbd
cmp edx, ecx
je 0x82ed9b
mov ebx, dword [ebx + 0x14]
test ebx, ebx
jne 0x82ec88
mov edi, dword [esp + 0xc]
mov ebp, dword [esp]
cmp byte [edi + 0x92], 0
jne 0x82f147
mov edx, fcn.007cbaa0
xor eax, eax
movzx esi, byte [0xbba4b3]
imul edx, edx
and edx, 3
cmp edx, 1
seta al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt esi, eax
jb 0x82f12c
mov al, byte [0xbba4b3]
xor ecx, ecx
cmp edx, 1
mov ah, 1
seta cl
mov ebx, ecx
xor ebx, 3
lea ecx, [ebx + ecx*2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbba4b3], ah
jne 0x82ef0f
mov ecx, fcn.007cbaa0
xor edx, edx
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 1
seta dl
mov ebx, edx
xor ebx, 3
lea edx, [ebx + edx*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x82ef7c
xor eax, eax
cmp ecx, 1
movzx esi, byte [0xbba4b3]
seta al
mov edx, eax
xor edx, 3
lea eax, [edx + eax*2]
bt esi, eax
jae 0x82ef5b
jmp 0x82f12c
xor eax, eax
cmp ecx, 1
movzx edx, byte [0xbba4b3]
seta al
mov ecx, eax
xor ecx, 3
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x82f104
mov eax, fcn.007cbaa0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
seta cl
mov eax, ecx
xor eax, 0xd16846db
lea ecx, [eax + ecx*2 + 0x1248]
mov eax, dword [0xbba480]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbba480], eax
not eax
imul edx, eax
mov eax, dword [0xbba484]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbba484], eax
or esi, edx
not eax
mov edx, dword [0xbba488]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbba488], edx
or esi, eax
not edx
mov eax, dword [0xbba48c]
imul edx, esi
lea esi, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbba48c], eax
or esi, edx
not eax
mov edx, dword [0xbba490]
imul eax, esi
mov esi, eax
shl esi, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbba490], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbba494]
mov esi, edx
shl esi, 5
xor eax, edx
shr edx, 0x1a
mov dword [0xbba494], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbba498]
mov esi, eax
shl esi, 6
xor edx, eax
shr eax, 0x19
mov dword [0xbba498], edx
or eax, esi
not edx
imul edx, eax
mov eax, dword [0xbba49c]
mov esi, edx
shl esi, 7
xor eax, edx
shr edx, 0x18
mov dword [0xbba49c], eax
or edx, esi
not eax
imul eax, edx
mov edx, dword [0xbba4a0]
mov esi, eax
shl esi, 8
xor edx, eax
shr eax, 0x17
mov dword [0xbba4a0], edx
or eax, esi
not edx
mov ebx, dword [0xbba4a4]
imul edx, eax
mov esi, edx
shl esi, 9
xor ebx, edx
shr edx, 0x16
mov dword [0xbba4a4], ebx
or edx, esi
not ebx
imul ebx, edx
mov edx, dword [0xbba4a8]
mov esi, ebx
shl esi, 0xa
xor edx, ebx
shr ebx, 0x15
mov dword [0xbba4a8], edx
or ebx, esi
not edx
imul edx, ebx
xor dword [0xbba4ac], edx
mov dl, 1
shl dl, cl
or byte [0xbba4b3], dl
mov eax, fcn.007cbaa0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
seta cl
mov eax, ecx
xor eax, 3
lea ecx, [eax + ecx*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbba4b3], al
mov eax, dword [esp + 0x2c]
mov ecx, eax
mov eax, dword [eax]
push dword [ecx + 8]
push dword [eax]
push 0xbba480
push edi
call fcn.0078de60
add esp, 0x10
mov ecx, dword [edi]
mov edx, ebp
call fcn.00780810
mov ecx, 1
mov eax, ecx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret