Function at 0x79a710
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov edi, dword [esp + 0x40]
xor ebp, ebp
cmp dword [edi + 0x24], 0
jg 0x79abdb
mov eax, dword [edi + 0x20]
mov esi, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
test eax, eax
jle 0x79a752
mov ecx, eax
sar ecx, 0x1f
add ebx, eax
adc esi, ecx
add ebx, 0xffffffff
adc esi, 0xffffffff
push ecx
push eax
push esi
push ebx
call fcn.0098a120
sub ebx, eax
sbb esi, edx
cmp dword [edi + 0x2c], 0
jne 0x79a76a
mov dword [esp + 8], 0
mov dword [esp + 4], 0
jmp 0x79a778
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov ecx, edi
call fcn.0079c5f0
mov ecx, edi
mov edx, ebx
push esi
call fcn.0079d6b0
add esp, 4
test eax, eax
jne 0x79a846
mov ecx, fcn.007a2d90
mov eax, fcn.007a2d90
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
or ecx, 2
xor eax, 2
mov dword [esp + 0x20], ecx
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
xor edx, edx
mov edi, dword [ecx*4 + 0xb559d0]
mov esi, dword [ecx*4 + 0xb55b10]
mov dword [esp + 0x28], ecx
add eax, dword [esp + 0x1c]
mov eax, 1
sete dl
or edx, 0xb1200224
add edx, 0xaa0
xor edx, dword [ecx*4 + 0xb53790]
mov ecx, edx
and cl, 7
movzx ebx, cl
shl eax, cl
xor cl, 7
mov dword [esp], ebx
mov ebx, 1
shl ebx, cl
movzx ecx, byte [edi + esi - 1]
mov ebp, dword [esp]
bt ecx, ebp
jb 0x79aa09
mov dword [esp + 0xc], eax
mov al, byte [edi + esi - 1]
mov ecx, eax
or cl, bl
lock cmpxchg byte [edi + esi - 1], cl
jne 0x79a81d
mov ecx, dword [esp + 0xc]
movzx eax, al
test ebx, eax
je 0x79a9b0
movzx eax, byte [edi + esi - 1]
test ecx, eax
je 0x79a838
jmp 0x79aa09
mov edx, fcn.00788580
movzx ecx, byte [0xbb4863]
imul edx, edx
and edx, 3
cmp edx, 2
sete al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x79a989
mov al, byte [0xbb4863]
cmp edx, 2
mov ah, 1
sete cl
or cl, 6
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb4863], ah
jne 0x79a871
mov ecx, fcn.00788580
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete dl
or dl, 6
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x79a8cb
cmp ecx, 2
movzx edx, byte [0xbb4863]
sete al
or al, 6
movzx eax, al
bt edx, eax
jae 0x79a8af
jmp 0x79a989
cmp ecx, 2
movzx edx, byte [0xbb4863]
sete al
or al, 6
movzx eax, al
bt edx, eax
jb 0x79a968
mov eax, fcn.00788580
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
mov eax, dword [0xbb4850]
sete cl
or ecx, 0x9761ca36
add ecx, 0xa80
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb4850], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbb4854]
lea esi, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb4854], eax
or esi, edx
not eax
mov edx, dword [0xbb4858]
imul eax, esi
lea esi, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb4858], edx
or esi, eax
not edx
mov al, 1
imul edx, esi
shl al, cl
xor dword [0xbb485c], edx
or byte [0xbb4863], al
mov eax, fcn.00788580
imul eax, eax
and eax, 3
cmp eax, 2
mov al, 0xfe
sete cl
or cl, 6
xor cl, 7
rol al, cl
and byte [0xbb4863], al
mov edx, dword [edi + 0x14]
mov ebp, 0x60a
mov ecx, 0x60a
push 0x2dcf
push dword [edi + 0x1c]
push 0xbb4850
call fcn.0079cac0
add esp, 0xc
jmp 0x79abdb
mov dword [esp + 0x18], ebx
movzx eax, byte [edi + esi - 1]
test ecx, eax
jne 0x79a9ff
lea ecx, [esi - 4]
shr ecx, 2
je 0x79a9f7
xor eax, eax
mov ebx, edi
mov dword [esp + 0x24], ecx
mov ebp, dword [ebx]
mov ecx, eax
mov dword [esp], edx
inc eax
shl dword [esp], cl
and cl, 0x1f
xor cl, 0x1f
xor ebp, edx
shr edx, cl
mov ecx, dword [esp + 0x24]
or edx, dword [esp]
mov dword [ebx], ebp
not ebp
add ebx, 4
imul edx, ebp
cmp eax, ecx
jne 0x79a9cd
mov eax, dword [esp + 0xc]
or byte [edi + esi - 1], al
mov eax, dword [esp + 0x18]
not al
and byte [edi + esi - 1], al
mov ecx, dword [esp + 0x28]
inc ecx
cmp ecx, 0x50
jne 0x79a7b6
mov edi, dword [esp + 0x40]
push dword [edi + 8]
call dword [0xbb36fc]
test eax, eax
jne 0x79aba7
call dword [0xbb35b8]
cmp eax, 0x4c8
je 0x79aba7
mov esi, fcn.0081c6e0
movzx ecx, byte [0xbb4883]
mov edx, eax
imul esi, esi
and esi, 3
cmp esi, 2
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x79ab88
mov al, byte [0xbb4883]
cmp esi, 2
mov ah, 1
sete cl
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb4883], ah
jne 0x79aa6a
mov ecx, fcn.0081c6e0
movzx esi, al
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete ah
or ah, 4
xor ah, 7
movzx eax, ah
bt esi, eax
jae 0x79aac4
cmp ecx, 2
movzx esi, byte [0xbb4883]
sete al
or al, 4
movzx eax, al
bt esi, eax
jae 0x79aaa8
jmp 0x79ab88
cmp ecx, 2
movzx esi, byte [0xbb4883]
sete al
or al, 4
movzx eax, al
bt esi, eax
jb 0x79ab67
mov eax, fcn.0081c6e0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 2
mov eax, dword [0xbb4870]
sete cl
or ecx, 0xf2485a48
add ecx, 0xa64
mov esi, ecx
xor eax, ecx
shr esi, 0x1f
mov dword [0xbb4870], eax
not eax
or esi, ecx
and cl, 7
imul esi, eax
mov eax, dword [0xbb4874]
mov ebx, esi
lea edi, [esi + esi]
shr ebx, 0x1e
or edi, ebx
xor eax, esi
mov dword [0xbb4874], eax
not eax
mov esi, dword [0xbb4878]
imul eax, edi
lea edi, [eax*4]
xor esi, eax
shr eax, 0x1d
mov dword [0xbb4878], esi
or edi, eax
not esi
mov al, 1
imul esi, edi
mov edi, dword [esp + 0x40]
shl al, cl
xor dword [0xbb487c], esi
or byte [0xbb4883], al
mov eax, fcn.0081c6e0
imul eax, eax
and eax, 3
cmp eax, 2
mov al, 0xfe
sete cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbb4883], al
mov ebp, 0x60a
mov ecx, 0x60a
mov dword [edi + 0x14], edx
push 0x2dd4
push dword [edi + 0x1c]
push 0xbb4870
jmp 0x79a9a3
mov esi, dword [esp + 4]
mov edx, dword [esp + 8]
xor ebp, ebp
cmp edx, 1
mov eax, esi
sbb eax, 0
jl 0x79abdb
cmp dword [esp + 0x10], edx
sbb dword [esp + 0x14], esi
jge 0x79abd0
mov ecx, edi
mov edx, 0xffffffff
push 0xffffffffffffffff
jmp 0x79abd3
mov ecx, edi
push esi
call fcn.0079d9c0
add esp, 4
mov eax, ebp
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret