Function at 0x1004cb00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100561ad
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x10061040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x383c39f0]
mov dword [0x1010eca8], 0x484080
mov dword [0x1018410c], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov esi, dword [0x1018410c]
push 4
push esi
mov dword [0x1010ecc8], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004ce2f
test esi, esi
je 0x1004ce2f
xor edi, edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 4], edi
lea edx, [ebp - 0x24]
mov ecx, dword [0x1010ecc8]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
test eax, eax
jne 0x1004cb9f
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x1004cb9f
mov eax, dword [ecx]
mov edi, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x40], edi
call dword [eax + 4]
mov dword [ebp - 4], 1
cmp byte [0x101840fd], 0
je 0x1004ce0c
xor esi, esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x48], esi
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
mov ecx, dword [0x1010ecc8]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
test eax, eax
jne 0x1004cbe8
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x1004cbe8
mov eax, dword [ecx]
mov esi, ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x48], esi
call dword [eax + 4]
mov byte [ebp - 4], 3
mov ecx, esi
mov eax, dword [esi]
push 8
push 0x68
call dword [eax + 0x24]
xor eax, eax
mov dword [ebp - 0x20], 0x270b2729
mov dword [ebp - 0x1c], 0x2710271d
xor ecx, ecx
mov word [ebp - 0x18], ax
mov byte [ebp - 0x16], 1
lea eax, [ecx + 0x277a]
xor word [ebp + ecx*2 - 0x20], ax
inc ecx
cmp ecx, 4
jb 0x1004cc11
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x16], 0
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004cc30
sub ecx, edx
mov edx, 2
sar ecx, 1
mov dword [ebp - 0x38], ecx
lea eax, [ecx + 1]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10054bf0
mov ecx, dword [ebp - 0x38]
add esp, 4
xor edx, edx
mov dword [ebp - 0x28], eax
test ecx, ecx
jle 0x1004cd9f
cmp ecx, 4
jb 0x1004cd70
lea eax, [eax + ecx*2]
add eax, 0xfffffffe
mov dword [ebp - 0x24], eax
lea eax, [ebp + ecx*2 - 0x22]
cmp dword [ebp - 0x28], eax
ja 0x1004cc95
lea eax, [ebp - 0x20]
cmp dword [ebp - 0x24], eax
jae 0x1004cd70
cmp ecx, 0x20
jb 0x1004cd25
mov eax, ecx
and eax, 0x8000001f
jns 0x1004ccac
dec eax
or eax, 0xffffffe0
inc eax
mov dword [ebp - 0x24], ecx
sub dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
lea ecx, [eax + 0x20]
mov dword [ebp - 0x4c], ecx
lea ecx, [ebp - 0x20]
sub ecx, eax
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x10]
mov edi, dword [ebp - 0x3c]
sub ecx, eax
mov eax, dword [ebp - 0x4c]
mov esi, ecx
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x20]
movups xmm0, xmmword [ecx + edx*2]
mov ecx, dword [ebp - 0x38]
lea eax, [eax + 0x40]
paddw xmm0, xmm0
movups xmmword [eax - 0x60], xmm0
movups xmm0, xmmword [ebp + edx*2 - 0x10]
add edx, 0x20
paddw xmm0, xmm0
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [edi + eax - 0x40]
paddw xmm0, xmm0
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [esi + eax - 0x40]
paddw xmm0, xmm0
movups xmmword [eax - 0x30], xmm0
cmp edx, dword [ebp - 0x24]
jl 0x1004ccd3
mov esi, dword [ebp - 0x30]
mov eax, ecx
mov edi, dword [ebp - 0x34]
and al, 0x1f
cmp al, 4
jb 0x1004cd6c
mov eax, ecx
and eax, 0x80000003
jns 0x1004cd33
dec eax
or eax, 0xfffffffc
inc eax
mov dword [ebp - 0x24], ecx
lea edi, [ebp - 0x20]
sub dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
sub edi, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x2c]
lea eax, [eax + edx*2]
nop
movq xmm0, qword [eax + ecx]
lea eax, [eax + 8]
paddw xmm0, xmm0
add edx, 4
movq qword [eax - 8], xmm0
cmp edx, dword [ebp - 0x24]
jl 0x1004cd50
mov ecx, dword [ebp - 0x38]
cmp edx, ecx
jge 0x1004cd9f
mov eax, dword [ebp - 0x28]
lea edi, [ebp - 0x20]
sub edi, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
sub ecx, edx
lea eax, [eax + edx*2]
mov dword [ebp - 0x3c], eax
mov edx, eax
mov ax, word [edx + edi]
lea edx, [edx + 2]
add ax, ax
mov word [edx - 2], ax
sub ecx, 1
jne 0x1004cd86
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x28]
xor eax, eax
push edx
mov word [edx + ecx*2], ax
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x3c]
mov eax, dword [0x1010eca8]
mov ecx, esi
mov dword [ebp - 0x2c], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
call eax
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1004cdd2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 4]
mov eax, dword [ebp - 0x30]
push 1
push eax
mov byte [ebp - 4], 4
call dword [ebp - 0x2c]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x1004cdec
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp - 4], 6
test esi, esi
je 0x1004cdfd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
xor esi, esi
mov byte [ebp - 4], 7
test esi, esi
je 0x1004ce0c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov dword [ebp - 4], 8
test edi, edi
je 0x1004ce20
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
xor edi, edi
mov byte [ebp - 4], 9
test edi, edi
je 0x1004ce2f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10054550
mov esp, ebp
pop ebp
ret