Function at 0x1009fde0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [0x101d2014]
mov edi, dword [ebp + 8]
mov esi, edx
xor eax, ebp
mov edx, edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x3c], esi
mov ecx, dword [ecx + 8]
push esi
call fcn.1007b290
add esp, 4
test byte [edi + 0x24], 0x40
jne 0x1009ffc9
mov eax, dword [ebp + 8]
movzx edx, word [eax + 0x2a]
test dx, dx
jle 0x1009fe51
xor eax, eax
mov ecx, 0x10
mov edi, dword [ebp + 8]
mov esi, dword [edi + 4]
movzx ebx, word [esi + ecx]
test bl, 0x60
je 0x1009fe46
or ebx, 0x80
mov word [esi + ecx], bx
movzx edx, word [edi + 0x2a]
inc eax
movsx esi, dx
add ecx, 0x14
cmp eax, esi
jl 0x1009fe29
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
xor eax, eax
mov dword [ecx + 0x18], edx
mov dword [ecx + 4], 0x100a2410
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
mov ebx, edx
neg eax
mov dword [ecx + 0x34], eax
movzx eax, word [edx + 0x2a]
test ax, ax
jle 0x1009ffad
xor edi, edi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x34], 0
mov esi, dword [ebx + 4]
mov ecx, ebx
lea ebx, [edi + edi*4]
cmp edi, 1
mov edx, 1
cmova edx, edi
movzx eax, word [esi + ebx*4 + 0x10]
test al, al
js 0x1009febf
mov ebx, ecx
movsx eax, word [ebx + 0x2a]
inc edi
cmp edi, eax
jl 0x1009fe93
jmp 0x1009ff86
mov dword [ebp - 0x38], edx
lea edx, [esi + ebx*4 + 0x10]
or eax, 0x100
mov word [edx], ax
mov word [ebp - 0x18], 0
mov dword [ebp - 0x44], edx
mov edx, dword [edx - 0xc]
test edx, edx
je 0x1009fee9
lea ecx, [ebp - 0x2c]
call fcn.10076970
mov ecx, dword [ebp + 8]
lea edx, [esi + ebx*4]
mov esi, dword [ebp - 0x44]
and byte [esi + 1], 0xfe
cmp byte [ebp - 0x18], 0
jns 0x1009fefe
mov dword [ebp - 0x40], edx
jmp 0x1009feaf
test di, di
js 0x1009ff26
mov eax, dword [ecx + 0x24]
mov ebx, edi
and eax, 0x20
je 0x1009ff63
mov ebx, dword [ecx + 4]
movzx ecx, word [ebx + 0x10]
and ecx, 0x20
test edi, edi
jne 0x1009ff2a
xor ebx, ebx
mov dword [ebp - 0x38], 0
jmp 0x1009ff50
mov ebx, edi
jmp 0x1009ff63
mov eax, dword [ebp - 0x38]
add ebx, 0x24
mov dword [ebp - 0x34], eax
xor eax, eax
movzx ecx, cx
shr ecx, 5
xor ecx, 1
add eax, ecx
movzx ecx, word [ebx]
add ebx, 0x14
and ecx, 0x20
dec dword [ebp - 0x34]
jne 0x1009ff35
mov ebx, eax
test cx, cx
je 0x1009ff63
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp + 8]
sub ecx, ebx
add cx, word [eax + 0x2c]
mov ebx, ecx
movsx eax, bx
mov ecx, dword [ebp - 0x30]
add eax, dword [ebp - 0x3c]
push eax
call fcn.10073030
mov ebx, dword [ebp + 8]
add esp, 4
and byte [esi], 0x7f
xor eax, eax
inc eax
mov dword [ebp - 0x34], eax
jmp 0x1009feb1
cmp dword [ebp - 0x34], 0
mov esi, dword [ebp - 0x40]
je 0x1009ff97
test esi, esi
jne 0x1009fe7a
test esi, esi
je 0x1009ffad
push dword [esi]
push str.generated_column_loop_on___s_
push dword [ebp - 0x30]
call fcn.1000f470
add esp, 0xc
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x34], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10192ef0
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 8]
mov eax, 0x101d4a28
mov edx, dword [ecx]
cmp byte [edx + 0x51], 0
jne 0x1009ffe9
mov eax, dword [ecx + 0x68]
mov ecx, dword [ecx + 0x6c]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4 - 0x14]
cmp byte [eax], 0x5a
jne 0x1009fe16
mov eax, dword [eax + 0x10]
cmp byte [eax], 0
je 0x1009fe16
xor ecx, ecx
mov edx, 0x10
mov esi, eax
mov edi, dword [ebp + 8]
mov edi, dword [edi + 4]
movzx ebx, word [edi + edx]
test bl, 0x20
jne 0x100a001f
test bl, 0x40
je 0x100a001e
mov byte [esi], 0x40
inc ecx
add edx, 0x14
cmp byte [eax + ecx], 0
lea esi, [eax + ecx]
jne 0x100a0007
jmp 0x1009fe16