Function at 0x101d25a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44c
mov eax, dword [0x1058ac14]
xor eax, esp
mov dword [esp + 0x448], eax
mov eax, dword [esp + 0x450]
mov edx, dword [esp + 0x454]
push ebx
push ebp
mov ebp, 4
mov dword [esp + 0x1c], eax
cmp dword [eax + 0x18], ebp
push esi
cmovl ebp, dword [eax + 0x18]
xor ecx, ecx
push edi
lea eax, [edx + 8]
nop dword [eax + eax]
cmp dword [eax - 8], 0
jne 0x101d261b
cmp dword [eax - 4], 0
jne 0x101d261a
cmp dword [eax], 0
jne 0x101d2615
cmp dword [eax + 4], 0
jne 0x101d2610
add ecx, 4
add eax, 0x10
mov dword [esp + 0x20], ecx
cmp ecx, 0xff
jle 0x101d25e0
mov esi, 0xff
jmp 0x101d263b
add ecx, 3
jmp 0x101d261b
add ecx, 2
jmp 0x101d261b
inc ecx
mov esi, 0xff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], esi
cmp ecx, esi
jge 0x101d263f
nop dword [eax]
cmp dword [edx + esi*4], 0
jne 0x101d263b
dec esi
cmp esi, ecx
jg 0x101d2630
mov dword [esp + 0x14], esi
mov ebx, esi
xor edi, edi
sub ebx, ecx
test ebp, ebp
jle 0x101d2678
lea eax, [ebp*2]
mov dword [esp + 0x10], eax
lea eax, [ebx + ebx]
mov dword [esp + 0x18], eax
mov esi, eax
nop dword [eax]
mov eax, ebx
add ebx, esi
cdq
idiv dword [esp + 0x10]
add eax, ecx
mov dword [esp + edi*4 + 0x28], eax
inc edi
cmp edi, ebp
jl 0x101d2660
mov esi, dword [esp + 0x14]
mov dword [esp + 0x18], 0
test ebp, ebp
jle 0x101d26a7
lea edx, [ebp*4]
xor eax, eax
mov ecx, edx
lea edi, [esp + 0x38]
shr ecx, 2
rep stosd dword es:[edi], eax
shr edx, 2
lea edi, [esp + 0x48]
mov ecx, edx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x20]
xor edi, edi
mov ebx, ecx
cmp ecx, esi
jg 0x101d270f
mov eax, dword [esp + 0x464]
mov edx, dword [eax + ebx*4]
mov dword [esp + 0x10], edx
test edx, edx
je 0x101d270a
lea ecx, [edi + 1]
cmp ecx, ebp
jge 0x101d26f2
mov eax, ebx
sub eax, dword [esp + edi*4 + 0x2c]
cdq
mov esi, eax
mov eax, ebx
sub eax, dword [esp + edi*4 + 0x28]
xor esi, edx
sub esi, edx
cdq
xor eax, edx
sub eax, edx
cmp esi, eax
jge 0x101d26ea
inc ecx
inc edi
cmp ecx, ebp
jl 0x101d26c8
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov eax, edx
mov dword [esp + ebx*4 + 0x58], edi
imul eax, ebx
add dword [esp + edi*4 + 0x48], eax
add dword [esp + edi*4 + 0x38], edx
mov eax, dword [esp + 0x464]
inc ebx
cmp ebx, esi
jle 0x101d26b6
xor ecx, ecx
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x1c], ecx
xor esi, esi
mov dword [esp + 0x10], edi
test ebp, ebp
jle 0x101d276a
mov edi, dword [esp + esi*4 + 0x38]
test edi, edi
je 0x101d275d
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + esi*4 + 0x48]
sar ecx, 1
add eax, ecx
cdq
idiv edi
mov ecx, eax
mov eax, dword [esp + esi*4 + 0x28]
sub eax, ecx
mov dword [esp + esi*4 + 0x28], ecx
cdq
xor eax, edx
sub eax, edx
add dword [esp + 0x1c], eax
mov eax, edi
imul eax, ecx
add dword [esp + 0x10], eax
add ebx, edi
inc esi
cmp esi, ebp
jl 0x101d2723
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
add eax, edi
cdq
idiv ebx
mov edi, eax
cmp ecx, 5
jl 0x101d2797
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
inc eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], eax
cmp eax, 6
jl 0x101d2680
mov ebx, dword [esp + 0x24]
xor esi, esi
mov eax, dword [ebx + 0x2c]
imul eax, dword [ebx + 0x28]
test eax, eax
jle 0x101d27e0
nop dword [eax + eax]
mov eax, dword [ebx + 0x588c]
lea edx, [eax + esi*8]
inc esi
movzx eax, byte [edx + 4]
mov ecx, dword [esp + eax*4 + 0x58]
mov eax, ecx
shl eax, 5
xor eax, dword [edx]
and eax, 0x60
xor dword [edx], eax
mov al, byte [esp + ecx*4 + 0x28]
mov byte [edx + 4], al
mov eax, dword [ebx + 0x28]
imul eax, dword [ebx + 0x2c]
cmp esi, eax
jl 0x101d27b0
cmp ebp, 1
jle 0x101d27f6
mov eax, dword [ebx]
test byte [eax + 0x44], 1
je 0x101d27f6
push ebx
call fcn.101d2bd0
add esp, 4
push edi
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.101d2a40
mov ecx, dword [esp + 0x464]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1026b168
add esp, 0x44c
ret