Function at 0x407190
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46273c
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x483094]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xec], edi
cmp byte [edi + 2], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc4], eax
jne 0x4071de
xor al, al
jmp 0x40783d
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0xf
mov byte [ebp - 0xa8], 0
mov dword [ebp - 4], 0
cmp byte [edi + 1], 0
je 0x40730c
push 0x80
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.00440a60
mov eax, dword [esi + 0x10]
add esp, 0xc
mov dword [edi + 0xe0], eax
cmp dword [esi + 0x14], 0x10
jb 0x407231
mov esi, dword [esi]
lea eax, [edi + 0xdc]
mov byte [ebp - 0xa8], 0
mov dword [eax], esi
xor esi, esi
mov dword [ebp - 0x98], esi
nop dword [eax + eax]
lea ecx, [ebp - 0x90]
mov dword [edi + 0xec], 0x80
mov dword [edi + 0xe8], ecx
mov ecx, eax
call fcn.00422950
mov edx, dword [ebp - 0x94]
mov ecx, 0x80
sub ecx, dword [edi + 0xec]
mov eax, edx
sub eax, esi
mov dword [ebp - 0xcc], ecx
push ecx
cmp ecx, eax
ja 0x4072c4
lea eax, [ecx + esi]
cmp edx, 0x10
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0xa8]
cmovae eax, dword [ebp - 0xa8]
add esi, eax
lea eax, [ebp - 0x90]
push eax
push esi
call fcn.004404e0
mov eax, dword [ebp - 0xcc]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x4072e4
lea eax, [ebp - 0x90]
mov byte [ebp - 0xc8], 0
push eax
push dword [ebp - 0xc8]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.00404210
cmp dword [edi + 0xec], 0
mov esi, dword [ebp - 0x98]
jne 0x4072fe
lea eax, [edi + 0xdc]
jmp 0x407250
add dword [edi + 0x114], esi
mov eax, dword [ebp - 0xc4]
jmp 0x40733e
lea ecx, [ebp - 0xa8]
cmp ecx, esi
je 0x40733c
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x407321
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0xa8]
call fcn.00403b50
mov esi, dword [ebp - 0x98]
mov eax, dword [ebp - 0xc4]
jmp 0x40733e
xor esi, esi
cmp byte [edi], 0
mov ecx, dword [edi + 0x114]
mov dword [ebp - 0xd0], ecx
je 0x4076ec
cmp dword [edi + 0xd4], 0
je 0x4073ef
lea ecx, [ebp - 0xa8]
push ecx
lea edx, [edi + 0xc4]
lea ecx, [ebp - 0x104]
call fcn.00412690
add esp, 4
lea ecx, [ebp - 0xa8]
push eax
call fcn.0040cf70
mov edx, dword [ebp - 0xf0]
cmp edx, 0x10
jb 0x4073c1
mov ecx, dword [ebp - 0x104]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4073b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40785a
push edx
push ecx
call fcn.00428ee3
add esp, 8
cmp dword [edi + 0xd8], 0x10
lea ecx, [edi + 0xc4]
jb 0x4073d6
mov ecx, dword [edi + 0xc4]
mov esi, dword [ebp - 0x98]
mov dword [edi + 0xd4], 0
mov byte [ecx], 0
mov ecx, dword [ebp - 0xd0]
cmp byte [ebp + 0x10], 0
jne 0x407404
cmp ecx, 0xa00000
ja 0x407404
mov eax, esi
and eax, 7
jmp 0x40742e
mov ecx, esi
mov eax, 8
and ecx, 7
sub eax, ecx
neg ecx
push 0
sbb ecx, ecx
and ecx, eax
add ecx, esi
push ecx
lea ecx, [ebp - 0xa8]
call fcn.004037c0
mov esi, dword [ebp - 0x98]
xor eax, eax
sub esi, eax
test eax, eax
je 0x40748e
push eax
push esi
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0xa8]
call fcn.0040cda0
push eax
lea ecx, [edi + 0xc4]
call fcn.0040cf70
mov edx, dword [ebp - 0xf0]
cmp edx, 0x10
jb 0x40748e
mov ecx, dword [ebp - 0x104]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407484
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40785f
push edx
push ecx
call fcn.00428ee3
add esp, 8
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0xf
mov byte [ebp - 0xc0], 0
mov eax, esi
mov byte [ebp - 4], 1
cdq
lea ecx, [ebp - 0xc0]
and edx, 7
add eax, edx
push 0
sar eax, 3
push esi
mov dword [ebp - 0xcc], eax
call fcn.004037c0
cmp dword [ebp - 0xcc], 0
mov esi, dword [ebp - 0xa8]
mov dword [ebp - 0xc8], 0
jbe 0x4075e3
lea ecx, [edi + 8]
xor edi, edi
mov dword [ebp - 0xe8], ecx
nop dword [eax]
nop dword [eax + eax]
cmp dword [ebp - 0x94], 0x10
lea eax, [ebp - 0xa8]
cmovae eax, esi
cmp dword [ecx + 0x14], 0x10
mov edx, dword [eax + edi*8]
mov esi, dword [eax + edi*8 + 4]
mov eax, ecx
jb 0x407521
mov eax, dword [ecx]
mov ecx, dword [eax]
xor edi, edi
mov dword [ebp - 0xdc], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0xd8], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xd4], 0x10
mov ecx, esi
lea edi, [edi - 0x61c88647]
shr ecx, 5
mov eax, esi
add ecx, dword [ebp - 0xd8]
shl eax, 4
add eax, dword [ebp - 0xdc]
xor ecx, eax
lea eax, [edi + esi]
xor ecx, eax
add edx, ecx
mov ecx, edx
mov eax, edx
shr ecx, 5
add ecx, dword [ebp - 0xe0]
shl eax, 4
add eax, dword [ebp - 0xe4]
xor ecx, eax
lea eax, [edi + edx]
xor ecx, eax
add esi, ecx
sub dword [ebp - 0xd4], 1
jne 0x407550
cmp dword [ebp - 0xac], 0x10
lea eax, [ebp - 0xc0]
mov edi, dword [ebp - 0xc8]
cmovae eax, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0xe8]
mov dword [eax + edi*8 + 4], esi
mov esi, dword [ebp - 0xa8]
mov dword [eax + edi*8], edx
inc edi
mov dword [ebp - 0xc8], edi
cmp edi, dword [ebp - 0xcc]
jb 0x407500
mov edi, dword [ebp - 0xec]
mov eax, dword [ebp - 0xc4]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x104], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xf4], xmm0
movups xmm0, xmmword [ebp - 0xc0]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0xb0]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0xf0]
movq qword [eax + 0x10], xmm0
cmp edx, 0x10
jb 0x407655
mov ecx, dword [ebp - 0x104]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40764b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407864
push edx
push ecx
call fcn.00428ee3
add esp, 8
mov ecx, dword [ebp - 0xd0]
cmp ecx, 0xa00000
jbe 0x40780b
push 0xc
lea eax, [edi + 0xb6]
mov dword [edi + 0x114], 0
push eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0xf
mov byte [ebp - 0xc0], 0
call fcn.00403b50
mov ecx, dword [ebp - 0xc4]
lea eax, [ebp - 0xc0]
push eax
mov byte [ebp - 4], 2
call fcn.00403840
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0xac]
cmp edx, 0x10
jb 0x40772f
mov ecx, dword [ebp - 0xc0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407725
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407869
jmp 0x407725
movups xmm0, xmmword [ebp - 0xa8]
movups xmm1, xmmword [eax]
movq xmm2, qword [eax + 0x10]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x98]
movups xmmword [ebp - 0xa8], xmm1
mov esi, dword [ebp - 0xa8]
movq qword [eax + 0x10], xmm0
movq qword [ebp - 0x98], xmm2
jmp 0x40765b
push edx
push ecx
call fcn.00428ee3
add esp, 8
push 0x96
lea eax, [edi + 0x20]
mov dword [ebp - 0xb0], 0
push eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xac], 0xf
mov byte [ebp - 0xc0], 0
call fcn.00403b50
mov ecx, dword [ebp - 0xc4]
lea eax, [ebp - 0xc0]
push eax
mov byte [ebp - 4], 3
call fcn.00403840
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0xac]
cmp edx, 0x10
jb 0x4077b2
mov ecx, dword [ebp - 0xc0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4077a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40786e
push edx
push ecx
call fcn.00428ee3
add esp, 8
cmp byte [edi + 2], 0
je 0x4077c9
cmp byte [edi + 1], 0
je 0x407806
lea ecx, [edi + 0xdc]
call fcn.00423050
cmp byte [edi + 1], 0
je 0x407806
sub esp, 0x18
mov dword [edi + 0xfc], 0
lea ecx, [edi + 0xdc]
mov dword [edi + 0x100], 0
mov dword [edi + 0x104], 0
call fcn.004225c0
add esp, 0x18
test eax, eax
je 0x407806
xor al, al
jmp 0x407808
mov al, 1
mov byte [edi + 2], al
mov edx, dword [ebp - 0x94]
cmp edx, 0x10
jb 0x40783b
inc edx
mov eax, esi
cmp edx, 0x1000
jb 0x407831
mov esi, dword [esi - 4]
add edx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407873
push edx
push esi
call fcn.00428ee3
add esp, 8
mov al, 1
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.00428c08
mov esp, ebp
pop ebp
ret 0xc
call fcn.004465a2
call fcn.004465a2
call fcn.004465a2
call fcn.004465a2
call fcn.004465a2
call fcn.004465a2
int3