Function at 0x407480
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cf2e
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4bf100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x5c], 1
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov byte [ebp - 4], 1
cmp dword [ebp + 0x18], 0
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x60], 0
jne 0x407535
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x4078ad
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40752e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4078ca
push ecx
push edx
jmp 0x4078a5
movq qword [ebp - 0x38], xmm0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x30], 0
mov edx, 0x9df36228
mov word [ebp - 0x2c], 0
xor esi, esi
mov dword [ebp - 0x54], 0x4b429c
mov dword [ebp - 0x58], eax
nop dword [eax + eax]
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + esi]
mov eax, dword [ebp - 0x58]
xor ecx, edx
mov dword [eax + esi], ecx
mov ecx, edx
shr ecx, 7
add esi, 4
xor ecx, edx
mov eax, ecx
shl eax, 9
xor ecx, eax
mov eax, ecx
shr eax, 0xd
xor ecx, eax
mov edx, ecx
shr edx, 0x1e
lea eax, [ecx*4]
or edx, eax
cmp esi, 0xc
jb 0x407560
lea eax, [ebp - 0x38]
mov dword [ebp - 0x58], 0x4b429c
mov dword [ebp - 0x54], eax
mov esi, 0xc
nop dword [eax + eax]
mov eax, dword [ebp - 0x58]
mov cl, byte [eax + esi]
mov eax, dword [ebp - 0x54]
xor cl, dl
shr edx, 8
mov byte [eax + esi], cl
inc esi
cmp esi, 0xe
jb 0x4075b0
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x38]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4075f0
sub ecx, edx
lea eax, [ebp - 0x38]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00404640
mov byte [ebp - 4], 4
lea eax, [ebp - 0x38]
mov ecx, 0xe
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x407612
cmp dword [ebp - 0x14], 0xf
lea edx, [ebp - 0x28]
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
cmova edx, dword [ebp - 0x28]
cmp dword [ebp + 0x1c], 0xf
mov esi, dword [ebp - 0x18]
cmova eax, edi
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x18]
cmp esi, eax
ja 0x407703
mov ecx, eax
sub ecx, esi
test esi, esi
jne 0x407658
xor edi, edi
jmp 0x4077a5
mov edi, dword [ebp - 0x54]
lea eax, [edi + 1]
add eax, ecx
movsx ecx, byte [edx]
mov dword [ebp - 0x6c], eax
sub eax, edi
push eax
push ecx
push edi
mov dword [ebp - 0x68], ecx
call fcn.00474250
mov edi, eax
add esp, 0xc
test edi, edi
je 0x407700
mov edx, dword [ebp - 0x58]
mov ecx, edi
sub esi, 4
jb 0x4076a1
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4076a6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x407690
cmp esi, 0xfffffffc
je 0x4076da
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4076d3
cmp esi, 0xfffffffd
je 0x4076da
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4076d3
cmp esi, 0xfffffffe
je 0x4076da
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4076d3
cmp esi, 0xffffffff
je 0x4076da
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x4076da
sbb eax, eax
or eax, 1
jmp 0x4076dc
xor eax, eax
test eax, eax
je 0x407793
mov eax, dword [ebp - 0x6c]
inc edi
sub eax, edi
push eax
push dword [ebp - 0x68]
push edi
call fcn.00474250
mov esi, dword [ebp - 0x18]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x407680
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x64]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x407724
cmp dword [esi + 0x14], 0xf
lea ecx, [eax - 1]
mov eax, esi
jbe 0x40771a
mov eax, dword [esi]
mov dword [esi + 0x10], ecx
mov byte [eax + ecx], 0
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
cmp eax, 0xf
jbe 0x40775d
mov edx, dword [ebp - 0x28]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x407750
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4078ca
push ecx
push edx
call fcn.00471b8b
mov edi, dword [ebp + 8]
add esp, 8
mov eax, dword [ebp + 0x1c]
cmp eax, 0xf
jbe 0x4078ad
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4078a3
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4078ca
jmp 0x4078a3
sub edi, dword [ebp - 0x54]
cmp edi, 0xffffffff
je 0x407700
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp - 0x18]
cmp dword [ebp - 0x60], 0xa
jae 0x407700
lea edx, [esi + edi]
lea esi, [edx + 4]
cmp esi, eax
jae 0x407700
mov dword [ebp - 0x40], 0
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x50], xmm0
cmp eax, edx
jb 0x4078cf
sub eax, edx
mov ecx, 4
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp + 0x1c], 0xf
lea eax, [ebp + 8]
cmova eax, dword [ebp + 8]
push ecx
add eax, edx
lea ecx, [ebp - 0x50]
push eax
call fcn.00404640
or dword [ebp - 0x5c], 2
mov byte [ebp - 4], 5
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 0xf
push dword [ebp - 0x40]
cmova eax, dword [ebp - 0x50]
mov edi, dword [ebp - 0x64]
mov ecx, edi
push eax
call fcn.00403d60
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0xf
jbe 0x407856
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40784c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4078ca
push ecx
push edx
call fcn.00471b8b
add esp, 8
push 1
push 0x4b41cc
mov ecx, edi
call fcn.00403d60
inc dword [ebp - 0x60]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp + 8]
push dword [ebp - 0x18]
cmova eax, dword [ebp - 0x28]
cmp dword [ebp + 0x1c], 0xf
mov edx, dword [ebp + 0x18]
cmova ecx, dword [ebp + 8]
push eax
push esi
call fcn.00404540
mov esi, dword [ebp - 0x18]
mov edi, eax
mov eax, dword [ebp + 0x18]
add esp, 0xc
cmp edi, 0xffffffff
jne 0x4077a5
jmp 0x407700
push ecx
push edi
call fcn.00471b8b
add esp, 8
mov eax, esi
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.00471b48
mov esp, ebp
pop ebp
ret
call fcn.00477334
call fcn.00403ff0
int3