Function at 0x4057d1
Capabilities:
Encode data using xor

Disassembly:
push 0x74
mov eax, 0x49a072
call fcn.0046c7ed
mov edi, dword [ebp + 8]
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x6c], eax
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x78], edx
mov ecx, dword [eax]
mov eax, dword [0x4ca44c]
cmp eax, dword [ecx + 4]
jle 0x4058ea
push 0x4ca44c
call fcn.0046bf08
cmp dword [0x4ca44c], 0xffffffff
pop ecx
jne 0x4058e8
mov dword [ebp - 4], 1
movaps xmm0, xmmword [0x4b6c70]
movups xmmword [ebp - 0x54], xmm0
push 0xffffffffffffffd2
movaps xmm0, xmmword [0x4b6b80]
movups xmmword [ebp - 0x44], xmm0
pop esi
movaps xmm0, xmmword [0x4b6b90]
movups xmmword [ebp - 0x34], xmm0
push 0x10
movaps xmm0, xmmword [0x4b6690]
movups xmmword [ebp - 0x24], xmm0
mov word [ebp - 0x14], 0x100
pop edi
lea eax, [esi - 1]
movd xmm2, esi
lea edx, [esi - 3]
movd xmm0, eax
movd xmm3, edx
lea ecx, [esi - 2]
punpckldq xmm3, xmm0
movd xmm0, dword [ebp + esi - 0x26]
punpcklbw xmm0, xmm0
movd xmm1, ecx
punpcklwd xmm0, xmm0
punpckldq xmm1, xmm2
punpckldq xmm3, xmm1
psrad xmm0, 0x18
xorps xmm3, xmm0
andps xmm3, xmmword [0x4b65b0]
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd dword [ebp + esi - 0x26], xmm3
add esi, 4
sub edi, 1
jne 0x405864
lea eax, [ebp - 0x54]
mov byte [ebp - 0x13], 0
push eax
mov ecx, 0x4ca3fc
call fcn.0041437c
push 0x49daec
call fcn.0046c4ee
mov dword [esp], 0x4ca44c
call fcn.0046beb7
mov edi, dword [ebp - 0x64]
pop ecx
xor edx, edx
mov ecx, dword [ebp - 0x6c]
mov esi, edx
mov dword [ebp - 0x68], edx
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x70], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x64]
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], 0xf
mov byte [edi], dl
mov eax, dword [ebp - 0x70]
mov dword [ebp - 4], edx
mov dword [ebp - 0x7c], 1
test eax, eax
je 0x405aa4
dec eax
mov dword [ebp - 0x74], ecx
cmp dword [ecx + 0x14], 0xf
mov dword [ebp - 0x70], eax
jbe 0x405934
mov eax, dword [ecx]
mov dword [ebp - 0x74], eax
mov edi, dword [ebp - 0x74]
mov eax, dword [ebp - 0x68]
cmp byte [edi + eax], 0x3d
mov edi, dword [ebp - 0x64]
je 0x405a12
cmp dword [ecx + 0x14], 0xf
mov edx, ecx
jbe 0x405951
mov edx, dword [ecx]
mov al, byte [edx + eax]
mov byte [ebp - 0x5d], al
movzx eax, al
push eax
call fcn.004715e0
pop ecx
test eax, eax
jne 0x405974
mov al, byte [ebp - 0x5d]
cmp al, 0x2b
je 0x405974
cmp al, 0x2f
jne 0x405a10
mov ecx, dword [ebp - 0x6c]
mov eax, ecx
cmp dword [ecx + 0x14], 0xf
jbe 0x405981
mov eax, dword [ecx]
mov edx, dword [ebp - 0x68]
mov al, byte [eax + edx]
mov byte [ebp + esi - 0x58], al
inc esi
inc edx
mov dword [ebp - 0x68], edx
cmp esi, 4
jne 0x405a01
xor esi, esi
movzx eax, byte [ebp + esi - 0x58]
push ecx
push eax
mov ecx, 0x4ca3fc
call fcn.004141b5
mov byte [ebp + esi - 0x58], al
inc esi
cmp esi, 4
jl 0x405997
mov dl, byte [ebp - 0x57]
mov al, byte [ebp - 0x58]
mov cl, dl
shr cl, 4
shl al, 2
and cl, 3
add cl, al
shl dl, 4
mov byte [ebp - 0x5c], cl
mov cl, byte [ebp - 0x56]
mov al, cl
shl cl, 6
add cl, byte [ebp - 0x55]
shr al, 2
and al, 0xf
mov byte [ebp - 0x5a], cl
add al, dl
xor esi, esi
mov byte [ebp - 0x5b], al
movzx eax, byte [ebp + esi - 0x5c]
mov ecx, edi
push eax
call fcn.0041424d
inc esi
cmp esi, 3
jl 0x4059e5
mov ecx, dword [ebp - 0x6c]
xor edx, edx
mov esi, edx
jmp 0x405a03
xor edx, edx
mov eax, dword [ebp - 0x70]
test eax, eax
jne 0x405922
jmp 0x405a12
xor edx, edx
test esi, esi
je 0x405aa4
mov eax, esi
cmp esi, 4
jge 0x405a34
cmp eax, 4
jae 0x405aae
mov byte [ebp + eax - 0x58], dl
inc eax
cmp eax, 4
jl 0x405a24
mov edi, edx
movzx eax, byte [ebp + edi - 0x58]
push ecx
push eax
mov ecx, 0x4ca3fc
call fcn.004141b5
mov byte [ebp + edi - 0x58], al
inc edi
cmp edi, 4
jl 0x405a36
mov dl, byte [ebp - 0x57]
mov al, byte [ebp - 0x58]
mov cl, dl
mov edi, dword [ebp - 0x64]
shr cl, 4
shl al, 2
and cl, 3
add cl, al
shl dl, 4
mov byte [ebp - 0x5c], cl
mov cl, byte [ebp - 0x56]
mov al, cl
shl cl, 6
add cl, byte [ebp - 0x55]
shr al, 2
and al, 0xf
mov byte [ebp - 0x5a], cl
add al, dl
dec esi
mov byte [ebp - 0x5b], al
test esi, esi
jle 0x405aa4
xor eax, eax
movzx ecx, byte [ebp + eax - 0x5c]
push ecx
mov ecx, edi
call fcn.0041424d
mov eax, dword [ebp - 0x78]
inc eax
mov dword [ebp - 0x78], eax
cmp eax, esi
jl 0x405a8c
mov eax, edi
call fcn.0046c79c
ret 8
call fcn.0046c091
int3