Function at 0x7f9c60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x6d7a68]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push edi
mov edi, ecx
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xfc], edi
mov dword [ebp - 0xe0], esi
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0xf8], esi
mov dword [ebp - 0xdc], esi
call fcn.008d2c90
cmp dword [edi + 0x4bc], esi
je 0x7fa0b9
cmp dword [edi + 0x4f4], esi
je 0x7fa0b9
mov ecx, dword [edi + 0x4f8]
cmp ecx, esi
je 0x7fa0b9
mov eax, dword [ebp + 8]
cmp eax, dword [edi + 0x4d8]
ja 0x7fa0b9
shl eax, 4
push ebx
mov ebx, dword [eax + ecx + 8]
add eax, ecx
add ebx, 0xffff
shr ebx, 0x10
lea esi, [ebx*4]
push esi
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0x104], ebx
call fcn.008f6480
mov edx, eax
add esp, 4
test edx, edx
mov dword [ebp - 0xe8], edx
je 0x7f9d3e
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 4]
push esi
push edx
sub ecx, esi
push 0
push ecx
mov ecx, dword [edi + 0x4bc]
call fcn.008d5520
cmp eax, esi
mov edx, dword [ebp - 0xe8]
jne 0x7f9d3e
mov eax, 1
jmp 0x7f9d40
xor eax, eax
xor ecx, ecx
test eax, eax
je 0x7f9e23
lea ebx, [ebx]
cmp ecx, ebx
jae 0x7f9d6f
mov eax, dword [edx + ecx*4]
and eax, 0x7fffffff
cmp dword [ebp - 0xf8], eax
jae 0x7f9d6a
mov dword [ebp - 0xf8], eax
add ecx, 1
jmp 0x7f9d50
mov eax, dword [ebp - 0xf8]
cmp eax, 0x10000
ja 0x7f9e23
push eax
call fcn.008f6480
add esp, 4
test eax, eax
mov dword [ebp - 0xe0], eax
je 0x7f9e23
push 0x10000
call fcn.008f6480
add esp, 4
test eax, eax
mov dword [ebp - 0xf0], eax
je 0x7f9e23
push 0x304
call fcn.008f6480
add esp, 4
test eax, eax
je 0x7f9e19
mov esi, dword [ebp - 0xe4]
mov edx, dword [esi + 8]
mov ecx, dword [esi]
add ecx, dword [edi + 0x4f4]
push edx
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [edi + 0x1c8]
push edx
push ecx
mov ecx, eax
call fcn.007f95e0
test eax, eax
mov dword [ebp - 0xdc], eax
je 0x7f9e23
mov ecx, eax
mov edx, dword [ecx]
mov eax, dword [esi + 8]
mov edx, dword [edx + 0x40]
push eax
call edx
test eax, eax
je 0x7f9e23
mov ecx, dword [ebp - 0xdc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x54]
push 0
call edx
test eax, eax
je 0x7f9e23
mov esi, 1
jmp 0x7f9e25
mov dword [ebp - 0xdc], 0
xor esi, esi
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 4]
push 0
push ecx
mov ecx, dword [edi + 0x4bc]
call fcn.008d4d70
xor eax, eax
cmp esi, eax
mov dword [ebp - 0xf4], eax
je 0x7fa040
mov dword [ebp - 0x100], eax
jmp 0x7f9e6c
mov eax, dword [ebp - 0xf4]
mov edi, dword [ebp - 0xfc]
cmp eax, ebx
jae 0x7fa040
mov edx, dword [ebp - 0xe8]
mov esi, dword [edx + eax*4]
add ebx, 0xffffffff
and esi, 0x7fffffff
cmp eax, ebx
jae 0x7f9e96
mov dword [ebp - 0xec], 0x10000
jmp 0x7f9eab
mov eax, dword [ebp - 0xe4]
mov eax, dword [eax + 8]
sub eax, dword [ebp - 0x100]
mov dword [ebp - 0xec], eax
mov ecx, dword [edi + 0x34c]
mov edx, dword [ebp - 0xe0]
mov bl, byte [ecx + 0xca0]
mov ecx, dword [edi + 0x4bc]
push esi
push edx
call fcn.008d5870
xor ecx, ecx
cmp eax, esi
sete cl
mov edi, ecx
test edi, edi
je 0x7fa01f
mov edx, dword [ebp - 0xe4]
mov eax, dword [edx + 0xc]
test al, 1
je 0x7f9f82
and eax, 0x30
cmp eax, 0x10
je 0x7f9f5b
cmp eax, 0x30
jne 0x7fa01f
lea ecx, [ebp - 0xd8]
call fcn.008d2d70
test eax, eax
jne 0x7f9f2c
mov eax, dword [ebp - 0xfc]
mov ecx, dword [eax + 0x34c]
mov edx, dword [ecx + 0xc98]
push edx
lea ecx, [ebp - 0xd8]
call fcn.008d2ca0
mov edi, eax
test edi, edi
je 0x7fa01f
mov ecx, dword [ebp - 0xe0]
mov eax, esi
shr eax, 3
push eax
push ecx
lea ecx, [ebp - 0xd8]
call fcn.008d2d30
test eax, eax
je 0x7fa01f
mov edi, 1
jmp 0x7f9f82
xor edx, edx
test bl, bl
setne dl
mov edi, edx
test edi, edi
je 0x7fa01f
xor eax, eax
test esi, esi
jbe 0x7f9f82
mov ecx, dword [ebp - 0xe0]
xor byte [eax + ecx], bl
add eax, 1
cmp eax, esi
jb 0x7f9f72
mov eax, dword [ebp - 0xe4]
test byte [eax + 0xc], 2
je 0x7f9ff5
mov ecx, dword [ebp - 0xe8]
mov edx, dword [ebp - 0xf4]
cmp dword [ecx + edx*4], 0x80000000
jae 0x7f9fd6
mov eax, dword [ebp - 0xe0]
mov ecx, dword [ebp - 0xf0]
mov edx, dword [ebp - 0xfc]
push esi
mov esi, dword [ebp - 0xec]
push eax
mov eax, dword [edx + 0x44]
push esi
push ecx
push eax
call fcn.0080ae30
xor ecx, ecx
add esp, 0x14
cmp eax, esi
sete cl
mov edi, ecx
jmp 0x7f9ffb
cmp esi, dword [ebp - 0xec]
jne 0x7fa01f
mov edx, dword [ebp - 0xe0]
mov eax, dword [ebp - 0xf0]
push esi
push edx
push eax
call fcn.0067cc20
add esp, 0xc
mov esi, dword [ebp - 0xec]
test edi, edi
je 0x7fa01f
mov ecx, dword [ebp - 0xdc]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xf0]
mov edx, dword [edx + 0x3c]
push esi
push eax
call edx
cmp eax, esi
jne 0x7fa01f
mov esi, 1
jmp 0x7fa021
xor esi, esi
add dword [ebp - 0xf4], 1
add dword [ebp - 0x100], 0x10000
test esi, esi
mov ebx, dword [ebp - 0x104]
jne 0x7f9e60
mov eax, dword [ebp - 0xf0]
test eax, eax
je 0x7fa053
push eax
call fcn.008f64c0
add esp, 4
cmp dword [ebp - 0xf8], 0
jbe 0x7fa06f
mov eax, dword [ebp - 0xe0]
test eax, eax
je 0x7fa06f
push eax
call fcn.008f64c0
add esp, 4
test ebx, ebx
pop ebx
jbe 0x7fa087
mov eax, dword [ebp - 0xe8]
test eax, eax
je 0x7fa087
push eax
call fcn.008f64c0
add esp, 4
test esi, esi
mov eax, dword [ebp - 0xdc]
jne 0x7fa0bb
test eax, eax
je 0x7fa0bb
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
pop edi
mov dword [ebp - 0xdc], esi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067de1d
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0067de1d
mov esp, ebp
pop ebp
ret 4