Function at 0x1004d580
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100940f8
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x100bb084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [ebp + 8], 0
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x2c], esi
jbe 0x1004d9f7
test esi, esi
je 0x1004d9f7
xor cl, cl
lea eax, [edi + 0x110]
mov edx, 6
cmp dword [eax - 4], 0
je 0x1004d5e0
cmp dword [eax], 0
jne 0x1004d5e2
inc cl
add eax, 0x14
sub edx, 1
jne 0x1004d5d5
test cl, cl
jne 0x1004d6e1
movaps xmm0, xmmword [str._f39.q_t_]
xor ecx, ecx
movups xmmword [ebp - 0x3c], xmm0
nop
mov al, byte [ebp - 0x3c]
xor byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0xe
jb 0x1004d600
lea eax, [ebp - 0x3b]
mov byte [ebp - 0x2d], 0
push eax
lea ecx, [ebp - 0x6c]
call fcn.10004e00
mov dword [ebp - 4], 0
xor ecx, ecx
movaps xmm0, xmmword [0x100af820]
movups xmmword [ebp - 0xe8], xmm0
mov byte [ebp - 0xc8], 0
movaps xmm0, xmmword [0x100af1c0]
movups xmmword [ebp - 0xd8], xmm0
nop dword [eax]
mov al, byte [ebp - 0xe8]
xor byte [ebp + ecx - 0xe7], al
inc ecx
cmp ecx, 0x1f
jb 0x1004d650
lea eax, [ebp - 0xe7]
mov byte [ebp - 0xc8], 0
push eax
lea ecx, [ebp - 0x54]
call fcn.10004e00
push 0
push ecx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x6c]
mov dword [esp], 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x54]
push eax
push eax
call dword [0x100adb0c]
mov eax, dword [ebp - 0x40]
cmp eax, 0x10
jb 0x1004d6b1
inc eax
lea ecx, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
call fcn.10004bb0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
cmp eax, 0x10
jb 0x1004d9f7
inc eax
lea ecx, [ebp - 0x6c]
push eax
push dword [ebp - 0x6c]
call fcn.10004bb0
jmp 0x1004d9f7
mov eax, dword [ebp + 0x14]
xor cl, cl
cmp eax, 1
jne 0x1004d7e9
movzx eax, cl
add eax, 0xe
lea eax, [eax + eax*4]
cmp dword [edi + eax*4], 2
jne 0x1004d7fd
movaps xmm0, xmmword [0x100aef90]
xor ecx, ecx
movups xmmword [ebp - 0x3c], xmm0
nop
mov al, byte [ebp - 0x3c]
xor byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0xe
jb 0x1004d710
lea eax, [ebp - 0x3b]
mov byte [ebp - 0x2d], 0
push eax
lea ecx, [ebp - 0x54]
call fcn.10004e00
mov dword [ebp - 4], 2
xor ecx, ecx
movaps xmm0, xmmword [str.1hD]
movups xmmword [ebp - 0xc4], xmm0
mov dword [ebp - 0x74], 0x101f4543
movaps xmm0, xmmword [0x100af290]
movups xmmword [ebp - 0xb4], xmm0
mov byte [ebp - 0x70], 0
movaps xmm0, xmmword [0x100af9d0]
movups xmmword [ebp - 0xa4], xmm0
movaps xmm0, xmmword [0x100afc50]
movups xmmword [ebp - 0x94], xmm0
movaps xmm0, xmmword [0x100af850]
movups xmmword [ebp - 0x84], xmm0
nop word [eax + eax]
mov al, byte [ebp - 0xc4]
xor byte [ebp + ecx - 0xc3], al
inc ecx
cmp ecx, 0x53
jb 0x1004d790
lea eax, [ebp - 0xc3]
mov byte [ebp - 0x70], 0
push eax
lea ecx, [ebp - 0x6c]
call fcn.10004e00
push 0
push ecx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x54]
mov dword [esp], 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x6c]
push eax
push eax
call dword [0x100adb0c]
lea ecx, [ebp - 0x6c]
call fcn.10004790
lea ecx, [ebp - 0x54]
jmp 0x1004d9f2
cmp eax, 2
jne 0x1004d800
movzx eax, cl
add eax, 0xe
lea eax, [eax + eax*4]
cmp dword [edi + eax*4], 1
je 0x1004d83a
mov eax, dword [ebp + 0x14]
inc cl
cmp cl, 6
jb 0x1004d6e6
xor bl, bl
nop dword [eax]
movzx eax, bl
lea eax, [eax + eax*4]
cmp dword [edi + eax*4 + 0x10c], 0
ja 0x1004d82e
cmp dword [edi + eax*4 + 0x110], 0
jbe 0x1004d919
inc bl
cmp bl, 6
jb 0x1004d810
jmp 0x1004d9f7
movaps xmm0, xmmword [0x100aef70]
xor ecx, ecx
movups xmmword [ebp - 0x3c], xmm0
mov al, byte [ebp - 0x3c]
xor byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0xe
jb 0x1004d847
lea eax, [ebp - 0x3b]
mov byte [ebp - 0x2d], 0
push eax
lea ecx, [ebp - 0x54]
call fcn.10004e00
mov dword [ebp - 4], 4
xor ecx, ecx
movaps xmm0, xmmword [str.8aWM]
movups xmmword [ebp - 0xc4], xmm0
mov dword [ebp - 0x74], 0x19164c
movaps xmm0, xmmword [0x100af8d0]
movups xmmword [ebp - 0xb4], xmm0
movaps xmm0, xmmword [0x100af800]
movups xmmword [ebp - 0xa4], xmm0
movaps xmm0, xmmword [0x100af890]
movups xmmword [ebp - 0x94], xmm0
movaps xmm0, xmmword [0x100af7e0]
movups xmmword [ebp - 0x84], xmm0
nop word [eax + eax]
mov al, byte [ebp - 0xc4]
xor byte [ebp + ecx - 0xc3], al
inc ecx
cmp ecx, 0x52
jb 0x1004d8c0
lea eax, [ebp - 0xc3]
mov byte [ebp - 0x71], 0
push eax
lea ecx, [ebp - 0x6c]
call fcn.10004e00
push 0
push ecx
mov byte [ebp - 4], 5
lea eax, [ebp - 0x54]
mov dword [esp], 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x6c]
push eax
push eax
call dword [0x100adb0c]
lea ecx, [ebp - 0x6c]
call fcn.10004790
lea ecx, [ebp - 0x54]
jmp 0x1004d9f2
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul eax, edx, 0x3e8
push eax
call dword [0x100ada34]
mov esi, eax
test esi, esi
je 0x1004d9f7
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov edx, dword [ebp - 0x2c]
mov ecx, esi
mov dword [ebp - 4], 6
call fcn.10009fd0
test eax, eax
je 0x1004d986
cmp dword [eax + 0x3c], 0
je 0x1004d986
push dword [ebp - 0x2c]
xor edx, edx
lea ecx, [ebp - 0x6c]
push eax
call fcn.1000a120
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.1000a950
lea ecx, [ebp - 0x6c]
jmp 0x1004d9aa
push dword [ebp - 0x2c]
mov edx, esi
lea ecx, [ebp - 0x100]
push 0
call fcn.1000a120
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.1000a950
lea ecx, [ebp - 0x100]
call fcn.10004790
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x28]
movzx ecx, bl
lea esi, [ecx + ecx*4]
mov dword [edi + esi*4 + 0x10c], eax
mov eax, dword [ebp - 0x2c]
mov dword [edi + esi*4 + 0x110], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + esi*4 + 0x114], eax
lea eax, [ecx + ecx*4]
mov ecx, dword [ebp + 0x14]
mov dword [edi + eax*4 + 0x118], ecx
mov ecx, dword [edi + esi*4 + 0x11c]
call fcn.10011c60
lea ecx, [ebp - 0x28]
call fcn.10004790
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10059ed0
mov esp, ebp
pop ebp
ret 0x10