Function at 0x7fa120
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0x6d7a68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
movzx ecx, word [eax + 6]
mov ebx, dword [eax + 0x74]
mov edx, dword [esi + 0xa08]
mov dword [ebp - 0x164], ecx
push edi
lea ebx, [ebx*8 + 0x78]
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x16c], edx
lea edi, [esi + 0xa48]
call fcn.008cebb0
cmp dword [ebp - 0x16c], 4
mov ecx, dword [esi + 0xc]
mov edx, dword [edi + 4]
sbb eax, eax
not eax
and eax, ebx
xor ebx, ebx
add ecx, 0x34
cmp edx, dword [ecx]
mov dword [ebp - 0x160], 0
setne bl
mov dword [ebp - 0x168], eax
mov edx, ebx
test edx, edx
mov ebx, dword [ebp - 0x164]
mov dword [ebp - 0x178], edx
je 0x7fa1c1
cmp bx, 3
mov dword [ebp - 0x15c], 0
jbe 0x7fa1cb
mov dword [ebp - 0x15c], 1
xor edx, edx
cmp dword [ebp - 0x178], edx
je 0x7fa484
lea esp, [esp]
mov ecx, dword [ebp - 0x15c]
test ecx, ecx
je 0x7fa4db
cmp dx, bx
jae 0x7fa233
movzx edi, bx
movzx ecx, dx
sub edi, 3
cmp ecx, edi
je 0x7fa20c
mov edi, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
mov ecx, dword [edi + ecx*8 + 0x10]
jmp 0x7fa222
cmp dword [ebp - 0x16c], 4
jb 0x7fa22e
mov edi, dword [esi + 0x14]
lea ecx, [ecx + ecx*4]
mov ecx, dword [edi + ecx*8 + 0x10]
sub ecx, 0x40
cmp eax, ecx
ja 0x7fa22e
mov dword [ebp - 0x168], ecx
mov eax, ecx
add edx, 1
jmp 0x7fa1e0
test ecx, ecx
je 0x7fa4db
test eax, eax
jbe 0x7fa2c3
push eax
call fcn.008f6480
add esp, 4
test eax, eax
mov dword [ebp - 0x160], eax
je 0x7fa2c3
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x15c], 1
call fcn.008ce400
cmp dword [ebp - 0x16c], 4
jb 0x7fa2ad
mov ebx, dword [ebp - 0x170]
mov edx, dword [esi + 8]
mov edi, dword [ebp - 0x160]
mov eax, dword [edx + 0x3c]
push ebx
push edi
push eax
mov ecx, esi
call fcn.008e5d80
test eax, eax
mov dword [ebp - 0x15c], eax
je 0x7fa2a7
push ebx
push edi
lea ecx, [ebp - 0x84]
call fcn.008cf2f0
mov ebx, dword [ebp - 0x164]
xor eax, eax
cmp dword [ebp - 0x15c], eax
mov dword [ebp - 0x170], eax
je 0x7fa4c8
jmp 0x7fa2e6
mov dword [ebp - 0x15c], 0
jmp 0x7fa4c8
mov ebx, dword [ebp - 0x164]
cmp ax, bx
jae 0x7fa40d
mov edx, dword [esi + 0x14]
movzx eax, ax
lea ecx, [eax + eax*4]
lea ebx, [edx + ecx*8]
movzx ecx, word [ebp - 0x164]
sub ecx, 3
cmp eax, ecx
je 0x7fa333
mov edx, dword [ebx + 0x10]
mov edi, dword [ebp - 0x160]
mov eax, dword [ebx + 0x14]
push edx
push edi
push eax
mov ecx, esi
call fcn.008e5d80
test eax, eax
mov dword [ebp - 0x15c], eax
je 0x7fa333
mov ecx, dword [ebx + 0x10]
push ecx
push edi
jmp 0x7fa3d5
cmp dword [ebp - 0x16c], 4
jb 0x7fa3e0
mov edx, dword [esi + 0xa0c]
push edx
mov ecx, esi
call fcn.008e5f60
mov ecx, dword [ebx + 0x14]
mov ebx, dword [ebx + 0x10]
mov edi, eax
lea edx, [eax + 0x40]
sub edi, ecx
sub ebx, edi
sub ebx, edx
mov dword [ebp - 0x15c], edx
mov edx, dword [ebp - 0x160]
add ebx, eax
lea eax, [edi + edx]
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x168]
cmp edi, eax
jbe 0x7fa382
mov edi, eax
cmp ebx, eax
jbe 0x7fa388
mov ebx, eax
push edi
push edx
push ecx
mov ecx, esi
call fcn.008e5d80
test eax, eax
je 0x7fa401
mov ecx, dword [ebp - 0x174]
mov edx, dword [ebp - 0x15c]
push ebx
push ecx
push edx
mov ecx, esi
call fcn.008e5d80
test eax, eax
je 0x7fa401
mov eax, dword [ebp - 0x160]
push edi
push eax
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x15c], 1
call fcn.008cf2f0
mov ecx, dword [ebp - 0x174]
push ebx
push ecx
lea ecx, [ebp - 0x84]
call fcn.008cf2f0
mov eax, dword [ebp - 0x170]
add eax, 1
cmp dword [ebp - 0x15c], 0
mov dword [ebp - 0x170], eax
jne 0x7fa2e0
jmp 0x7fa4c8
mov dword [ebp - 0x15c], 0
jmp 0x7fa3e0
cmp dword [ebp - 0x15c], 0
je 0x7fa4c8
lea ecx, [ebp - 0x158]
call fcn.008d2c90
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x84]
call fcn.008cf520
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x158]
call fcn.008d2ca0
test eax, eax
je 0x7fa2c3
push 8
lea edi, [esi + 0xa48]
push edi
lea ecx, [ebp - 0x158]
call fcn.008d2d30
test eax, eax
je 0x7fa2c3
mov ecx, dword [esi + 0xc]
mov edx, dword [edi + 4]
add ecx, 0x34
cmp edx, dword [ecx]
jne 0x7fa2c3
mov dword [ebp - 0x15c], 1
jmp 0x7fa48c
cmp dword [ebp - 0x15c], edx
je 0x7fa4db
cmp dword [ebp - 0x178], 0
je 0x7fa4c8
mov esi, dword [esi + 0xa0c]
add esi, dword [ecx]
mov eax, edi
mov ecx, 3
mov edx, dword [eax + 0x10]
xor edx, dword [eax + 0xc]
add eax, 0x14
xor edx, dword [eax - 0xc]
xor edx, dword [eax - 0x10]
xor edx, dword [eax - 0x14]
xor esi, edx
sub ecx, 1
jne 0x7fa4a4
cmp esi, dword [eax]
sete cl
mov dword [ebp - 0x15c], ecx
mov eax, dword [ebp - 0x160]
test eax, eax
je 0x7fa4db
push eax
call fcn.008f64c0
add esp, 4
lea ecx, [ebp - 0x84]
call fcn.008ce3f0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x15c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0067de1d
mov esp, ebp
pop ebp
ret