Function at 0x10001181
Capabilities:
Encode data using xor

Disassembly:
jmp 0x10114d80
mov eax, 0x18
call fcn.101aa6d0
push ebx
mov ebx, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x24]
xor ecx, ecx
mov eax, dword [edi + 0x174]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x164]
mov dword [esp + 0x14], eax
mov eax, ebx
add eax, dword [edi + 0x38]
adc ecx, dword [edi + 0x3c]
cmp ecx, 0xf
ja 0x10115040
jb 0x10114dc6
cmp eax, 0xffffffe0
ja 0x10115040
cmp dword [edi + 0x16c], 0
push ebp
mov ebp, dword [edi + 0x168]
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], ecx
mov dword [esp + 0x14], ebp
je 0x10114e4f
test ebx, ebx
jne 0x10114e06
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x40]
push eax
mov eax, dword [edi + 0x160]
call eax
add esp, 8
mov dword [edi + 0x16c], ebx
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x18
ret
movq xmm0, qword [edi + 0x40]
movq qword [edi + 0x178], xmm0
movq xmm0, qword [edi + 0x48]
mov ebp, 0x10
movq qword [edi + 0x180], xmm0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [esp + 0x14], ebp
mov dword [edi + 0x16c], 0
mov eax, dword [edi + 0xc]
bswap eax
mov edx, ebp
push esi
mov esi, dword [esp + 0x30]
and edx, 0xf
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], esi
je 0x10114ec7
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x38], ecx
test ebx, ebx
je 0x10114ea0
mov al, byte [edx + edi + 0x10]
xor al, byte [esi]
inc ecx
mov byte [ecx - 1], al
mov byte [edi + ebp + 0x178], al
inc esi
inc edx
inc ebp
dec ebx
and edx, 0xf
mov dword [esp + 0x38], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x24], edx
jne 0x10114e74
jmp 0x10114ea8
test edx, edx
jne 0x10115030
push ebp
lea eax, [edi + 0x178]
push eax
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x40]
push eax
call dword [esp + 0x2c]
add esp, 0x10
xor ebp, ebp
mov dword [esp + 0x18], ebp
jmp 0x10114ecf
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], eax
cmp ebx, 0x10
jb 0x10114ef5
test ebp, ebp
je 0x10114ef5
push ebp
lea eax, [edi + 0x178]
push eax
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x40]
push eax
call dword [esp + 0x2c]
add esp, 0x10
xor ebp, ebp
mov dword [esp + 0x18], ebp
mov ecx, dword [esp + 0x3c]
cmp ebx, 0xc00
jb 0x10114f70
mov ebp, dword [esp + 0x38]
mov eax, 0xaaaaaaab
mul ebx
shr edx, 0xb
mov dword [esp + 0x10], edx
push edi
push dword [esp + 0x24]
push 0xc0
push ebp
push esi
call ecx
mov eax, dword [esp + 0x28]
add eax, 0xc0
mov dword [esp + 0x28], eax
bswap eax
push 0xc00
mov dword [edi + 0xc], eax
push ebp
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x40]
push eax
call dword [esp + 0x40]
mov ecx, dword [esp + 0x60]
add esp, 0x24
add ebp, 0xc00
add esi, 0xc00
sub ebx, 0xc00
dec dword [esp + 0x10]
jne 0x10114f13
mov dword [esp + 0x38], ebp
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x10], esi
mov eax, ebx
and eax, 0xfffffff0
mov dword [esp + 0x18], eax
je 0x10114fc7
push edi
push dword [esp + 0x24]
mov esi, eax
shr esi, 4
push esi
push dword [esp + 0x44]
push dword [esp + 0x20]
call ecx
mov eax, dword [esp + 0x28]
add eax, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x28], eax
bswap eax
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x2c]
push eax
push dword [esp + 0x50]
add esi, eax
sub ebx, eax
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x40]
push eax
call dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
add esp, 0x24
add dword [esp + 0x38], eax
test ebx, ebx
je 0x10115030
push dword [esp + 0x20]
lea eax, [edi + 0x10]
push eax
mov eax, dword [edi + 0x170]
push edi
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
inc eax
bswap eax
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x44]
add esp, 0xc
lea edx, [ecx + eax]
add ecx, 0x10
add ecx, edi
sub esi, eax
lea eax, [edi + 0x178]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], eax
mov edi, ecx
jmp 0x10115010
movzx eax, byte [edi]
movzx ecx, byte [esi + edx]
xor ecx, eax
mov eax, dword [esp + 0x24]
mov byte [edx], cl
mov byte [eax + ebp], cl
inc ebp
lea edi, [edi + 1]
lea edx, [edx + 1]
dec ebx
jne 0x10115010
mov edi, dword [esp + 0x2c]
pop esi
mov dword [edi + 0x168], ebp
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x18
ret
pop edi
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret