Function at 0x10002130
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x3c
mov eax, dword [0x100b0380]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x44]
push ebp
mov ebp, dword [esp + 0x4c]
push esi
mov esi, ecx
mov dword [esp + 0x28], eax
cmp esi, ebx
je 0x100021d2
mov eax, edi
mov dword [esp + 0x14], eax
cmp ebp, 0x10
jb 0x100021b7
mov eax, ebp
shr eax, 4
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x28]
push ecx
push ebx
push esi
call fcn.100019e0
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov eax, ebx
sub ecx, ebx
mov dword [esp + 0x1c], 4
lea ebx, [ebx]
mov edx, dword [ecx + eax]
xor dword [eax], edx
add eax, 4
sub dword [esp + 0x1c], 1
jne 0x10002190
mov dword [esp + 0x14], esi
sub ebp, 0x10
add esi, 0x10
add ebx, 0x10
sub dword [esp + 0x18], 1
jne 0x1000216b
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov ecx, dword [eax + 8]
mov dword [edi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [edi + 0xc], edx
jmp 0x10002272
cmp ebp, 0x10
jb 0x10002272
lea ecx, [esp + 0x34]
mov eax, edi
sub eax, ecx
mov dword [esp + 0x20], eax
mov eax, ebx
mov edx, ecx
sub eax, edx
mov dword [esp + 0x18], eax
mov eax, esi
sub eax, ecx
mov dword [esp + 0x14], eax
mov eax, ebp
shr eax, 4
mov dword [esp + 0x24], eax
shl eax, 4
add ebx, eax
mov edx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x38]
push eax
push esi
call fcn.100019e0
add esp, 0xc
xor eax, eax
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + eax + 0x34]
mov edx, dword [ecx + eax]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], edx
mov edx, dword [ecx + eax]
xor edx, dword [eax]
mov ecx, dword [esp + 0x18]
mov dword [ecx + eax], edx
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov dword [ecx + eax], edx
mov eax, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x1c], eax
cmp eax, 0x10
jb 0x10002220
mov eax, 0x10
add dword [esp + 0x14], eax
add dword [esp + 0x18], eax
sub ebp, eax
add esi, eax
sub dword [esp + 0x24], 1
jne 0x10002207
test ebp, ebp
je 0x100023eb
lea edx, [esp + 0x34]
mov eax, edi
sub eax, edx
mov dword [esp + 0x20], eax
mov ecx, edx
mov eax, 1
sub eax, ecx
mov dword [esp + 0x2c], eax
mov eax, 2
sub eax, edx
mov dword [esp + 0x24], eax
mov eax, 3
sub eax, ecx
mov dword [esp + 0x30], eax
mov eax, ecx
lea edx, [ebx + 2]
sub ebx, eax
mov eax, esi
sub eax, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x38]
push eax
push esi
call fcn.100019e0
add esp, 0xc
xor eax, eax
cmp eax, ebp
jae 0x1000238d
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + eax + 0x34]
movzx edx, byte [edx + ecx]
mov byte [esp + 0x13], dl
mov edx, dword [esp + 0x20]
movzx edx, byte [edx + ecx]
xor dl, byte [ecx]
mov byte [ebx + ecx], dl
movzx edx, byte [esp + 0x13]
mov ebx, dword [esp + 0x20]
mov byte [ebx + ecx], dl
mov edx, dword [esp + 0x2c]
add edx, ecx
cmp edx, ebp
jae 0x100023c6
mov dl, byte [esi + eax + 1]
movzx ebx, byte [ecx + 1]
xor bl, byte [edi + eax + 1]
mov byte [esp + 0x13], dl
mov edx, dword [esp + 0x14]
mov byte [edx + eax - 1], bl
movzx ebx, byte [esp + 0x13]
mov byte [edi + eax + 1], bl
mov ebx, dword [esp + 0x24]
add ebx, ecx
cmp ebx, ebp
jae 0x100023c9
movzx ebx, byte [esi + eax + 2]
mov byte [esp + 0x13], bl
movzx ebx, byte [ecx + 2]
xor bl, byte [edi + eax + 2]
mov byte [edx + eax], bl
movzx ebx, byte [esp + 0x13]
mov byte [edi + eax + 2], bl
mov ebx, dword [esp + 0x30]
add ebx, ecx
cmp ebx, ebp
jae 0x100023ce
mov cl, byte [ecx + 3]
xor cl, byte [edi + eax + 3]
mov bl, byte [esi + eax + 3]
mov byte [edx + eax + 1], cl
mov byte [edi + eax + 3], bl
add eax, 4
cmp eax, 0x10
jb 0x100022d5
mov edx, dword [esp + 0x14]
mov ebx, 0x10
cmp ebp, ebx
jbe 0x100023d3
add dword [esp + 0x18], ebx
add dword [esp + 0x1c], ebx
sub ebp, ebx
add edx, ebx
add esi, ebx
mov dword [esp + 0x14], edx
test ebp, ebp
jne 0x100022c0
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.10079a05
add esp, 0x3c
ret
inc eax
jmp 0x1000238d
add eax, 2
jmp 0x10002391
add eax, 3
jmp 0x10002391
cmp eax, ebx
jae 0x100023eb
mov edx, ebx
sub esi, edi
lea ecx, [edi + eax]
sub edx, eax
mov al, byte [esi + ecx]
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x100023e0
mov ecx, dword [esp + 0x44]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10079a05
add esp, 0x3c
ret