Function at 0x10032d20
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 0x10032de3
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10032d83
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
mov dword [esp + 0x14], eax
call fcn.101174f0
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x10032db8
mov eax, 0xfffffc0d
jmp 0x10032ff6
lea ecx, [esp + 0x10]
push ecx
push eax
push esi
call fcn.10115620
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
js 0x10032fd6
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 0x10032e51
mov ecx, eax
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10032df0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
mov dword [esp + 0x18], eax
call fcn.101174f0
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x10032e27
mov esi, 0xfffffc0d
jmp 0x10032fd6
lea eax, [esp + 0x14]
push eax
push ebx
push dword [esp + 0x20]
call fcn.10115620
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
js 0x10032fd6
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 0x10032ea7
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 0x10032e9c
mov al, byte [esi]
inc esi
mov byte [ecx], al
inc ecx
dec edx
jne 0x10032e93
dec edi
jns 0x10032e80
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.101175c0
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.101175c0
push edi
lea eax, [esp + 0xd4]
push eax
lea eax, [esp + 0x58]
add eax, esi
push eax
call fcn.101175c0
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 0x10032f57
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]
shr dl, cl
mov ecx, edi
shl al, cl
or dl, al
mov byte [esp + esi + 0x38], dl
inc esi
cmp esi, ebp
jb 0x10032f30
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
shr ah, cl
mov ecx, edx
shl al, cl
xor ecx, ecx
or ah, al
mov byte [esp + ebx + 0x37], ah
test ebx, ebx
je 0x10032f8d
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 0x10032f80
cmp dword [esp + 0x14], 4
lea eax, [esp + 0x38]
mov esi, dword [esp + 0x30]
push ebx
push eax
jbe 0x10032fb6
lea eax, [esi + 2]
push eax
call fcn.10117c10
mov al, byte [esp + 0x20]
mov byte [esi + 1], al
lea eax, [ebx + 2]
mov byte [esi], 0xfe
jmp 0x10032fc5
lea eax, [esi + 1]
push eax
call fcn.10117c10
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 0x10032fe7
push eax
call fcn.1011741a
add esp, 4
test ebx, ebx
je 0x10032ff4
push ebx
call fcn.1011741a
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x108]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1011720d
add esp, 0xfc
ret 0x10