Function at 0x10001d69
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
push ebx
push ebp
mov edx, ecx
xor ebx, ebx
push esi
push edi
inc ebx
mov dword [esp + 0x20], edx
cmp dword [edx + 4], 0
push 0x20
jne 0x10001dc0
mov eax, dword [esp + 0x48]
lea esi, [esp + 0x2c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
pop eax
sub esp, 0x18
mov byte [esp + 0x57], bl
mov byte [esp + 0x56], bl
mov word [esp + 0x54], ax
push 6
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x10001fcf
pop ecx
cmp dword [edx + 4], ebx
jne 0x10001e1a
mov esi, dword [edx]
cmp word [esi + 0x14], cx
jne 0x10001e1a
mov edi, dword [esp + 0x44]
cmp edi, dword [esi]
jne 0x10001de7
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x10], ecx
mov dword [esi + 0xc], ecx
mov al, bl
jmp 0x10001fd6
mov eax, dword [esi]
xor eax, edi
push 0x1f
pop edx
mov ecx, edx
js 0x10001dfd
mov eax, dword [esi]
dec ecx
xor eax, edi
shr eax, cl
test bl, al
je 0x10001df2
mov eax, dword [esp + 0x48]
sub edx, ecx
mov word [esi + 0x14], dx
mov edx, edi
shr edx, cl
and edx, ebx
mov dword [esi + edx*4 + 0xc], eax
mov dword [esi + edx*4 + 4], edi
jmp 0x10001fd4
mov edi, dword [esp + 0x44]
mov ebp, ecx
mov ecx, dword [edx]
xor eax, eax
mov dword [esp + 0x18], ecx
imul edx, eax, 0x18
add edx, ecx
mov dword [esp + 0x14], edx
movzx eax, word [edx + 0x14]
movzx esi, ax
sub ebp, esi
mov dword [esp + 0x24], eax
cmp ebp, 0x20
je 0x10001e7d
mov eax, edi
mov ecx, ebp
shr eax, cl
mov dword [esp + 0x10], eax
cmp esi, 0x20
je 0x10001e5d
mov eax, ebx
mov ecx, esi
shl eax, cl
dec eax
and dword [esp + 0x10], eax
mov eax, dword [edx]
mov ecx, ebp
shr eax, cl
mov dword [esp + 0x1c], eax
cmp esi, 0x20
je 0x10001e77
mov eax, ebx
mov ecx, esi
shl eax, cl
dec eax
and eax, dword [esp + 0x1c]
cmp dword [esp + 0x10], eax
jne 0x10001ea3
dec ebp
mov esi, edi
mov ecx, ebp
shr esi, cl
and esi, ebx
mov dword [esp + 0x1c], esi
cmp byte [esi + edx + 0x16], 0
mov eax, dword [edx + esi*4 + 4]
mov dword [esp + 0x10], eax
jne 0x10001f23
mov ecx, dword [esp + 0x18]
jmp 0x10001e28
mov eax, dword [edx]
dec esi
xor eax, edi
mov dword [esp + 0x10], esi
lea ecx, [esi + ebp]
shr eax, cl
test bl, al
jne 0x10001ec5
mov eax, dword [edx]
dec esi
dec ecx
xor eax, edi
shr eax, cl
test bl, al
je 0x10001eb5
mov dword [esp + 0x10], esi
push 6
pop ecx
mov esi, edx
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
movzx eax, cx
add ecx, ebp
mov ebp, dword [esp + 0x44]
sub esi, eax
dec esi
mov word [esp + 0x3c], ax
mov eax, dword [esp + 0x48]
mov word [edx + 0x14], si
mov esi, ebp
shr esi, cl
and esi, ebx
push 2
mov dword [edx + esi*4 + 0xc], eax
mov eax, edx
mov byte [esi + edx + 0x16], bl
sub eax, esi
mov ebx, dword [esp + 0x24]
mov byte [eax + 0x17], 0
mov dword [edx + esi*4 + 4], ebp
mov eax, dword [ebx + 4]
pop edx
sub edx, esi
mov dword [edi + edx*4], eax
jmp 0x10001fbf
cmp edi, eax
jne 0x10001f34
mov eax, dword [esp + 0x48]
mov dword [edx + esi*4 + 0xc], eax
jmp 0x10001de0
lea ecx, [ebp - 1]
xor eax, edi
shr eax, cl
mov dword [esp + 0x18], ecx
test bl, al
jne 0x10001f56
mov edx, dword [esp + 0x10]
mov eax, edx
dec ecx
xor eax, edi
shr eax, cl
test bl, al
je 0x10001f47
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x48]
mov esi, edi
mov edi, dword [esp + 0x14]
shr esi, cl
lea ecx, [esp + 0x38]
and esi, ebx
sub ebp, dword [esp + 0x18]
mov edx, esi
shl edx, 2
sub ecx, edx
mov dword [esp + edx + 0x34], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [edi + eax*4 + 0xc]
mov dword [ecx], eax
lea eax, [esp + 0x3f]
mov ecx, dword [esp + 0x10]
sub eax, esi
mov byte [eax], bl
mov eax, dword [esp + 0x44]
mov byte [esp + esi + 0x3e], bl
mov ebx, dword [esp + 0x20]
mov dword [esp + edx + 0x2c], eax
lea eax, [esp + 0x30]
sub eax, edx
mov dword [esp + 0x28], ecx
dec ebp
mov dword [eax], ecx
mov ecx, dword [esp + 0x1c]
mov word [esp + 0x3c], bp
mov byte [ecx + edi + 0x16], 0
mov eax, dword [ebx + 4]
mov dword [edi + ecx*4 + 4], eax
sub esp, 0x18
lea esi, [esp + 0x40]
push 6
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.10001c21
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8