Function at 0x1004ab30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x101722a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x30], ebx
mov ecx, 0x28
lea eax, [ebp - 0x2c]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x1004ab53
mov eax, dword [0x10176e90]
inc eax
mov dword [0x10176e90], eax
mov ecx, dword [esi + 0xa8]
shl ecx, 0xc
and eax, 0xfff
or ecx, eax
mov eax, dword [esi]
mov dword [ebp - 0x34], ecx
mov ecx, esi
call dword [eax + 0x28]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x70]
cmp dword [eax + 0xa4], 0
jne 0x1004ab9d
cmp dword [eax + 0xa8], 0
jne 0x1004ab9d
xor eax, eax
jmp 0x1004aba3
mov eax, dword [eax + 0xb0]
cmp dword [esi + 4], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
jne 0x1004ac14
test dword [0x10176918], 0x20000
mov ecx, dword [esi + 0x24]
je 0x1004ac14
test byte [0x10176960], 1
je 0x1004ac14
test byte [0x101769d0], 0x40
je 0x1004ac14
cmp dword [0x10174574], 0
jne 0x1004ac14
mov edx, dword [esi + 0xdc]
test edx, edx
je 0x1004abf6
mov eax, ecx
sub eax, dword [esi + 0x78]
mov dword [edx + 4], eax
mov dword [ecx], 0xffff0001
mov dword [ecx + 4], 0
add dword [esi + 0xcc], 8
add dword [esi + 0x24], 8
mov dword [esi + 0xdc], ecx
test dword [0x1017699c], 0x8000
mov edi, dword [esi + 0x24]
push edi
mov ecx, esi
push ebx
jne 0x1004ad0c
call fcn.1004a4f0
push 1
lea eax, [edi + 0x78]
push eax
push ebx
mov ecx, esi
call fcn.1004a930
push 1
lea eax, [edi + 0x84]
push eax
push ebx
mov ecx, esi
call fcn.1004aa30
push 0x100
lea eax, [edi + 0x90]
push eax
push ebx
mov ecx, esi
call fcn.1004a800
movq xmm0, qword [0x10091940]
mov eax, dword [ebp - 0x34]
movq qword [edi + 0xc0], xmm0
mov dword [edi + 0xc8], eax
mov eax, dword [esi + 0x24]
sub eax, dword [esi + 0x78]
mov ecx, esi
add eax, 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push eax
push ebx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
call fcn.100471e0
add dword [esi + 0x24], 0xc
add dword [esi + 0xcc], 0xc
movq xmm0, qword [0x1009195c]
mov eax, dword [0x1009196c]
movq qword [edi + 0xcc], xmm0
movq xmm0, qword [0x10091964]
movq qword [edi + 0xd4], xmm0
mov dword [edi + 0xdc], eax
or dword [edi + 0xd0], 0xc000
mov eax, dword [esi + 0x24]
sub eax, dword [esi + 0x78]
mov ecx, esi
add eax, 8
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push eax
push ebx
mov dword [ebp - 0x24], 0x3c0
call fcn.100471e0
lea eax, [edi + 0xe0]
jmp 0x1004af67
mov dword [ebp - 0x38], edi
call fcn.1004a4f0
push 1
lea eax, [edi + 0x78]
push eax
push ebx
mov ecx, esi
call fcn.1004a930
push 1
lea eax, [edi + 0x84]
push eax
push ebx
mov ecx, esi
call fcn.1004aa30
push 0x100
lea eax, [edi + 0x90]
push eax
push ebx
mov ecx, esi
call fcn.1004a800
movq xmm0, qword [0x101638d0]
mov eax, dword [ebp - 0x34]
movq qword [edi + 0xc0], xmm0
movq xmm0, qword [0x101638d8]
movq qword [edi + 0xc8], xmm0
mov dword [edi + 0xcc], eax
mov eax, dword [esi + 0x24]
sub eax, dword [esi + 0x78]
mov ecx, esi
add eax, 8
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push eax
push ebx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
call fcn.100471e0
add dword [esi + 0x24], 0x10
add dword [esi + 0xcc], 0x10
movq xmm0, qword [0x10163b00]
mov eax, dword [0x10163b08]
movq qword [edi + 0xd0], xmm0
mov dword [edi + 0xd8], eax
mov eax, dword [edi + 0xd4]
and eax, 0xfc00235b
or eax, 0x2358
mov dword [edi + 0xd4], eax
mov eax, dword [esi + 0x24]
sub eax, dword [esi + 0x78]
mov ecx, esi
add eax, 8
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push eax
push ebx
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x18], 0
call fcn.100471e0
add dword [esi + 0xcc], 0xc
add dword [esi + 0x24], 0xc
movq xmm0, qword [0x101638c4]
mov eax, dword [0x101638cc]
movq qword [edi + 0xdc], xmm0
mov dword [edi + 0xe4], eax
mov eax, dword [edi + 0xe0]
and eax, 3
or eax, 0x23b0
mov dword [edi + 0xe0], eax
mov dword [edi + 0xe4], 3
add dword [esi + 0xcc], 0xc
add dword [esi + 0x24], 0xc
add edi, 0xec
xor ebx, ebx
nop
movq xmm0, qword [0x10163b00]
mov eax, dword [0x10163b08]
movq qword [edi - 4], xmm0
mov dword [edi + 4], eax
mov eax, dword [edi]
xor eax, dword [ebx + 0x101638f0]
mov ecx, esi
and eax, 0x3fffffc
xor dword [edi], eax
mov eax, dword [ebx + 0x101638f0]
sub eax, 0x27f4
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x24]
sub eax, dword [esi + 0x78]
mov dword [ebp - 0x18], 0
add eax, 8
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
call fcn.100471e0
add dword [esi + 0xcc], 0xc
add dword [esi + 0x24], 0xc
add ebx, 4
lea edi, [edi + 0xc]
cmp ebx, 0xc0
jb 0x1004ae50
mov edi, dword [ebp - 0x38]
movq xmm0, qword [0x101638c4]
mov eax, dword [0x101638cc]
movq qword [edi + 0x328], xmm0
movq xmm0, qword [0x1009195c]
mov dword [edi + 0x330], eax
mov eax, dword [edi + 0x32c]
mov ebx, dword [ebp - 0x30]
and eax, 3
or eax, 0x23b0
mov dword [edi + 0x32c], eax
mov eax, dword [0x1009196c]
mov dword [edi + 0xe4], 2
add dword [esi + 0x24], 0xc
add dword [esi + 0xcc], 0xc
movq qword [edi + 0x334], xmm0
movq xmm0, qword [0x10091964]
movq qword [edi + 0x33c], xmm0
mov dword [edi + 0x344], eax
or dword [edi + 0x338], 0xc000
mov eax, dword [esi + 0x24]
sub eax, dword [esi + 0x78]
mov ecx, esi
add eax, 8
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push eax
push ebx
mov dword [ebp - 0x24], 0x3c0
mov dword [ebp - 0x18], 0
call fcn.100471e0
lea eax, [edi + 0x348]
add dword [esi + 0xcc], 0x14
add dword [esi + 0x24], 0x14
push eax
push ebx
mov ecx, esi
call fcn.1004a710
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.10071c54
mov esp, ebp
pop ebp
ret 4