Function at 0x475d60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x7000a8]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x1c]
push ebx
push esi
mov ebx, edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x24], ebx
mov esi, ecx
mov dword [esp + 0x14], esi
push edi
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x14], edi
test bl, 0xf
je 0x475dad
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004b75b2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x10
je 0x475dd6
cmp ecx, 0x18
je 0x475dd6
cmp ecx, 0x20
je 0x475dd6
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004b75b2
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x475ddf
cmp dword [ebp + 0x18], ebx
jmp 0x475de5
lea eax, [ebx - 0x10]
cmp dword [ebp + 0x18], eax
jae 0x475dfe
mov eax, 3
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004b75b2
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
xorps xmm0, xmm0
push ecx
lea ecx, [esp + 0x30]
movq qword [esp + 0x30], xmm0
mov dword [esp + 0x38], 0
call fcn.00475820
add esp, 4
lea ecx, [esp + 0x2c]
mov edx, esi
push edi
call fcn.00475b30
mov edx, dword [ebp + 0x10]
add esp, 4
test edx, edx
je 0x475e70
lea eax, [edx + 0xf]
lea ecx, [edi + 0xf]
cmp edi, eax
ja 0x475e64
cmp ecx, edx
jb 0x475e64
mov ecx, edi
sub edx, edi
mov esi, 0x10
nop dword [eax]
mov al, byte [edx + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub esi, 1
jne 0x475e50
mov esi, dword [esp + 0x18]
jmp 0x475e70
movups xmm1, xmmword [edi]
movups xmm0, xmmword [edx]
xorps xmm1, xmm0
movups xmmword [edi], xmm1
shr ebx, 4
dec ebx
mov dword [esp + 0x24], ebx
cmp ebx, 1
jbe 0x475eeb
mov ecx, dword [esp + 0x14]
lea eax, [ebx - 1]
sub ecx, esi
lea edi, [esi + 0x10]
mov dword [esp + 0x20], ecx
mov ebx, eax
nop
lea esi, [ecx + edi]
mov edx, edi
push esi
lea ecx, [esp + 0x30]
call fcn.00475b30
lea eax, [esi + 2]
add esp, 4
lea edx, [edi - 0xf]
mov esi, 4
nop dword [eax]
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
xor byte [eax - 2], cl
lea eax, [eax + 4]
movzx ecx, byte [edx - 4]
xor byte [eax - 5], cl
movzx ecx, byte [edx - 3]
xor byte [eax - 4], cl
movzx ecx, byte [edx - 2]
xor byte [eax - 3], cl
sub esi, 1
jne 0x475eb0
mov ecx, dword [esp + 0x20]
add edi, 0x10
sub ebx, 1
jne 0x475e90
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
xorps xmm0, xmm0
shl ebx, 4
movups xmmword [esp + 0x38], xmm0
cmp eax, 0x10
jbe 0x475f4d
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x38]
add esi, ebx
lea ecx, [esp + 0x2c]
push eax
mov edx, esi
call fcn.00475b30
add esp, 4
xor ecx, ecx
add esi, 0xfffffff1
nop dword [eax]
movzx eax, byte [esi - 1]
lea esi, [esi + 4]
xor byte [esp + ecx + 0x38], al
movzx eax, byte [esi - 4]
xor byte [esp + ecx + 0x39], al
movzx eax, byte [esi - 3]
xor byte [esp + ecx + 0x3a], al
movzx eax, byte [esi - 2]
xor byte [esp + ecx + 0x3b], al
add ecx, 4
cmp ecx, 0x10
jl 0x475f20
jmp 0x475f6a
push eax
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.004b94a0
add esp, 0xc
push dword [ebp + 0x18]
push 0
push edi
call fcn.004b9340
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x475fce
movzx esi, byte [esp + 0x47]
mov edx, 0x10
sub edx, esi
mov dword [eax], esi
mov dword [esp + 0x10], edx
cmp esi, 0x10
ja 0x475fc7
xor ecx, ecx
test esi, esi
je 0x475fa4
lea edx, [esp + 0x47]
movzx eax, byte [edx]
cmp eax, esi
jne 0x475fc7
inc ecx
dec edx
cmp ecx, esi
jb 0x475f93
mov edx, dword [esp + 0x10]
lea eax, [ebx + edx]
cmp dword [ebp + 0x18], eax
jb 0x475fc0
push edx
lea eax, [esp + 0x3c]
push eax
lea eax, [ebx + edi]
push eax
call fcn.004b94a0
add esp, 0xc
jmp 0x475fd7
mov esi, 3
jmp 0x475fd9
mov esi, 4
jmp 0x475fd9
movups xmm0, xmmword [esp + 0x38]
movups xmmword [ebx + edi], xmm0
xor esi, esi
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x47600e
mov ecx, dword [esp + 0x34]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff0
cmp ecx, 0x1000
jb 0x476004
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x476022
push ecx
push edx
call fcn.004b75c0
add esp, 8
mov ecx, dword [esp + 0x4c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b75b2
mov esp, ebp
pop ebp
ret
call fcn.004bccbf
int3