Function at 0x407904
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, esi
mov ebx, ecx
push 4
mov edx, 0xe4c0d971
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
call fcn.00404bfc
movaps xmm0, xmmword [0x41b1b0]
mov edx, eax
movups xmmword [ebp - 0x30], xmm0
xor ecx, ecx
mov word [ebp - 0x10], 0x59
movaps xmm0, xmmword [0x41b1c0]
movups xmmword [ebp - 0x20], xmm0
mov al, byte [ebp - 0x30]
xor byte [ebp + ecx - 0x2f], al
inc ecx
cmp ecx, 0x20
jb 0x407958
add ebx, 0x18
mov byte [ebp - 0xf], 0
push ebx
lea eax, [ebp - 0x2f]
push eax
push 0x80000002
call edx
push 4
mov edx, 0x77739979
mov dword [ebp + 8], 0x100
pop ecx
call fcn.00404bfc
movaps xmm0, xmmword [0x41b250]
mov edx, eax
movups xmmword [ebp - 0x20], xmm0
mov word [ebp - 0x10], 0x49
xor ecx, ecx
mov al, byte [ebp - 0x20]
xor byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0x10
jb 0x4079a1
lea eax, [ebp + 8]
mov byte [ebp - 0xf], 0
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
lea eax, [ebp - 0x1f]
push eax
push dword [ebx]
call edx
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
dec eax
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.00401aa0
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmova eax, dword [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0040266f
mov edx, dword [ebp - 0x14]
cmp edx, 0xf
jbe 0x407a17
mov ecx, dword [ebp - 0x28]
inc edx
call fcn.00401bbe
push 4
mov edx, 0x77739979
mov dword [ebp + 8], 0x100
pop ecx
call fcn.00404bfc
movaps xmm0, xmmword [0x41b3a0]
mov edx, eax
movups xmmword [ebp - 0x21], xmm0
mov word [ebp - 0x11], 0x737b
xor ecx, ecx
mov byte [ebp - 0xf], 0
movsx eax, byte [ebp - 0x21]
and eax, 0x8000000f
jns 0x407a54
dec eax
or eax, 0xfffffff0
inc eax
sub byte [ebp + ecx - 0x20], al
inc ecx
cmp ecx, 0x11
jb 0x407a44
lea eax, [ebp + 8]
mov byte [ebp - 0xf], 0
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebx]
call edx
xor edx, edx
cmp dword [esi + 0x10], edx
je 0x407abe
mov al, 0x12
mov dword [ebp - 9], 0x222f2212
mov byte [ebp - 5], dl
mov ecx, edx
movsx eax, al
and eax, 0x8000000f
jns 0x407a9f
dec eax
or eax, 0xfffffff0
inc eax
sub byte [ebp + ecx - 8], al
inc ecx
cmp ecx, 3
jae 0x407aae
mov al, byte [ebp - 9]
jmp 0x407a90
lea eax, [ebp - 8]
mov byte [ebp - 5], dl
push eax
mov ecx, esi
call fcn.00406bea
xor edx, edx
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
dec eax
mov dword [ebp - 0x18], edx
push eax
lea eax, [ebp - 0x134]
mov dword [ebp - 0x14], edx
push eax
call fcn.00401aa0
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmova eax, dword [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0040266f
mov edx, dword [ebp - 0x14]
cmp edx, 0xf
jbe 0x407b08
mov ecx, dword [ebp - 0x28]
inc edx
call fcn.00401bbe
push 4
mov edx, 0x59b26164
pop ecx
call fcn.00404bfc
push dword [ebx]
call eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4