Function at 0x100a5530
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1d0
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x10123014]
xor eax, ebp
mov dword [esp + 0x1c8], eax
test ebx, ebx
je 0x100a57ce
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x1b0], xmm0
movdqa xmmword [esp + 0x1a0], xmm0
call fcn.100d2590
test eax, eax
je 0x100a5595
pxor xmm0, xmm0
movdqa xmmword [esp + 0x1b0], xmm0
movdqa xmmword [esp + 0x1a0], xmm0
jmp 0x100a55a7
lea eax, [esp + 0x1a0]
push 0x20
push eax
call fcn.100d25c0
add esp, 8
xor eax, eax
nop dword [eax]
movzx ecx, byte [esi + eax]
xor byte [esp + eax + 0x1a0], cl
inc eax
cmp eax, 0x20
jne 0x100a55b0
lea eax, [esp + 0x78]
push 0x128
push 0xff
push eax
call fcn.100e17d0
add esp, 0xc
push 1
call fcn.100d2180
add esp, 4
test eax, eax
je 0x100a5606
mov esi, eax
add eax, 0x120
mov dword [esp + 4], eax
cmp dword [esi + 0x120], 0xfff
jbe 0x100a56bb
jmp 0x100a56c9
push 0x128
call fcn.100a10e0
add esp, 4
test eax, eax
je 0x100a562d
mov esi, eax
push 0x100a6160
push eax
push 1
call fcn.100d2220
add esp, 0xc
test eax, eax
jne 0x100a5631
lea esi, [esp + 0x78]
mov dword [esi + 0x124], 0
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
pxor xmm0, xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
movdqa xmmword [esp + 0x10], xmm0
lea eax, [esp + 0x40]
push 0x30
push eax
call fcn.100d25c0
add esp, 8
lea eax, [esp + 0x10]
push 0
push eax
lea eax, [esp + 0x48]
push eax
push esi
call fcn.100a59e0
add esp, 0x10
test eax, eax
je 0x100a57e4
lea eax, [esi + 0x120]
mov dword [esp + 4], eax
mov dword [esi + 0x120], 0
mov dword [esi + 0x11c], 0
mov dword [esi + 0x118], 0
mov eax, dword [esi + 0x118]
or eax, dword [esi + 0x11c]
je 0x100a5738
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
lea eax, [esp + 0x40]
push 0x30
push eax
call fcn.100d25c0
add esp, 8
mov ecx, esi
lea edx, [esp + 0x40]
push 0x30
call fcn.100a5c70
add esp, 4
test eax, eax
je 0x100a57e4
mov dword [esi + 0x110], 1
mov dword [esi + 0x114], 0
mov eax, dword [esp + 4]
mov dword [eax], 0
mov dword [esi + 0x11c], 0
mov dword [esi + 0x118], 0
cmp ebx, 0x10000
mov ecx, 0x10000
cmovb ecx, ebx
lea eax, [esp + 0x1a0]
push 0x20
push eax
mov dword [esp + 0x14], ecx
push ecx
push edi
mov dword [esp + 0x18], esi
push esi
call fcn.100a5f30
add esp, 0x14
test eax, eax
je 0x100a57e4
mov eax, dword [esp + 4]
inc dword [eax]
mov eax, dword [esp + 0xc]
sub ebx, eax
je 0x100a57b6
add edi, eax
nop word [eax + eax]
cmp ebx, 0x10000
mov esi, 0x10000
cmovb esi, ebx
push 0
lea eax, [esp + 0x1a4]
push eax
push esi
push edi
push dword [esp + 0x18]
call fcn.100a5f30
add esp, 0x14
test eax, eax
je 0x100a57e4
add edi, esi
mov eax, dword [esp + 4]
inc dword [eax]
sub ebx, esi
jne 0x100a5780
lea eax, [esp + 0x78]
cmp dword [esp + 8], eax
jne 0x100a57ce
push 0x118
push eax
call fcn.100a1160
add esp, 8
mov ecx, dword [esp + 0x1c8]
xor ecx, ebp
call fcn.100dea63
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.100f18b0
int3