Function at 0x100321f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x1017a974]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, ecx
cmp dword [esi], 0
push edi
mov edi, dword [esp + 0x40]
mov ebx, edx
je 0x10032227
pop edi
pop esi
mov eax, 0xfffffffb
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.100d5eaf
add esp, 0x2c
ret 8
cmp dword [esi + 8], 0
jne 0x1003220e
test ebx, ebx
je 0x1003243b
mov ecx, dword [esp + 0x3c]
test ecx, ecx
jle 0x1003243b
mov eax, ecx
cdq
and edx, 0xf
add eax, edx
push ebp
mov ebp, eax
mov eax, dword [esi + 4]
sar ebp, 4
sub eax, 0
mov dword [esp + 0x14], ebp
je 0x100323be
sub eax, 1
je 0x1003227c
pop ebp
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.100d5eaf
add esp, 0x2c
ret 8
cmp dword [esi + 0xc], 0
jne 0x10032297
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
mov ebp, dword [esi + 0x1c]
mov dword [esi + 0xc], 1
jmp 0x100322a3
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0x28]
mov ebp, dword [esi + 0x2c]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebp
test ebp, ebp
jle 0x10032322
nop
mov ebp, dword [ebx]
xor ebp, eax
mov eax, dword [ebx + 4]
xor eax, edx
mov edx, dword [ebx + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0xc]
xor eax, dword [esp + 0x24]
xor edx, ecx
push edi
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
call fcn.10033000
mov ebp, dword [edi + 0xc]
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x10]
dec ebp
add ebx, 0x10
add edi, 0x10
mov dword [esp + 0x10], ebp
test ebp, ebp
jg 0x100322c0
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
shl ebp, 4
mov ecx, ebp
mov dword [esp + 0x14], ecx
sub ecx, dword [esp + 0x40]
mov ebp, 0x10
add ecx, 0x10
sub ebp, ecx
xor eax, eax
test ebp, ebp
jle 0x10032366
lea edx, [esp + 0x18]
sub ebx, edx
mov dword [esp + 0x10], ebx
jmp 0x10032354
mov ebx, dword [esp + 0x10]
lea edx, [esp + eax + 0x18]
mov bl, byte [ebx + edx]
xor bl, byte [edx]
inc eax
cmp eax, ebp
mov byte [esp + eax + 0x27], bl
jl 0x10032350
mov eax, ebp
cmp eax, 0x10
jge 0x10032380
lea ecx, [ecx]
mov dl, byte [esp + eax + 0x18]
xor dl, cl
mov byte [esp + eax + 0x28], dl
inc eax
cmp eax, 0x10
jl 0x10032370
push edi
lea eax, [esp + 0x2c]
push eax
call fcn.10033000
mov ecx, dword [edi]
mov dword [esi + 0x20], ecx
mov edx, dword [edi + 4]
mov dword [esi + 0x24], edx
mov eax, dword [edi + 8]
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0xc]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0x2c], ecx
pop esi
add eax, 0x10
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.100d5eaf
add esp, 0x2c
ret 8
mov dword [esp + 0x10], ebp
test ebp, ebp
jle 0x100323e4
push edi
push ebx
call fcn.10033000
mov eax, dword [esp + 0x10]
dec eax
add ebx, 0x10
add edi, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jg 0x100323c6
mov ecx, dword [esp + 0x40]
shl ebp, 4
mov dword [esp + 0x14], ebp
sub ebp, ecx
add ebp, 0x10
mov edx, 0x10
sub edx, ebp
push edx
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.100d6800
push ebp
lea ecx, [esp + 0x48]
sub ecx, ebp
push ebp
push ecx
call fcn.100d6590
add esp, 0x18
push edi
lea edx, [esp + 0x2c]
push edx
call fcn.10033000
mov eax, dword [esp + 0x14]
pop ebp
pop edi
pop esi
add eax, 0x10
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.100d5eaf
add esp, 0x2c
ret 8
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.100d5eaf
add esp, 0x2c
ret 8