Function at 0x1009ec7a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, ecx
mov dword [ebp - 0x1c], edi
cmp dword [edi + 0x3bb10], 0
je 0x1009ec9c
push dword [edi + 0x18]
call dword [edi]
and dword [edi + 0x3bb10], 0
pop ecx
cmp dword [edi + 0x3bafc], 0
je 0x1009ecb0
mov eax, dword [edi + 0x3bb04]
jmp 0x1009f1ea
mov ecx, edi
call fcn.1009e8c1
test eax, eax
jne 0x1009f1ea
push ebx
mov ebx, dword [edi + 0x3baf0]
mov eax, ebx
or eax, dword [edi + 0x3baf4]
push esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
jne 0x1009ed50
push dword [edi + 0x18]
call dword [edi + 8]
pop ecx
mov ecx, edi
test eax, eax
je 0x1009f1e1
lea edx, [ebp - 0x18]
call fcn.1009d2a4
mov eax, dword [edi + 0x3174c]
lea esi, [edi + 0x3bab0]
shl eax, 5
lea edx, [edi + 0x323b0]
push 0
add edx, eax
mov ecx, esi
call fcn.1009ce28
mov eax, dword [edi + 0x3174c]
mov eax, dword [eax*4 + 0x101ee304]
mov dword [edi + 0x3174c], eax
mov eax, dword [edi + 0x31738]
neg eax
push eax
push dword [edi + 0x18]
call dword [edi + 4]
mov edx, dword [edi + 0x323ac]
mov ecx, esi
movzx eax, al
push eax
call fcn.1009ce81
add esp, 0x10
dec dword [edi + 0x31738]
inc ebx
mov dword [ebp - 0x10], ebx
push dword [edi + 0x18]
call dword [edi + 8]
pop ecx
test eax, eax
je 0x1009f1cd
cmp dword [edi + 0x3baa8], 0
mov ecx, edi
je 0x1009ed74
lea edx, [ebp - 4]
call fcn.1009e51a
jmp 0x1009ed80
lea eax, [ebp - 4]
mov edx, ebx
push eax
call fcn.1009d4f3
pop ecx
mov ecx, ebx
mov dword [ebp - 8], eax
and ecx, dword [edi + 0x323a8]
mov dword [ebp - 0xc], ecx
cmp eax, 1
jne 0x1009ee84
cmp dword [ebp - 4], 0xffffffff
jne 0x1009ee84
mov eax, dword [edi + 0x3174c]
lea esi, [edi + 0x3bab0]
add ecx, 0x191d8
shl eax, 4
add eax, ecx
mov dword [ebp - 0xc], esi
push 0
mov ecx, esi
lea edx, [edi + eax*2]
call fcn.1009ce28
push dword [edi + 0x18]
call dword [edi + 0xc]
sub eax, dword [edi + 0x31738]
mov edx, dword [edi + 0x323a4]
pop ecx
pop ecx
movzx esi, byte [eax - 1]
and edx, ebx
push 8
pop ecx
sub cl, byte [edi + 0x32398]
shr esi, cl
mov ecx, dword [edi + 0x32398]
shl edx, cl
add esi, edx
imul edx, esi, 0x600
movzx esi, byte [eax]
add edx, dword [edi + 0x323ac]
cmp dword [edi + 0x3174c], 7
mov dword [ebp - 0x18], edx
jae 0x1009ee20
push esi
lea ecx, [edi + 0x3bab0]
call fcn.1009ce81
pop ecx
jmp 0x1009ee72
sub eax, dword [edi + 0x3173c]
movzx edi, byte [eax - 1]
mov eax, 0x100
mov ebx, eax
or esi, eax
mov eax, esi
add edi, edi
shr eax, 7
mov ecx, ebx
and eax, 1
and ecx, edi
push eax
mov eax, esi
add ecx, ebx
shr eax, 8
add eax, ecx
mov ecx, dword [ebp - 0xc]
lea edx, [edx + eax*2]
call fcn.1009ce28
mov edx, dword [ebp - 0x18]
add esi, esi
mov eax, esi
xor eax, edi
not eax
and ebx, eax
pop ecx
cmp esi, 0x10000
jb 0x1009ee33
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x10]
mov eax, dword [edi + 0x3174c]
mov eax, dword [eax*4 + 0x101ee304]
jmp 0x1009effb
mov eax, dword [edi + 0x3174c]
lea esi, [edi + 0x3bab0]
add ecx, 0x191d8
shl eax, 4
add eax, ecx
mov ecx, esi
push 1
lea edx, [edi + eax*2]
call fcn.1009ce28
mov edx, dword [edi + 0x3174c]
add edx, 0x19298
cmp dword [ebp - 4], 4
pop ecx
mov ecx, esi
lea edx, [edi + edx*2]
jae 0x1009f006
push 1
call fcn.1009ce28
mov eax, dword [ebp - 4]
pop ecx
mov ecx, esi
test eax, eax
jne 0x1009ef14
push eax
mov eax, dword [edi + 0x3174c]
add eax, 0x192a4
lea edx, [edi + eax*2]
call fcn.1009ce28
xor eax, eax
mov ecx, esi
cmp dword [ebp - 8], 1
setne al
push eax
mov eax, dword [edi + 0x3174c]
shl eax, 4
add eax, 0x192c8
add eax, dword [ebp - 0xc]
lea edx, [edi + eax*2]
call fcn.1009ce28
pop ecx
pop ecx
jmp 0x1009efad
mov eax, dword [edi + eax*4 + 0x3173c]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x3174c]
add eax, 0x192a4
push 1
lea edx, [edi + eax*2]
call fcn.1009ce28
mov edx, dword [edi + 0x3174c]
add edx, 0x192b0
cmp dword [ebp - 4], 1
pop ecx
mov ecx, esi
lea edx, [edi + edx*2]
jne 0x1009ef55
push 0
call fcn.1009ce28
pop ecx
jmp 0x1009ef98
push 1
call fcn.1009ce28
mov eax, dword [ebp - 4]
mov ecx, esi
add eax, 0xfffffffe
push eax
mov eax, dword [edi + 0x3174c]
add eax, 0x192bc
lea edx, [edi + eax*2]
call fcn.1009ce28
cmp dword [ebp - 4], 3
pop ecx
pop ecx
jne 0x1009ef8c
mov eax, dword [edi + 0x31744]
mov dword [edi + 0x31748], eax
mov eax, dword [edi + 0x31740]
mov dword [edi + 0x31744], eax
mov eax, dword [edi + 0x3173c]
mov dword [edi + 0x31740], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x3173c], eax
mov ecx, dword [ebp - 8]
cmp ecx, 1
jne 0x1009efc4
mov eax, dword [edi + 0x3174c]
mov eax, dword [eax*4 + 0x101ee364]
jmp 0x1009effb
lea eax, [edi + 0x30ca0]
mov edx, esi
push eax
xor eax, eax
cmp dword [edi + 0x3baa8], eax
sete al
push eax
push dword [ebp - 0xc]
lea eax, [ecx - 2]
push eax
lea ecx, [edi + 0x3725c]
call fcn.1009d25b
mov eax, dword [edi + 0x3174c]
add esp, 0x10
mov eax, dword [eax*4 + 0x101ee394]
mov dword [edi + 0x3174c], eax
jmp 0x1009f155
push 0
call fcn.1009ce28
mov eax, dword [edi + 0x3174c]
lea ecx, [edi + 0x32a14]
mov edx, esi
mov eax, dword [eax*4 + str._a_a_a_a_a_a_a_n_n_n_n_n_t_t_t_t_t_t_t_v_v_v_v_v_b_b_b_b_b_b_b_v_v_v_v_v]
mov dword [edi + 0x3174c], eax
lea eax, [edi + 0x30ca0]
push eax
xor eax, eax
cmp dword [edi + 0x3baa8], eax
sete al
push eax
mov eax, dword [ebp - 8]
push dword [ebp - 0xc]
add eax, 0xfffffffe
push eax
call fcn.1009d25b
mov eax, dword [ebp - 4]
add esp, 0x14
add eax, 0xfffffffc
mov dword [ebp - 4], eax
cmp eax, 0x80
jae 0x1009f067
movzx eax, byte [eax + edi + 0x304a0]
jmp 0x1009f086
mov ecx, 0x1ffff
sub ecx, eax
shr ecx, 0x1f
neg ecx
and ecx, 0xa
add ecx, 6
shr eax, cl
movzx eax, byte [eax + edi + 0x304a0]
lea eax, [eax + ecx*2]
push eax
mov dword [ebp - 0x10], eax
mov edx, 0x32890
mov eax, dword [ebp - 8]
mov ecx, esi
shl eax, 7
add eax, 0x32610
cmp dword [ebp - 8], 5
push 6
cmovb edx, eax
add edx, edi
call fcn.1009cf63
mov edx, dword [ebp - 0x10]
pop ecx
pop ecx
cmp edx, 4
jb 0x1009f122
mov esi, dword [ebp - 4]
mov ecx, edx
mov eax, edx
shr ecx, 1
and eax, 1
mov dword [ebp - 0xc], esi
dec ecx
lea esi, [edi + 0x3bab0]
or eax, 2
shl eax, cl
sub dword [ebp - 0xc], eax
cmp edx, 0xe
jae 0x1009f0f2
push dword [ebp - 0xc]
sub eax, edx
add eax, 0x19487
push ecx
mov ecx, esi
lea edx, [edi + eax*2]
call fcn.1009cfa5
pop ecx
pop ecx
jmp 0x1009f122
mov edx, dword [ebp - 0xc]
lea eax, [ecx - 4]
push eax
shr edx, 4
mov ecx, esi
call fcn.1009cde0
mov eax, dword [ebp - 0xc]
lea edx, [edi + 0x329f4]
and eax, 0xf
mov ecx, esi
push eax
push 4
call fcn.1009cfa5
add esp, 0xc
inc dword [edi + 0x32390]
mov eax, dword [edi + 0x31744]
mov dword [edi + 0x31748], eax
mov eax, dword [edi + 0x31740]
mov dword [edi + 0x31744], eax
mov eax, dword [edi + 0x3173c]
mov dword [edi + 0x31740], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x3173c], eax
inc dword [edi + 0x3baf8]
mov eax, dword [ebp - 8]
add ebx, eax
sub dword [edi + 0x31738], eax
cmp dword [edi + 0x31738], 0
mov dword [ebp - 0x10], ebx
jne 0x1009ed5f
cmp dword [edi + 0x3baa8], 0
jne 0x1009f19c
cmp dword [edi + 0x3baf8], 0x80
jb 0x1009f18c
mov ecx, edi
call fcn.1009e9a0
cmp dword [edi + 0x32390], 0x10
jb 0x1009f19c
mov ecx, edi
call fcn.1009e94a
push dword [edi + 0x18]
call dword [edi + 8]
pop ecx
test eax, eax
je 0x1009f1cd
mov eax, ebx
sub eax, dword [ebp - 0x14]
cmp eax, 0x8000
jb 0x1009ed5f
add dword [edi + 0x3baf0], eax
mov ecx, edi
adc dword [edi + 0x3baf4], 0
call fcn.1009e8c1
jmp 0x1009f1e8
mov eax, ebx
mov ecx, edi
sub eax, dword [ebp - 0x14]
add dword [edi + 0x3baf0], eax
adc dword [edi + 0x3baf4], 0
mov edx, ebx
call fcn.1009e8fd
pop esi
pop ebx
pop edi
leave
ret