Function at 0x1001d51c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push ebx
push esi
push edi
xor edx, edx
mov ecx, 0x13
xor eax, eax
lea edi, [ebp - 0xb7]
mov byte [ebp - 0xb8], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x15
xor eax, eax
lea edi, [ebp - 0x64]
mov dword [ebp - 0x68], edx
rep stosd dword es:[edi], eax
mov ebx, dword [ebp + 0x18]
mov ecx, 0x16
lea edi, [ebp - 0x68]
cmp ebx, 0x3a
rep stosd dword es:[edi], eax
mov ecx, 0x14
lea edi, [ebp - 0xb8]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 4], edx
mov dword [eax], edx
ja case.default.0x1001d4d6
cmp ebx, edx
lea esi, [ebp - 0xb8]
je 0x1001d38d
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
push eax
mov dword [ebp - 0x68], eax
call fcn.1001ccf0
add esp, 4
test al, al
jne 0x1001d6dd
mov ecx, dword [edi]
lea edi, [ebx + 8]
and cl, 0x10
lea edx, [ebx - 8]
neg cl
sbb ecx, ecx
and ecx, 0x14
shr edi, 4
add ecx, 0x22000c
inc edi
test dl, 0xf
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edi
je 0x1001d3d3
cmp ebx, 0x3a
jne 0x1001d3d7
dec edi
mov dword [ebp - 8], edi
cmp edi, 4
ja case.default.0x1001d4d6
mov eax, dword [ebp + 0xc]
cmp eax, 0x33
jne 0x1001d3f1
mov dword [ebp + 0x14], 2
jmp 0x1001d400
cmp eax, 1
mov dword [ebp + 0x14], 3
je 0x1001d400
mov dword [ebp + 0x14], edi
mov eax, dword [ebp + 0x14]
mov ebx, edi
shl eax, 4
add eax, 8
push 2
shl ebx, 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x5a]
add ebx, 8
push eax
mov dword [ebp - 0x64], ebx
mov byte [ebp - 0x60], 8
call fcn.1001b970
mov cl, byte [ebp + 0xc]
mov dl, byte [ebp + 0x10]
mov al, byte [esi]
mov byte [ebp - 0x58], cl
mov cl, byte [esi + 1]
mov byte [ebp - 0x57], dl
mov dl, byte [esi + 2]
mov byte [ebp - 0x55], cl
mov byte [ebp - 0x56], al
mov al, byte [esi + 3]
lea ecx, [ebp - 0x52]
push 2
push ecx
mov byte [ebp - 0x54], dl
mov byte [ebp - 0x53], al
call fcn.1001b970
mov edx, dword [ebp + 0x18]
cmp edx, 4
jbe 0x1001d4a6
lea ecx, [edx - 4]
add esi, 4
mov eax, ecx
lea edi, [ebp - 0x50]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, ebx
sub eax, edx
and ecx, 3
sub eax, 0xf
test eax, eax
rep movsb byte es:[edi], byte [esi]
jle 0x1001d48c
lea ecx, [ebp + edx - 0x54]
push eax
push ecx
call fcn.1001b970
mov edx, dword [ebp + 0x18]
mov edi, dword [ebp - 8]
mov cl, byte [ebp + ebx - 0x64]
cmp edx, 4
mov byte [ebp + 0x18], cl
jbe 0x1001d4b8
sub dl, 4
and edx, 0xff
jmp 0x1001d4ba
lea edx, [ebx - 0x13]
lea eax, [ebp - 0x50]
push edx
push eax
call fcn.1001b970
mov edx, dword [ebp + 0x18]
jmp 0x1001d48f
xor edx, edx
mov byte [ebp + ebx - 0x63], dl
mov dl, byte [ebp - 0x52]
mov byte [ebp + ebx - 0x62], dl
mov al, byte [ebp - 0x51]
dec edi
mov byte [ebp + ebx - 0x61], al
cmp edi, 3
ja case.default.0x1001d4d6
jmp dword [edi*4 + 0x1001d6e4]
jmp 0x1001d4e7
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [esi + 0x30]
push edx
call fcn.1001bcc0
add esp, 8
xor eax, eax
mov cl, byte [ebp + eax - 0x38]
mov bl, byte [ebp + eax - 0x28]
xor bl, cl
mov byte [ebp + eax - 0x28], bl
inc eax
cmp eax, 0x10
jb 0x1001d4fc
jmp 0x1001d51a
jmp 0x1001d51f
mov esi, dword [ebp + 8]
jmp 0x1001d529
mov eax, dword [esi + 0x30]
lea edx, [ebp - 0x38]
push edx
push eax
call fcn.1001bcc0
add esp, 8
xor eax, eax
mov cl, byte [ebp + eax - 0x48]
mov bl, byte [ebp + eax - 0x38]
xor bl, cl
mov byte [ebp + eax - 0x38], bl
inc eax
cmp eax, 0x10
jb 0x1001d53b
jmp 0x1001d559
jmp 0x1001d55e
mov esi, dword [ebp + 8]
jmp 0x1001d568
mov eax, dword [esi + 0x30]
lea edx, [ebp - 0x48]
push edx
push eax
call fcn.1001bcc0
add esp, 8
xor eax, eax
mov cl, byte [ebp + eax - 0x58]
mov bl, byte [ebp + eax - 0x48]
xor bl, cl
mov byte [ebp + eax - 0x48], bl
inc eax
cmp eax, 0x10
jb 0x1001d57a
jmp 0x1001d598
jmp 0x1001d59d
mov esi, dword [ebp + 8]
jmp 0x1001d5a7
mov eax, dword [esi + 0x30]
lea edx, [ebp - 0x58]
push edx
push eax
call fcn.1001bcc0
jmp 0x1001d5be
lea ecx, [ebp - 0x60]
push ecx
call fcn.10029040
mov edi, dword [ebp + 0x1c]
add esp, 0xc
test edi, edi
jne 0x1001d5fe
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 4]
push edx
push edi
push edi
lea eax, [ebp - 0x68]
push 0x58
push eax
push ecx
call fcn.1001c2e0
mov edx, dword [esi + 0x2c]
mov edi, eax
push edx
call fcn.1001cd50
add esp, 0x1c
mov ax, di
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0xb8]
push ecx
mov ecx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x68]
push 0x58
push eax
push ecx
call fcn.1001c2e0
mov ebx, eax
add esp, 0x18
test bl, bl
je 0x1001d63b
mov edx, dword [esi + 0x2c]
push edx
call fcn.1001cd50
add esp, 4
mov ax, bx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
cmp ecx, eax
je 0x1001d65c
mov ecx, dword [esi + 0x2c]
push ecx
call fcn.1001cd50
add esp, 4
mov ax, 0x1d0d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov ecx, dword [esi + 0x30]
push edx
push eax
lea edx, [ebp - 0xb8]
push ecx
push edx
call fcn.1001cfc0
add esp, 0x10
mov dword [ebp + 0x18], eax
test al, al
jne 0x1001d6c2
mov eax, dword [ebp + 0x24]
mov esi, dword [ebp + 0x20]
mov ebx, dword [ebp + 0x1c]
xor edx, edx
mov dword [eax], esi
mov eax, edi
lea edi, [ebp - 0xb6]
sub edi, ebx
test esi, esi
jbe 0x1001d6a6
mov cl, byte [edi + eax]
inc edx
mov byte [eax], cl
inc eax
dec esi
cmp edx, 4
jb 0x1001d695
mov ecx, esi
lea esi, [ebp - 0xb0]
mov edx, ecx
lea edi, [ebx + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x2c]
push eax
call fcn.1001cd50
mov ax, word [ebp + 0x18]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ax, 0x1d10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret