Function at 0x1004afa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
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 0x1004afc3
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 0x1004b00d
cmp dword [eax + 0xa8], 0
jne 0x1004b00d
xor eax, eax
jmp 0x1004b013
mov eax, dword [eax + 0xb0]
test dword [0x10176918], 0x20000
mov ecx, dword [esi + 0x24]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
je 0x1004b07e
test byte [0x10176960], 1
je 0x1004b07e
test byte [0x101769d0], 0x40
je 0x1004b07e
cmp dword [0x10174574], 0
jne 0x1004b07e
mov edx, dword [esi + 0xdc]
test edx, edx
je 0x1004b060
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 0x1004b188
call fcn.1004a4f0
push 0x240
lea eax, [edi + 0x78]
push eax
push ebx
mov ecx, esi
call fcn.1004a800
movq xmm0, qword [0x1009195c]
mov eax, dword [0x1009196c]
movq qword [edi + 0xa8], xmm0
movq xmm0, qword [0x10091964]
movq qword [edi + 0xb0], xmm0
mov dword [edi + 0xb8], eax
or dword [edi + 0xac], 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], 0x3c8
mov dword [ebp - 0x18], 0
call fcn.100471e0
add dword [esi + 0x24], 0x14
add dword [esi + 0xcc], 0x14
movq xmm0, qword [0x10091940]
mov eax, dword [ebp - 0x34]
movq qword [edi + 0xbc], xmm0
mov dword [edi + 0xc4], 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], 0x140
mov dword [ebp - 0x18], 0
call fcn.100471e0
add dword [esi + 0xcc], 0xc
add dword [esi + 0x24], 0xc
push 0
lea eax, [edi + 0xc8]
push eax
push ebx
mov ecx, esi
call fcn.1004a930
push 0
lea eax, [edi + 0xd4]
push eax
push ebx
mov ecx, esi
call fcn.1004aa30
lea eax, [edi + 0xe0]
jmp 0x1004b3ee
mov dword [ebp - 0x40], edi
call fcn.1004a4f0
push 0x240
lea eax, [edi + 0x78]
push eax
push ebx
mov ecx, esi
call fcn.1004a800
movq xmm0, qword [0x1009195c]
mov eax, dword [0x1009196c]
movq qword [edi + 0xa8], xmm0
movq xmm0, qword [0x10091964]
movq qword [edi + 0xb0], xmm0
mov dword [edi + 0xb8], eax
or dword [edi + 0xac], 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], 0x3c8
mov dword [ebp - 0x18], 0
call fcn.100471e0
add dword [esi + 0x24], 0x14
add dword [esi + 0xcc], 0x14
movq xmm0, qword [0x101638d0]
mov eax, dword [ebp - 0x34]
movq qword [edi + 0xbc], xmm0
movq xmm0, qword [0x101638d8]
movq qword [edi + 0xc4], xmm0
mov dword [edi + 0xc8], 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], 0x140
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 + 0xcc], xmm0
mov dword [edi + 0xd4], eax
mov eax, dword [edi + 0xd0]
and eax, 0xfc00235b
or eax, 0x2358
mov dword [edi + 0xd0], 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], 0x144
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 + 0xd8], xmm0
mov dword [edi + 0xe0], eax
mov eax, dword [edi + 0xdc]
and eax, 3
or eax, 0x23b0
mov dword [edi + 0xdc], eax
mov dword [edi + 0xe0], 3
add dword [esi + 0xcc], 0xc
add dword [esi + 0x24], 0xc
add edi, 0xe8
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 [ebx + 0x101638f0]
xor eax, dword [edi]
mov ecx, esi
and eax, 0x3fffffc
xor dword [edi], eax
mov eax, dword [ebx + 0x101638f0]
sub eax, 0x26b4
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 0x1004b310
mov edi, dword [ebp - 0x40]
movq xmm0, qword [0x101638c4]
mov eax, dword [0x101638cc]
mov ebx, dword [ebp - 0x30]
movq qword [edi + 0x324], xmm0
mov dword [edi + 0x32c], eax
mov eax, dword [edi + 0x328]
and eax, 3
or eax, 0x23b0
mov dword [edi + 0x328], eax
push 0
lea eax, [edi + 0x330]
push eax
mov dword [edi + 0xe0], 2
add dword [esi + 0xcc], 0xc
add dword [esi + 0x24], 0xc
push ebx
mov ecx, esi
call fcn.1004a930
push 0
lea eax, [edi + 0x33c]
push eax
push ebx
mov ecx, esi
call fcn.1004aa30
lea eax, [edi + 0x348]
push eax
push ebx
mov ecx, esi
call fcn.1004a710
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 4]
mov dword [0x10176e88], eax
mov eax, dword [ebp - 0x38]
pop edi
pop esi
mov dword [0x10176e8c], eax
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.10071c54
mov esp, ebp
pop ebp
ret 4