Function at 0x102d1a40
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
mov eax, 0x3521cfb3
mul ebp
mov eax, ebp
mov ecx, ebp
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x35
push esi
push edi
sub ecx, eax
mov eax, dword [esp + 0x20]
mov ebx, dword [eax + 0x10]
add ebx, 0x10c
xor esi, esi
lea ebx, [ebx + ecx*8]
mov dword [esp + 0x18], ebx
nop word [eax + eax]
mov edi, dword [ebx + esi*4]
mov ecx, ebp
lea eax, [edi + 0x10]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x102d1aa8
test dl, dl
je 0x102d1aa4
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x102d1aa8
add ecx, 2
add eax, 2
test dl, dl
jne 0x102d1a88
xor eax, eax
jmp 0x102d1aad
sbb eax, eax
or eax, 1
test eax, eax
je 0x102d1c97
inc esi
cmp esi, 2
jl 0x102d1a80
mov eax, dword [ebx]
mov dword [ebx + 4], eax
mov ebx, ebp
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x102d1ac5
sub ebx, ecx
cmp ebx, 0x28
ja 0x102d1c57
mov eax, dword [esp + 0x20]
mov edx, ebx
mov esi, edx
shr esi, 5
inc esi
mov eax, dword [eax + 0x10]
mov dword [esp + 0x10], eax
mov ebp, dword [eax + 0x38]
xor ebp, edx
cmp edx, esi
jb 0x102d1b1b
mov edi, dword [esp + 0x24]
nop word [eax + eax]
movzx ecx, byte [edi + edx - 1]
mov eax, ebp
shl eax, 5
sub edx, esi
add ecx, eax
mov eax, ebp
shr eax, 2
add ecx, eax
xor ebp, ecx
cmp edx, esi
jae 0x102d1b00
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
lea ecx, [edx - 1]
and ecx, ebp
mov edi, dword [eax + ecx*4]
lea eax, [eax + ecx*4]
mov dword [esp + 0x14], eax
test edi, edi
je 0x102d1bb5
movzx eax, byte [edi + 7]
cmp ebx, eax
jne 0x102d1ba7
mov ecx, dword [esp + 0x24]
lea edx, [edi + 0x10]
mov esi, ebx
sub esi, 4
jb 0x102d1b61
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x102d1b6a
add ecx, 4
add edx, 4
sub esi, 4
jae 0x102d1b50
cmp esi, 0xfffffffc
je 0x102d1c31
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x102d1ba7
cmp esi, 0xfffffffd
je 0x102d1c31
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x102d1ba7
cmp esi, 0xfffffffe
je 0x102d1c31
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x102d1ba7
cmp esi, 0xffffffff
je 0x102d1c31
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x102d1c31
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x102d1b38
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 0x20]
cmp dword [esi + 0x1c], edx
jl 0x102d1be2
cmp edx, 0x3fffffff
jg 0x102d1be2
lea eax, [edx + edx]
push eax
push dword [esp + 0x24]
call fcn.102d1f10
mov ecx, dword [esi + 0x20]
add esp, 8
mov eax, dword [esi + 0x18]
dec ecx
and ecx, ebp
lea eax, [eax + ecx*4]
mov dword [esp + 0x14], eax
lea eax, [ebx + 0x11]
push eax
push 4
push dword [esp + 0x28]
call fcn.102d01c0
mov edi, eax
push ebx
push dword [esp + 0x34]
lea eax, [edi + 0x10]
mov dword [edi + 8], ebp
mov byte [edi + 6], 0
push eax
mov byte [ebx + edi + 0x10], 0
call fcn.102e4250
mov ecx, dword [esp + 0x2c]
add esp, 0x18
mov byte [edi + 7], bl
mov eax, dword [ecx]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x18]
mov dword [ecx], edi
inc dword [esi + 0x1c]
mov dword [eax], edi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x10]
mov cl, byte [edi + 5]
xor cl, 3
mov al, byte [eax + 0x3c]
xor al, 3
test cl, al
jne 0x102d1c91
mov eax, dword [esp + 0x18]
mov byte [edi + 5], cl
mov dword [eax], edi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp ebx, 0xffffffef
jae 0x102d1ca1
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0x10]
mov esi, dword [eax + 0x38]
lea eax, [ebx + 0x11]
push eax
push 0x14
push ecx
call fcn.102d01c0
mov edi, eax
push ebx
push ebp
lea eax, [edi + 0x10]
mov dword [edi + 8], esi
mov byte [edi + 6], 0
mov byte [ebx + edi + 0x10], 0
push eax
mov dword [edi + 0xc], ebx
call fcn.102e4250
add esp, 0x18
mov eax, dword [esp + 0x18]
mov dword [eax], edi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push dword [esp + 0x20]
call fcn.102d6ff0
int3