Function at 0x10005218
Capabilities:
Encode data using xor

Disassembly:
jmp 0x10114970
mov eax, 0x20
call fcn.101aa6d0
push ebp
mov ebp, dword [esp + 0x34]
push esi
mov esi, dword [esp + 0x2c]
xor ecx, ecx
mov eax, dword [esi + 0x170]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x174]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x164]
mov dword [esp + 0x10], eax
mov eax, ebp
add eax, dword [esi + 0x38]
adc ecx, dword [esi + 0x3c]
cmp ecx, 0xf
ja 0x10114c9c
jb 0x101149c0
cmp eax, 0xffffffe0
ja 0x10114c9c
cmp dword [esi + 0x16c], 0
mov dword [esi + 0x3c], ecx
mov ecx, dword [esi + 0x168]
mov dword [esi + 0x38], eax
mov dword [esp + 8], ecx
je 0x10114a47
test ebp, ebp
jne 0x101149fe
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
mov eax, dword [esi + 0x160]
call eax
add esp, 8
mov dword [esi + 0x16c], ebp
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret
movq xmm0, qword [esi + 0x40]
movq qword [esi + 0x178], xmm0
movq xmm0, qword [esi + 0x48]
mov ecx, 0x10
movq qword [esi + 0x180], xmm0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esp + 8], ecx
mov dword [esi + 0x16c], 0
mov eax, dword [esi + 0xc]
bswap eax
push ebx
mov ebx, dword [esp + 0x38]
mov edx, ecx
and edx, 0xf
push edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], edx
je 0x10114ab1
test ebp, ebp
je 0x10114a8c
mov al, byte [edx + esi + 0x10]
xor al, byte [edi]
dec ebp
mov byte [ebx], al
mov byte [ecx + esi + 0x178], al
inc edx
inc ecx
inc ebx
inc edi
and edx, 0xf
mov dword [esp + 0x40], ebp
mov dword [esp + 0x2c], edx
jne 0x10114a65
jmp 0x10114a94
test edx, edx
jne 0x10114c8c
push ecx
lea eax, [esi + 0x178]
push eax
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call dword [esp + 0x28]
add esp, 0x10
xor ecx, ecx
mov dword [esp + 0x10], ecx
cmp ebp, 0x10
jb 0x10114ad9
test ecx, ecx
je 0x10114ad9
push ecx
lea eax, [esi + 0x178]
push eax
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call dword [esp + 0x28]
add esp, 0x10
mov dword [esp + 0x10], 0
cmp ebp, 0xc00
jb 0x10114b90
mov eax, 0xaaaaaaab
mul ebp
shr edx, 0xb
lea ecx, [esi + 0x10]
mov dword [esp + 0x28], edx
jmp 0x10114b00
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x24], 0xc0
lea esp, [esp]
push dword [esp + 0x1c]
push ecx
push esi
call dword [esp + 0x2c]
inc ebp
mov eax, ebp
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
xor eax, dword [edi]
lea ecx, [esi + 0x10]
mov dword [ebx], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
add esp, 0xc
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
add ebx, 0x10
mov dword [ebx - 8], eax
mov eax, dword [edi + 0xc]
xor eax, dword [esi + 0x1c]
add edi, 0x10
dec dword [esp + 0x24]
mov dword [ebx - 4], eax
jne 0x10114b10
push 0xc00
lea eax, [ebx - 0xc00]
push eax
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
mov dword [esp + 0x24], ebp
call dword [esp + 0x28]
mov ebp, dword [esp + 0x50]
sub ebp, 0xc00
add esp, 0x10
dec dword [esp + 0x28]
mov dword [esp + 0x40], ebp
lea ecx, [esi + 0x10]
jne 0x10114b00
mov ecx, ebp
and ecx, 0xfffffff0
mov dword [esp + 0x28], ecx
je 0x10114c18
cmp ebp, 0x10
jb 0x10114c03
mov eax, ebp
shr eax, 4
lea ecx, [esi + 0x10]
mov dword [esp + 0x40], eax
lea esp, [esp]
push dword [esp + 0x1c]
push ecx
push esi
call dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
xor eax, dword [edi]
lea ecx, [esi + 0x10]
mov dword [ebx], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
add esp, 0xc
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
add ebx, 0x10
mov dword [ebx - 8], eax
mov eax, dword [edi + 0xc]
xor eax, dword [esi + 0x1c]
add edi, 0x10
mov dword [ebx - 4], eax
sub ebp, 0x10
dec dword [esp + 0x40]
jne 0x10114bb0
mov ecx, dword [esp + 0x28]
push ecx
mov eax, ebx
sub eax, ecx
push eax
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call dword [esp + 0x28]
add esp, 0x10
test ebp, ebp
je 0x10114c78
push dword [esp + 0x1c]
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
inc eax
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x38]
add esp, 0xc
lea edx, [eax + ebx]
add eax, 0x10
add eax, esi
sub edi, ebx
lea ebx, [esi + 0x178]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x40], eax
movzx eax, byte [eax]
movzx ecx, byte [edi + edx]
xor ecx, eax
mov eax, dword [esp + 0x40]
mov byte [edx], cl
mov byte [ebx + esi], cl
inc eax
inc esi
mov dword [esp + 0x40], eax
lea edx, [edx + 1]
dec ebp
jne 0x10114c52
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
pop edi
pop ebx
mov dword [esi + 0x168], eax
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret
pop edi
pop ebx
mov dword [esi + 0x168], ecx
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x20
ret