Function at 0x10047640
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov ebx, ecx
mov eax, dword [0x1008e00c]
xor eax, ebp
mov dword [esp + 0x28], eax
call fcn.1003e600
cmp dword [ebx + 0x3c], 0
je 0x100477e3
mov eax, ebx
mov ebx, dword [ebx + 0x50]
mov ecx, dword [eax + 0x54]
mov dword [eax + 0x64], ecx
mov dword [esp + 8], eax
mov dword [eax + 0x60], ebx
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x58]
mov dword [esp + 4], eax
mov edi, dword [esi + 0x5c]
mov edx, edi
lock cmpxchg8b qword [esi + 0x58]
xor edx, edi
xor eax, dword [esp + 4]
or eax, edx
jne 0x1004767e
xor eax, eax
mov esi, dword [esp + 8]
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], eax
xor ecx, ecx
xor ebx, ebx
mov eax, dword [esi + 0x70]
mov dword [esp + 4], eax
mov edi, dword [esi + 0x74]
mov edx, edi
mov esi, dword [esp + 8]
lock cmpxchg8b qword [esi + 0x70]
mov esi, dword [esp + 8]
xor edx, edi
xor eax, dword [esp + 4]
or eax, edx
jne 0x100476a9
xor ebx, ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x78], ebx
mov eax, dword [esi + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [eax]
mov edi, dword [eax + 0x1c]
mov ecx, edi
call dword [section..00cfg]
lea eax, [esp + 0xc]
mov ecx, dword [esp + 4]
push eax
call edi
lea edx, [esp + 0xc]
mov eax, dword [edx]
test eax, eax
je 0x10047741
xorps xmm0, xmm0
xor ecx, ecx
inc ecx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], ebx
movups xmmword [eax], xmm0
mov word [eax + 0x18], cx
movups xmmword [eax + 0x20], xmm0
mov word [eax + 0x30], cx
movups xmmword [eax + 0x3c], xmm0
mov eax, dword [eax + 0x50]
test eax, eax
jne 0x10047703
mov esi, dword [esp + 8]
mov ecx, dword [esi + 0x48]
test ecx, ecx
jne 0x10047859
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esi + 0x48], eax
mov edi, dword [esi + 0x44]
test edi, edi
mov ebx, esi
je 0x1004780d
lea esi, [esp + 0x10]
push 1
push esi
call fcn.100246d0
add esp, 8
movsd xmm0, qword [esi + 0x10]
movsd qword [edi + 0x30], xmm0
movups xmm0, xmmword [esi]
movups xmmword [edi + 0x20], xmm0
mov eax, dword [ebx + 0x44]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
xorps xmm0, xmm0
movups xmmword [eax], xmm0
xor ecx, ecx
inc ecx
mov word [eax + 0x18], cx
movups xmmword [eax + 0x20], xmm0
mov word [eax + 0x30], cx
movups xmmword [eax + 0x3c], xmm0
mov eax, dword [ebx + 0x44]
movsd xmm0, qword [ebx + 0x50]
movsd qword [eax + 0x40], xmm0
mov esi, dword [ebx + 0x44]
mov eax, dword [esi + 0x38]
add dword [ebx + 0x50], eax
adc dword [ebx + 0x54], 0
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
lea edi, [esp + 0x10]
push 1
push edi
call fcn.100246d0
add esp, 8
movsd xmm0, qword [edi + 0x10]
movsd qword [esi + 0x18], xmm0
movups xmm0, xmmword [edi]
movups xmmword [esi + 8], xmm0
mov edi, dword [esp + 0xc]
mov dword [esp + 0xc], 0
test edi, edi
jne 0x10047847
cmp byte [ebx + 0x38], 0
je 0x100477fa
mov dword [ebx + 0x30], 0
add ebx, 0x18
push ebx
call dword [0x1008bee0]
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.10039ea0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x100477d3
mov ecx, dword [eax + 0x50]
mov dword [eax + 0x50], 0
mov edi, dword [ebx + 0x44]
mov eax, dword [ebx + 0x48]
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x44], eax
test edi, edi
je 0x10047792
mov ecx, edi
call fcn.10050cc0
push edi
call fcn.10024a10
add esp, 4
jmp 0x10047792
mov ecx, edi
call fcn.10050cc0
push edi
call fcn.10024a10
add esp, 4
jmp 0x100477e3
push edx
call fcn.10050cf0
mov eax, dword [esi + 0x48]
jmp 0x1004773e