Function at 0x7ea590
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov edi, dword [ecx]
mov ebx, edx
cmp byte [edi + 0x51], 0
jne 0x7eac7b
mov esi, ecx
lea eax, [ebx + 8]
xor edx, edx
push eax
call fcn.00800830
add esp, 4
test eax, eax
je 0x7eac7b
cmp dword [eax + 0x38], 0
mov ebp, eax
je 0x7ea7d6
mov edx, fcn.007a3b00
movzx ecx, byte [0xbb44f7]
and edx, 1
inc edx
mov eax, edx
xor eax, fcn.007a3b00
sete al
not al
add al, 0x20
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7ea7c3
mov al, byte [0xbb44f7]
mov ecx, edx
mov ah, 1
xor ecx, fcn.007a3b00
sete cl
not cl
add cl, 0x20
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb44f7], ah
jne 0x7ea5fa
mov ecx, fcn.007a3b00
movzx eax, al
and ecx, 1
inc ecx
mov edx, ecx
xor edx, fcn.007a3b00
sete dl
not dl
add dl, 0x20
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7ea66e
mov eax, ecx
movzx edx, byte [0xbb44f7]
xor eax, fcn.007a3b00
sete al
not al
add al, 0x20
and al, 7
movzx eax, al
bt edx, eax
jae 0x7ea64a
jmp 0x7ea7c3
xor ecx, fcn.007a3b00
movzx ecx, byte [0xbb44f7]
sete al
not al
add al, 0x20
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7ea79d
mov eax, fcn.007a3b00
xor ecx, ecx
and eax, 1
inc eax
xor eax, fcn.007a3b00
mov eax, dword [0xbb44d0]
sete cl
xor ecx, 0xf836238f
or ecx, 0x1020
xor eax, ecx
and cl, 7
mov dword [0xbb44d0], eax
not eax
mov edx, dword [0xbb44d4]
imul eax, eax, 0xf83633af
lea ebp, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb44d4], edx
or eax, ebp
not edx
imul edx, eax
mov eax, dword [0xbb44d8]
lea ebp, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbb44d8], eax
or edx, ebp
not eax
imul eax, edx
mov edx, dword [0xbb44dc]
lea ebp, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbb44dc], edx
or eax, ebp
not edx
imul edx, eax
mov eax, dword [0xbb44e0]
mov ebp, edx
shl ebp, 4
xor eax, edx
shr edx, 0x1b
mov dword [0xbb44e0], eax
or edx, ebp
not eax
imul eax, edx
mov edx, dword [0xbb44e4]
mov ebp, eax
shl ebp, 5
xor edx, eax
shr eax, 0x1a
mov dword [0xbb44e4], edx
or eax, ebp
not edx
imul edx, eax
mov eax, dword [0xbb44e8]
mov ebp, edx
shl ebp, 6
xor eax, edx
shr edx, 0x19
mov dword [0xbb44e8], eax
or edx, ebp
not eax
imul eax, edx
mov edx, dword [0xbb44ec]
mov ebp, eax
shl ebp, 7
xor edx, eax
shr eax, 0x18
mov dword [0xbb44ec], edx
or eax, ebp
not edx
imul edx, eax
xor dword [0xbb44f0], edx
mov dl, 1
shl dl, cl
or byte [0xbb44f7], dl
mov eax, fcn.007a3b00
and eax, 1
inc eax
xor eax, fcn.007a3b00
mov al, 0xfe
sete cl
not cl
add cl, 0x20
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb44f7], al
push 0xbb44d0
push esi
call fcn.00782570
add esp, 8
jmp 0x7eac7b
cmp dword [ebp + 0xc], 0
je 0x7ea9e3
mov edx, 0x789630
xor eax, eax
movzx ebp, byte [0xbb4523]
and edx, 1
inc edx
mov ecx, edx
xor ecx, 0x789630
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2]
bt ebp, eax
jb 0x7ea9d9
mov al, byte [0xbb4523]
mov dword [esp], ebx
mov ebp, edx
xor ebx, ebx
mov ah, 1
xor ebp, 0x789630
sete bl
mov ecx, ebx
xor ecx, 5
lea ecx, [ecx + ebx*2]
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb4523], ah
jne 0x7ea816
mov ecx, 0x789630
xor edx, edx
movzx eax, al
and ecx, 1
inc ecx
mov ebx, ecx
xor ebx, 0x789630
sete dl
mov ebx, edx
xor ebx, 5
lea edx, [ebx + edx*2]
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7ea893
mov ebx, dword [esp]
mov edx, ecx
xor eax, eax
movzx ebp, byte [0xbb4523]
xor edx, 0x789630
sete al
mov edx, eax
xor edx, 5
lea eax, [edx + eax*2]
bt ebp, eax
jae 0x7ea86d
jmp 0x7ea9d9
xor eax, eax
xor ecx, 0x789630
movzx edx, byte [0xbb4523]
mov ebx, dword [esp]
sete al
mov ecx, eax
xor ecx, 5
lea eax, [ecx + eax*2]
bt edx, eax
jb 0x7ea9b1
mov eax, 0x789630
xor ecx, ecx
and eax, 1
inc eax
xor eax, 0x789630
sete cl
mov eax, ecx
xor eax, 0x6aa8a755
lea ecx, [eax + ecx*2 + 0x40]
mov eax, dword [0xbb4500]
mov edx, ecx
shr edx, 0x1f
or edx, ecx
xor eax, ecx
and cl, 7
mov dword [0xbb4500], eax
not eax
imul edx, eax
mov eax, dword [0xbb4504]
lea ebx, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbb4504], eax
or ebx, edx
not eax
mov edx, dword [0xbb4508]
imul eax, ebx
lea ebx, [eax*4]
xor edx, eax
shr eax, 0x1d
mov dword [0xbb4508], edx
or ebx, eax
not edx
mov eax, dword [0xbb450c]
imul edx, ebx
lea ebx, [edx*8]
xor eax, edx
shr edx, 0x1c
mov dword [0xbb450c], eax
or ebx, edx
not eax
mov edx, dword [0xbb4510]
imul eax, ebx
mov ebx, eax
shl ebx, 4
xor edx, eax
shr eax, 0x1b
mov dword [0xbb4510], edx
or eax, ebx
not edx
mov ebp, dword [0xbb4514]
imul edx, eax
mov ebx, edx
shl ebx, 5
xor ebp, edx
shr edx, 0x1a
mov dword [0xbb4514], ebp
or edx, ebx
not ebp
imul ebp, edx
mov edx, dword [0xbb4518]
mov ebx, ebp
shl ebx, 6
xor edx, ebp
shr ebp, 0x19
mov dword [0xbb4518], edx
or ebp, ebx
not edx
mov ebx, dword [esp]
imul edx, ebp
xor dword [0xbb451c], edx
mov dl, 1
shl dl, cl
or byte [0xbb4523], dl
mov eax, 0x789630
xor ecx, ecx
and eax, 1
inc eax
xor eax, 0x789630
sete cl
mov eax, ecx
xor eax, 5
lea ecx, [eax + ecx*2]
mov al, 0xfe
xor cl, 7
rol al, cl
and byte [0xbb4523], al
push 0xbb4500
jmp 0x7ea7c8
mov ecx, esi
mov edx, ebp
call fcn.0082f410
test eax, eax
jne 0x7eac7b
mov ecx, esi
call fcn.007f0b40
mov edx, dword [ebp + 0x48]
mov ecx, edi
call fcn.007825f0
mov dword [esp + 0xc], eax
mov ecx, edi
mov edx, 0x50
push 0
call fcn.0077efb0
add esp, 4
test eax, eax
je 0x7eac7b
mov edx, fcn.007778c0
mov dword [esp + 8], eax
imul edx, edx
movzx ecx, byte [0xbb4547]
and edx, 3
cmp edx, 1
seta al
or al, 2
movzx eax, al
bt ecx, eax
jb 0x7eab8d
mov al, byte [0xbb4547]
cmp edx, 1
mov ah, 1
seta cl
or cl, 2
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb4547], ah
jne 0x7eaa51
mov ecx, fcn.007778c0
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 1
seta dl
or dl, 2
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7eaaab
cmp ecx, 1
movzx edx, byte [0xbb4547]
seta al
or al, 2
movzx eax, al
bt edx, eax
jae 0x7eaa8f
jmp 0x7eab8d
cmp ecx, 1
movzx edx, byte [0xbb4547]
seta al
or al, 2
movzx eax, al
bt edx, eax
jb 0x7eab6c
mov eax, fcn.007778c0
xor ecx, ecx
mov dword [esp + 4], ebp
mov ebp, ebx
imul eax, eax
and eax, 3
cmp eax, 1
mov eax, dword [0xbb4530]
seta cl
or ecx, 0x17ed3b72
add ecx, 0x800
xor eax, ecx
mov dword [0xbb4530], eax
not eax
mov edx, dword [0xbb4534]
imul eax, ecx
and cl, 7
lea ebx, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb4534], edx
or ebx, eax
not edx
mov eax, dword [0xbb4538]
imul edx, ebx
lea ebx, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbb4538], eax
or ebx, edx
not eax
mov edx, dword [0xbb453c]
imul eax, ebx
lea ebx, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbb453c], edx
or ebx, eax
not edx
mov al, 1
imul edx, ebx
mov ebx, ebp
mov ebp, dword [esp + 4]
shl al, cl
xor dword [0xbb4540], edx
or byte [0xbb4547], al
mov eax, fcn.007778c0
imul eax, eax
and eax, 3
cmp eax, 1
mov al, 0xfe
seta cl
or cl, 2
xor cl, 7
rol al, cl
and byte [0xbb4547], al
mov ecx, dword [esp + 8]
mov dword [esi + 0xe4], ecx
mov dword [ecx + 0x20], 1
mov esi, ecx
movsx eax, word [ebp + 0x2a]
mov word [ecx + 0x2a], ax
lea ecx, [eax - 1]
sar ecx, 0x1f
shr ecx, 0x1d
lea eax, [eax + ecx - 1]
mov ecx, edi
sar eax, 3
lea edx, [eax + eax*4]
shl edx, 5
add edx, 0xa0
push 0
call fcn.0077efb0
add esp, 4
mov dword [esi + 4], eax
push dword [ebp]
push 0xbb4530
push edi
call fcn.00782620
add esp, 0xc
test eax, eax
mov dword [esi], eax
je 0x7eac7b
mov eax, dword [esi + 4]
mov ecx, esi
test eax, eax
je 0x7eac7b
movsx ecx, word [ecx + 0x2a]
mov dword [esp], ebx
shl ecx, 2
lea ecx, [ecx + ecx*4]
push ecx
mov dword [esp + 8], ebp
push dword [ebp + 4]
push eax
call fcn.009806e0
mov edx, dword [esp + 0x14]
add esp, 0xc
cmp word [edx + 0x2a], 0
jle 0x7eac56
xor ebx, ebx
mov esi, dword [edx + 4]
lea ebp, [ebx + ebx*4]
mov ecx, edi
mov edx, dword [esi + ebp*4]
call fcn.0077edc0
mov edx, dword [esp + 8]
mov dword [esi + ebp*4], eax
mov dword [esi + ebp*4 + 8], 0
mov dword [esi + ebp*4 + 4], 0
inc ebx
movsx eax, word [edx + 0x2a]
cmp ebx, eax
jl 0x7eac26
mov ecx, dword [esp + 0xc]
mov eax, dword [edi + 0x10]
mov ebx, dword [esp]
shl ecx, 4
mov eax, dword [eax + ecx + 0xc]
mov dword [edx + 0x48], eax
mov eax, dword [esp + 4]
mov eax, dword [eax + 0x34]
mov dword [edx + 0x34], eax
mov dword [edx + 0x20], 1
mov ecx, edi
mov edx, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.007c0320