Function at 0x10009d20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 8], ebx
push esi
push edi
mov ecx, dword [ebx + 4]
lea eax, [ebx + 0x3d0]
push ecx
test edx, edx
je 0x10009d48
push edx
push eax
call fcn.10001c80
jmp 0x10009d50
push 0
push eax
call fcn.10001d60
mov eax, dword [ebx + 4]
add esp, 0xc
mov ecx, dword [ebx + 8]
xor esi, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp + 0xc], eax
test ecx, ecx
js 0x10009d8a
lea edx, [ebx + 0x10]
mov edi, edi
test eax, eax
jle 0x10009d7f
mov ecx, eax
mov edi, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 8]
inc esi
add edx, 0x20
cmp esi, ecx
jle 0x10009d70
xor edx, edx
test ecx, ecx
js 0x10009db0
lea esi, [ebx + 0x1f0]
test eax, eax
jle 0x10009da5
mov ecx, eax
mov edi, esi
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 8]
inc edx
add esi, 0x20
cmp edx, ecx
jle 0x10009d96
mov edi, dword [ebp + 8]
inc ecx
imul ecx, eax
mov eax, dword [ebx]
cdq
and edx, 3
mov dword [ebp - 4], ecx
lea esi, [edx + eax]
sar esi, 2
mov dword [ebp - 0xc], esi
test esi, esi
jle 0x10009e3b
mov dword [ebp + 8], esi
lea ebx, [ebp - 0x2c]
movzx esi, byte [edi]
lea edi, [edi + 4]
movzx edx, byte [edi - 3]
lea ebx, [ebx + 4]
movzx ecx, byte [edi - 2]
movzx eax, byte [edi - 1]
shl esi, 8
or esi, edx
shl esi, 8
or esi, ecx
shl esi, 8
or esi, eax
sub dword [ebp + 8], 1
mov dword [ebx - 4], esi
jne 0x10009dd3
mov ebx, dword [ebp - 8]
xor edi, edi
cmp edi, dword [ebp - 4]
jge 0x10009f83
mov eax, edi
mov esi, dword [ebp + edi*4 - 0x2c]
cdq
inc edi
idiv dword [ebp + 0xc]
lea ecx, [edx + eax*8]
mov dword [ebx + ecx*4 + 0x10], esi
mov ecx, dword [ebx + 8]
sub ecx, eax
lea eax, [edx + ecx*8]
mov dword [ebx + eax*4 + 0x1f0], esi
mov esi, dword [ebp - 0xc]
cmp edi, esi
jl 0x10009e05
mov ecx, dword [ebp - 4]
jmp 0x10009e3d
xor edi, edi
cmp edi, ecx
jge 0x10009f83
mov dword [ebp + 8], 0x1000df18
lea esp, [esp]
mov edx, dword [ebp + esi*4 - 0x30]
mov eax, edx
sar eax, 0x10
movzx eax, al
movzx ecx, byte [eax + 0x1000df38]
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
xor ecx, eax
mov eax, edx
sar eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x1000df38]
xor ecx, eax
movzx eax, dl
shl ecx, 8
sar edx, 0x18
movzx eax, byte [eax + 0x1000df38]
xor ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + 0x1000df38]
xor ecx, eax
xor dword [ebp - 0x2c], ecx
cmp esi, 8
je 0x10009ec8
mov ecx, 1
cmp esi, ecx
jle 0x10009ebe
mov eax, dword [ebp + ecx*4 - 0x30]
xor dword [ebp + ecx*4 - 0x2c], eax
inc ecx
cmp ecx, esi
jl 0x10009eb1
test esi, esi
jle 0x10009f77
jmp 0x10009f3e
mov eax, 1
lea ecx, [ecx]
mov ecx, dword [ebp + eax*4 - 0x30]
xor dword [ebp + eax*4 - 0x2c], ecx
inc eax
cmp eax, 4
jl 0x10009ed0
mov edx, dword [ebp - 0x20]
mov eax, edx
sar eax, 0x18
movzx eax, al
movzx ecx, byte [eax + 0x1000df38]
mov eax, edx
sar eax, 0x10
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x1000df38]
xor ecx, eax
mov eax, edx
sar eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x1000df38]
xor ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + 0x1000df38]
xor ecx, eax
xor dword [ebp - 0x1c], ecx
mov ecx, 5
nop
mov eax, dword [ebp + ecx*4 - 0x30]
xor dword [ebp + ecx*4 - 0x2c], eax
inc ecx
cmp ecx, 8
jl 0x10009f30
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 4]
jge 0x10009f77
mov esi, dword [ebp + eax*4 - 0x2c]
mov eax, edi
cdq
inc edi
idiv dword [ebp + 0xc]
lea ecx, [edx + eax*8]
mov dword [ebx + ecx*4 + 0x10], esi
mov ecx, dword [ebx + 8]
sub ecx, eax
lea eax, [edx + ecx*8]
mov dword [ebx + eax*4 + 0x1f0], esi
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
inc eax
mov dword [ebp - 8], eax
cmp eax, esi
jl 0x10009f43
inc dword [ebp + 8]
cmp edi, dword [ebp - 4]
jl 0x10009e50
mov ecx, 1
mov dword [ebp + 8], ecx
cmp dword [ebx + 8], ecx
jle 0x1000a004
mov eax, dword [ebp + 0xc]
lea edx, [ebx + 0x210]
mov dword [ebp - 0xc], edx
lea esp, [esp]
test eax, eax
jle 0x10009ff5
mov esi, edx
mov edi, eax
mov edx, dword [esi]
lea esi, [esi + 4]
mov eax, edx
sar eax, 0x18
movzx ecx, al
mov eax, edx
sar eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x1000e138]
xor ecx, dword [eax*4 + 0x1000e538]
mov eax, edx
sar eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1000e938]
movzx eax, dl
xor ecx, dword [eax*4 + 0x1000ed38]
mov dword [esi - 4], ecx
sub edi, 1
jne 0x10009fa8
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
inc ecx
add edx, 0x20
mov dword [ebp + 8], ecx
mov dword [ebp - 0xc], edx
cmp ecx, dword [ebx + 8]
jl 0x10009fa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8