Function at 0x10032fb0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xfc
mov eax, dword [0x1013567c]
xor eax, esp
mov dword [esp + 0xf8], eax
mov ecx, dword [esp + 0x108]
mov eax, dword [esp + 0x104]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10c]
xor ebx, ebx
push edi
xor edi, edi
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x11c]
xor ebp, ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x2c], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
test esi, esi
je 0x10033073
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10033013
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
mov dword [esp + 0x14], eax
call fcn.10117340
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x10033048
mov eax, 0xfffffc0d
jmp 0x10033286
lea ecx, [esp + 0x10]
push ecx
push eax
push esi
call fcn.10115420
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
js 0x10033266
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
dec ebp
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], ebp
test eax, eax
je 0x100330e1
mov ecx, eax
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10033080
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
mov dword [esp + 0x18], eax
call fcn.10117340
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x100330b7
mov esi, 0xfffffc0d
jmp 0x10033266
lea eax, [esp + 0x14]
push eax
push ebx
push dword [esp + 0x20]
call fcn.10115420
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
js 0x10033266
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
dec edi
mov dword [esp + 0x14], edi
lea ecx, [edi - 1]
mov esi, dword [esp + 0x2c]
xor edx, edx
lea ebx, [edi + ebp]
mov eax, ebp
mov dword [esp + 0x18], ebx
div ecx
dec edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
js 0x10033137
mov ebx, dword [esp + 0x1c]
mov ebp, eax
lea ebx, [ebx]
mov al, byte [edi + ebx]
test edi, edi
mov edx, ebp
mov byte [ecx], al
cmove edx, dword [esp + 0x28]
inc ecx
test edx, edx
je 0x1003312c
mov al, byte [esi]
inc esi
mov byte [ecx], al
inc ecx
dec edx
jne 0x10033123
dec edi
jns 0x10033110
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov edi, ebx
lea eax, [esp + 0x38]
shr edi, 1
push edi
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.10117410
mov esi, ebx
lea eax, [esp + 0x44]
sub esi, edi
add eax, edi
push esi
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.10117410
push edi
lea eax, [esp + 0xd4]
push eax
lea eax, [esp + 0x58]
add eax, esi
push eax
call fcn.10117410
mov eax, 0x24924925
mov ecx, ebp
mul ebp
add esp, 0x24
xor esi, esi
sub ecx, edx
shr ecx, 1
add ecx, edx
mov edx, ebp
shr ecx, 2
lea eax, [ecx*8]
sub eax, ecx
lea ecx, [ebx - 1]
sub edx, eax
mov dword [esp + 0x28], ecx
mov ah, byte [esp + 0x38]
inc edx
mov dword [esp + 0x24], edx
test ecx, ecx
je 0x100331e7
mov ebx, 8
mov edi, edx
sub ebx, edx
mov ebp, ecx
lea esp, [esp]
mov dl, byte [esp + esi + 0x39]
mov cl, bl
mov al, byte [esp + esi + 0x38]
sar dl, cl
mov ecx, edi
shl al, cl
or dl, al
mov byte [esp + esi + 0x38], dl
inc esi
cmp esi, ebp
jb 0x100331c0
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov al, byte [esp + ebx + 0x37]
mov cl, 8
sub cl, dl
sar ah, cl
mov ecx, edx
shl al, cl
xor ecx, ecx
or ah, al
mov byte [esp + ebx + 0x37], ah
test ebx, ebx
je 0x1003321d
xor edx, edx
mov eax, 0x7fa52ebd
div ebp
mov edx, eax
lea esp, [esp]
mov al, dl
imul cl
xor byte [esp + ecx + 0x38], al
inc ecx
cmp ecx, ebx
jb 0x10033210
cmp dword [esp + 0x14], 4
lea eax, [esp + 0x38]
mov esi, dword [esp + 0x30]
push ebx
push eax
jbe 0x10033246
lea eax, [esi + 2]
push eax
call fcn.10117a60
mov al, byte [esp + 0x20]
mov byte [esi + 1], al
lea eax, [ebx + 2]
mov byte [esi], 0xfe
jmp 0x10033255
lea eax, [esi + 1]
push eax
call fcn.10117a60
mov byte [esi], 0xff
lea eax, [ebx + 1]
mov ecx, dword [esp + 0x40]
add esp, 0xc
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov dword [ecx], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10033277
push eax
call fcn.1011726a
add esp, 4
test ebx, ebx
je 0x10033284
push ebx
call fcn.1011726a
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x108]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1011705d
add esp, 0xfc
ret 0x10