Function at 0x7a9d90
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [0xbd33e0]
mov esi, ecx
xor eax, esp
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0
mov ecx, dword [ecx]
call fcn.007aa630
mov ebp, eax
test eax, eax
jne 0x7aa2ab
lea eax, [esp + 0x14]
mov ecx, esi
mov edx, 1
push 0
push eax
call fcn.007aa880
add esp, 8
mov ebp, eax
test eax, eax
jne 0x7aa2ab
mov ebp, dword [esp + 0x14]
mov ecx, dword [ebp + 0x38]
add ecx, 0x1c
call fcn.00559e00
mov ecx, dword [esi]
lea edx, [esp + 0x10]
mov ebx, eax
call fcn.00788370
test ebx, ebx
je 0x7a9e08
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax + 0x18]
cmp ecx, dword [eax + 0x5c]
je 0x7a9e0c
mov ebx, dword [esp + 0x10]
mov eax, dword [esi + 4]
xor edi, edi
test byte [eax + 0x23], 2
cmove edi, ebx
test edi, edi
jne 0x7a9e2a
mov ebx, dword [esi + 0x28]
mov dword [esp + 4], edi
mov edi, ebp
jmp 0x7aa256
mov eax, fcn.007a4360
mov edx, 3
movzx ecx, byte [0xbb4d97]
sub edx, eax
mov eax, edx
xor eax, fcn.007a4360
sete al
not al
add al, 0x40
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7a9fbf
mov al, byte [0xbb4d97]
mov ecx, edx
mov ah, 1
xor ecx, fcn.007a4360
sete cl
not cl
add cl, 0x40
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb4d97], ah
jne 0x7a9e5e
mov edx, fcn.007a4360
mov ecx, 3
movzx eax, al
sub ecx, edx
mov edx, ecx
xor edx, fcn.007a4360
sete dl
not dl
add dl, 0x40
and dl, 7
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7a9ed5
mov eax, ecx
movzx edx, byte [0xbb4d97]
xor eax, fcn.007a4360
sete al
not al
add al, 0x40
and al, 7
movzx eax, al
bt edx, eax
jae 0x7a9eb1
jmp 0x7a9fbf
xor ecx, fcn.007a4360
movzx ecx, byte [0xbb4d97]
sete al
not al
add al, 0x40
and al, 7
movzx eax, al
bt ecx, eax
jb 0x7a9f95
mov eax, fcn.007a4360
mov edx, 3
xor ecx, ecx
sub edx, eax
mov eax, dword [0xbb4d80]
xor edx, fcn.007a4360
sete cl
xor ecx, 0x34d3e5f
add ecx, 0x140
xor eax, ecx
mov dword [0xbb4d80], eax
not eax
mov edx, dword [0xbb4d84]
imul eax, ecx
and cl, 7
lea ebx, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbb4d84], edx
or ebx, eax
not edx
mov eax, dword [0xbb4d88]
imul edx, ebx
lea ebx, [edx*4]
xor eax, edx
shr edx, 0x1d
mov dword [0xbb4d88], eax
or ebx, edx
not eax
mov edx, dword [0xbb4d8c]
imul eax, ebx
lea ebx, [eax*8]
xor edx, eax
shr eax, 0x1c
mov dword [0xbb4d8c], edx
or ebx, eax
not edx
mov al, 1
imul edx, ebx
shl al, cl
xor dword [0xbb4d90], edx
or byte [0xbb4d97], al
mov eax, fcn.007a4360
mov ecx, 3
sub ecx, eax
mov al, 0xfe
xor ecx, fcn.007a4360
sete cl
not cl
add cl, 0x40
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbb4d97], al
mov ebx, dword [ebp + 0x38]
push 0x10
push 0xbb4d80
push ebx
call fcn.0098ad00
add esp, 0xc
test eax, eax
je 0x7a9fe2
mov edi, ebp
mov ebp, 0x1a
jmp 0x7aa20b
cmp byte [ebx + 0x12], 3
jb 0x7a9fec
or byte [esi + 0x18], 1
cmp byte [ebx + 0x13], 2
ja 0x7a9fd6
jne 0x7aa038
test byte [esi + 0x18], 0x20
jne 0x7aa038
mov dword [esp + 0xc], 0
lea edx, [esp + 0xc]
mov dword [esp], ebx
mov ebx, edi
mov edi, ebp
mov ecx, dword [esi]
call fcn.007aa8e0
mov ebp, eax
test eax, eax
jne 0x7aa20b
mov ebp, edi
mov edi, ebx
cmp dword [esp + 0xc], 0
mov ebx, dword [esp]
jne 0x7aa038
mov ecx, ebp
call fcn.007aa930
jmp 0x7aa2a9
mov edx, fcn.007ffc90
xor eax, eax
and edx, 1
inc edx
mov ecx, edx
xor ecx, fcn.007ffc90
movzx ecx, byte [0xbb4da3]
sete al
bt ecx, eax
jb 0x7aa13d
mov al, byte [0xbb4da3]
mov ecx, edx
mov ah, 1
xor ecx, fcn.007ffc90
sete cl
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbb4da3], ah
jne 0x7aa063
mov ecx, fcn.007ffc90
movzx eax, al
and ecx, 1
inc ecx
mov edx, ecx
xor edx, fcn.007ffc90
sete dl
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x7aa0be
mov edx, ecx
xor eax, eax
xor edx, fcn.007ffc90
movzx edx, byte [0xbb4da3]
sete al
bt edx, eax
jae 0x7aa0a3
jmp 0x7aa13d
xor eax, eax
xor ecx, fcn.007ffc90
movzx ecx, byte [0xbb4da3]
sete al
bt ecx, eax
jb 0x7aa11f
mov eax, fcn.007ffc90
xor ecx, ecx
and eax, 1
inc eax
xor eax, fcn.007ffc90
mov eax, dword [0xbb4d98]
sete cl
or ecx, 0xc823dd20
add ecx, 0xa8
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbb4d98], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
xor dword [0xbb4d9c], edx
mov dl, 1
shl dl, cl
or byte [0xbb4da3], dl
mov eax, fcn.007ffc90
and eax, 1
inc eax
xor eax, fcn.007ffc90
mov al, 0xfe
sete cl
xor cl, 7
rol al, cl
and byte [0xbb4da3], al
mov cl, byte [ebx + 0x17]
movzx eax, word [ebx + 0x15]
xor cl, byte [0xbb4d9a]
xor ax, word [0xbb4d98]
movzx ecx, cl
or cx, ax
jne 0x7a9fd6
movzx eax, byte [ebx + 0x10]
movzx ecx, byte [ebx + 0x11]
shl eax, 8
shl ecx, 0x10
lea edx, [ecx + eax - 0x101]
cmp edx, 0xfeff
ja 0x7a9fd6
mov dword [esp + 4], edi
mov edi, ebp
lea ebp, [ecx + eax]
lea eax, [ecx + eax - 1]
and eax, ebp
je 0x7aa196
mov ebp, 0x1a
jmp 0x7aa20b
or byte [esi + 0x18], 2
mov dword [esp], ebx
movzx eax, byte [ebx + 0x14]
mov ebx, ebp
sub ebx, eax
cmp ebp, dword [esi + 0x24]
je 0x7aa1e2
mov ecx, edi
mov edi, eax
call fcn.007aa930
mov ecx, esi
mov dword [esi + 0x28], ebx
mov dword [esi + 0x24], ebp
call fcn.007aa940
mov ecx, dword [esi]
lea edx, [esi + 0x24]
push edi
call fcn.007a2190
add esp, 4
mov ecx, dword [esp + 0x18]
mov esi, eax
xor ecx, esp
call fcn.00989fe9
mov eax, esi
jmp 0x7aa2b8
mov ecx, dword [esi + 4]
mov dword [esp + 8], ebp
call fcn.007aa960
test eax, eax
jne 0x7aa21e
mov eax, dword [esp + 4]
cmp eax, dword [esp + 0x10]
jbe 0x7aa21e
mov ecx, 0xc77
call fcn.007a5560
mov ebp, 0xb
mov ecx, edi
call fcn.007aa930
mov dword [esi + 0xc], 0
jmp 0x7aa2ab
cmp ebx, 0x1e0
mov ebp, 0x1a
jb 0x7aa20b
mov ebp, dword [esp]
mov eax, dword [esp + 8]
lea ecx, [ebp + 0x34]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ebx
call fcn.00559e00
test eax, eax
setne byte [esi + 0x11]
add ebp, 0x40
mov ecx, ebp
call fcn.00559e00
test eax, eax
setne byte [esi + 0x12]
mov eax, ebx
mov ebp, 0x80808081
shl eax, 6
add eax, 0xfffffd00
mul ebp
mov eax, ebx
add ebx, 0xffffffdd
shl eax, 5
mov ecx, edx
add eax, 0xfffffe80
shr ecx, 7
mul ebp
add ecx, 0xffffffe9
shr edx, 7
mov word [esi + 0x1a], cx
add edx, 0xffffffe9
cmp cx, 0x7f
mov word [esi + 0x1c], dx
mov word [esi + 0x1e], bx
mov word [esi + 0x20], dx
jb 0x7aa29c
mov cl, 0x7f
mov eax, dword [esp + 4]
mov byte [esi + 0x15], cl
mov dword [esi + 0xc], edi
mov dword [esi + 0x30], eax
xor ebp, ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00989fe9
mov eax, ebp
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret