Function at 0x10033620
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x14], esi
mov ebp, dword [esi + 0x20]
mov ebx, dword [esi + 0xc]
mov dword [esp + 0xc], ebp
cmp ebp, ebx
jge 0x100338af
push edi
cmp dword [esi + 0x24], ebx
jge 0x100336a5
test ebx, ebx
je 0x1003365e
lea eax, [ebx*4]
push 0x10
push eax
call fcn.1005c880
add esp, 8
mov edi, eax
jmp 0x10033660
xor edi, edi
mov edx, dword [esi + 0x20]
xor ecx, ecx
test edx, edx
jle 0x1003367e
nop dword [eax]
mov eax, dword [esi + 0x28]
mov eax, dword [eax + ecx*4]
mov dword [edi + ecx*4], eax
inc ecx
cmp ecx, edx
jl 0x10033670
mov eax, dword [esi + 0x28]
test eax, eax
je 0x1003369b
cmp byte [esi + 0x2c], 0
je 0x10033694
push eax
call fcn.1005c890
add esp, 4
mov dword [esi + 0x28], 0
mov byte [esi + 0x2c], 1
mov dword [esi + 0x28], edi
mov dword [esi + 0x24], ebx
mov edx, ebx
mov ecx, ebp
sub edx, ebp
cmp edx, 4
jb 0x10033710
mov eax, dword [esi + 0x28]
lea edi, [esi + 0x28]
lea ebp, [eax + ebp*4]
lea eax, [eax + ebx*4]
mov dword [esp + 0x14], ebp
add eax, 0xfffffffc
cmp ebp, edi
ja 0x100336cb
cmp eax, edi
jae 0x10033710
and edx, 0x80000003
jns 0x100336d8
dec edx
or edx, 0xfffffffc
inc edx
mov eax, ebx
sub eax, edx
nop dword [eax]
add ecx, 4
mov ebp, ecx
cmp ecx, eax
jl 0x100336e0
sub eax, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
add eax, 3
cdq
and edx, 3
lea ecx, [edx + eax]
xor eax, eax
sar ecx, 2
shl ecx, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
cmp ebp, ebx
jge 0x1003371f
nop
mov eax, dword [esi + 0x28]
mov dword [eax + ecx*4], 0
inc ecx
cmp ecx, ebx
jl 0x10033710
mov dword [esi + 0x20], ebx
mov edi, dword [esi + 0x34]
cmp ebx, edi
jl 0x10033810
jle 0x10033796
cmp dword [esi + 0x38], ebx
jge 0x10033796
test ebx, ebx
je 0x1003374e
lea eax, [ebx*4]
push 0x10
push eax
call fcn.1005c880
add esp, 8
mov ebp, eax
jmp 0x10033750
xor ebp, ebp
mov edx, dword [esi + 0x34]
xor ecx, ecx
test edx, edx
jle 0x1003376f
nop dword [eax]
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + ecx*4]
mov dword [ebp + ecx*4], eax
inc ecx
cmp ecx, edx
jl 0x10033760
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x1003378c
cmp byte [esi + 0x40], 0
je 0x10033785
push eax
call fcn.1005c890
add esp, 4
mov dword [esi + 0x3c], 0
mov byte [esi + 0x40], 1
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x38], ebx
mov edx, ebx
mov ecx, edi
sub edx, edi
cmp edi, ebx
jge 0x10033810
cmp edx, 4
jb 0x10033801
mov eax, dword [esi + 0x3c]
lea ebp, [esi + 0x3c]
lea esi, [eax + edi*4]
lea eax, [eax + ebx*4]
mov dword [esp + 0x14], esi
add eax, 0xfffffffc
cmp esi, ebp
mov esi, dword [esp + 0x18]
ja 0x100337c4
cmp eax, ebp
jae 0x10033801
and edx, 0x80000003
jns 0x100337d1
dec edx
or edx, 0xfffffffc
inc edx
mov eax, ebx
sub eax, edx
add ecx, 4
mov ebp, ecx
cmp ecx, eax
jl 0x100337d5
sub eax, edi
mov edi, dword [esp + 0x14]
add eax, 3
cdq
and edx, 3
lea ecx, [edx + eax]
xor eax, eax
sar ecx, 2
shl ecx, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
cmp ebp, ebx
jge 0x10033810
mov eax, dword [esi + 0x3c]
mov dword [eax + ecx*4], 0
inc ecx
cmp ecx, ebx
jl 0x10033801
xor ecx, ecx
mov dword [esi + 0x34], ebx
lea edi, [esi + 0x28]
test ebx, ebx
jle 0x1003383f
nop dword [eax]
mov eax, dword [edi]
mov dword [eax + ecx*4], 0xffffffff
inc ecx
cmp ecx, ebx
jl 0x10033820
xor ecx, ecx
mov eax, dword [esi + 0x3c]
mov dword [eax + ecx*4], 0xffffffff
inc ecx
cmp ecx, ebx
jl 0x10033830
xor ebx, ebx
cmp dword [esp + 0x10], ebx
jle 0x100338ae
xor ebp, ebp
nop dword [eax]
mov ecx, dword [esi + 0x10]
lea ebp, [ebp + 0x10]
mov eax, dword [ecx + ebp - 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [ecx + ebp - 0x10]
shl edx, 0x10
or edx, dword [eax + 0xc]
mov eax, edx
shl eax, 0xf
not eax
add edx, eax
mov eax, edx
shr eax, 0xa
xor eax, edx
lea ecx, [eax + eax*8]
mov eax, ecx
shr eax, 6
xor ecx, eax
mov eax, ecx
shl eax, 0xb
not eax
add ecx, eax
mov eax, dword [esi + 0xc]
mov edx, ecx
dec eax
shr edx, 0x10
xor edx, ecx
mov ecx, dword [esi + 0x3c]
and edx, eax
mov eax, dword [edi]
mov eax, dword [eax + edx*4]
mov dword [ecx + ebx*4], eax
mov eax, dword [edi]
mov dword [eax + edx*4], ebx
inc ebx
cmp ebx, dword [esp + 0x10]
jl 0x10033850
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret