Function at 0x538740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b518
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x588e74]
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 [ebp + 0x10]
xor esi, esi
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
xor eax, eax
lea edi, [ecx + 1]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], eax
test edi, edi
je 0x538811
cmp edi, 0x7fffffff
ja 0x53897e
cmp edi, 0x1000
jb 0x5387e0
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x538983
push eax
call fcn.00516384
add esp, 4
test eax, eax
je 0x538988
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [ebp - 0x28], esi
mov dword [esi - 4], eax
jmp 0x5387ee
push edi
call fcn.00516384
add esp, 4
mov dword [ebp - 0x28], eax
mov esi, eax
push edi
lea eax, [esi + edi]
mov dword [ebp - 0x1c], esi
push 0
push esi
mov dword [ebp - 0x14], eax
call fcn.0052ee50
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov eax, esi
mov dword [ebp - 0x20], eax
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], 1
test edx, edx
je 0x5388fe
test eax, eax
je 0x5388fe
xor edi, edi
test ecx, ecx
je 0x5388fa
cmp ecx, 0x40
jb 0x5388d4
dec eax
add eax, ecx
mov dword [ebp - 0x2c], eax
lea eax, [edx - 1]
add eax, ecx
cmp dword [ebp - 0x20], eax
ja 0x538853
cmp dword [ebp - 0x2c], edx
jae 0x5388d1
movaps xmm1, xmmword [0x454d50]
mov eax, ecx
mov ecx, dword [ebp - 0x20]
and eax, 0xffffffc0
mov dword [ebp - 0x30], eax
lea eax, [ecx + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, edx
sub eax, ecx
lea ecx, [edx + 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
nop dword [eax + eax]
movups xmm0, xmmword [ecx - 0x30]
add edi, 0x40
lea ecx, [ecx + 0x40]
lea eax, [eax + 0x40]
pxor xmm0, xmm1
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [esi + eax - 0x40]
pxor xmm0, xmm1
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [ecx - 0x50]
pxor xmm0, xmm1
movups xmmword [eax - 0x30], xmm0
movups xmm0, xmmword [ecx - 0x40]
pxor xmm0, xmm1
movups xmmword [eax - 0x20], xmm0
cmp edi, dword [ebp - 0x30]
jb 0x538880
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], edi
cmp edi, ecx
jae 0x5388fa
jmp 0x5388d4
mov eax, dword [ebp - 0x20]
sub edx, eax
lea ecx, [eax + edi]
mov dword [ebp + 0xc], edx
mov edx, dword [ebp - 0x24]
sub edx, edi
mov edi, dword [ebp + 0xc]
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor al, 0x67
mov byte [ecx - 1], al
sub edx, 1
jne 0x5388e4
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov byte [eax + ecx], 0
mov edi, dword [ebp - 0x38]
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], 0
push ecx
push esi
mov ecx, edi
mov byte [ebp - 4], 2
mov dword [edi], 0x443ee8
call fcn.004bd820
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x538961
mov ecx, dword [ebp - 0x14]
mov eax, esi
sub ecx, esi
mov dword [ebp - 4], 3
cmp ecx, 0x1000
jb 0x538957
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x538988
push ecx
push esi
call fcn.005163b4
add esp, 8
mov eax, edi
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.005168d0
mov esp, ebp
pop ebp
ret
call fcn.0046d520
call fcn.0046d260
call fcn.004d2584
int3