Function at 0x40b976
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
xor eax, eax
push ebx
push esi
push edi
mov esi, ecx
push 0xf
pop ebx
mov dword [ebp - 8], esi
lea edx, [esi + 4]
mov edi, edx
push 0xf
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [edx + 0x10], 0
lea edi, [esi + 0x1c]
mov dword [edx + 0x14], ebx
mov byte [edx], 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [esi + 0x2c], 0
lea edi, [esi + 0x34]
mov dword [esi + 0x30], ebx
mov byte [esi + 0x1c], 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [esi + 0x44], 0
lea edi, [esi + 0x4c]
mov dword [esi + 0x48], ebx
mov byte [esi + 0x34], 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [esi + 0x5c], 0
lea edi, [esi + 0x64]
mov dword [esi + 0x60], ebx
mov byte [esi + 0x4c], 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [esi + 0x74], 0
mov dword [esi + 0x78], ebx
lea ebx, [esi + 0x7c]
mov byte [esi + 0x64], 0
mov edi, ebx
add esi, 0x94
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebx + 0x10], 0
mov edi, esi
mov dword [ebx + 0x14], ecx
mov byte [ebx], 0
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
xor eax, eax
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp - 8]
mov byte [esi], 0
lea edi, [ecx + 0xac]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ecx + 0xac]
and dword [eax + 0x10], 0
lea edi, [ecx + 0xc4]
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
xor eax, eax
stosd dword es:[edi], eax
push dword [ebp + 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ecx + 0xc4]
and dword [eax + 0x10], 0
lea edi, [ecx + 0xdc]
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ecx + 0xec], 0
lea edi, [ecx + 0xf4]
mov dword [ecx + 0xf0], 0xf
mov byte [ecx + 0xdc], 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov edi, ecx
mov dword [ecx + 0x104], eax
mov dword [ecx + 0x108], 0xf
mov byte [ecx + 0xf4], al
mov ecx, edx
mov byte [edi + 0x10c], al
mov dword [edi + 0x110], eax
mov dword [edi + 0x114], eax
mov dword [edi + 0x118], eax
mov dword [edi + 0x11c], eax
mov dword [edi + 0x120], eax
mov dword [edi + 0x124], eax
mov byte [edi + 0x128], al
call fcn.0040fa70
push dword [ebp + 0xc]
lea ecx, [edi + 0x1c]
call fcn.0040fa70
push dword [ebp + 0x10]
lea ecx, [edi + 0x34]
call fcn.0040fa70
push dword [ebp + 0x14]
lea ecx, [edi + 0x4c]
call fcn.0040fa70
push 0
push 0x40835c
lea ecx, [edi + 0x64]
call fcn.0040fc05
push 0
push 0x40835c
mov ecx, ebx
call fcn.0040fc05
xor ebx, ebx
mov ecx, esi
push ebx
push 0x40835c
call fcn.0040fc05
movaps xmm0, xmmword [0x408cb0]
mov ecx, ebx
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0xc], 0x75767a
mov al, byte [ebp - 0x1c]
xor byte [ebp + ecx - 0x1b], al
inc ecx
cmp ecx, 0x12
jb 0x40bb44
mov byte [ebp - 9], bl
mov cl, 0x3f
mov dword [ebp - 8], 0x525a4b3f
mov eax, ebx
mov word [ebp - 4], 0x4f
xor byte [ebp + eax - 7], cl
inc eax
cmp eax, 4
jae 0x40bb74
mov cl, byte [ebp - 8]
jmp 0x40bb65
lea eax, [ebp - 0x1b]
mov byte [ebp - 3], bl
push eax
lea eax, [ebp - 7]
push eax
call fcn.00431c1b
pop ecx
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040fb41
mov edx, eax
lea ecx, [ebp - 0x34]
call fcn.0040fd46
push eax
lea ecx, [edi + 0xac]
call fcn.0040fabc
lea ecx, [ebp - 0x34]
call fcn.0040fa99
lea ecx, [ebp - 0x4c]
call fcn.0040fa99
push dword [ebp + 0x18]
lea ecx, [edi + 0xc4]
call fcn.0040fa70
push dword [ebp + 0x1c]
lea ecx, [edi + 0xf4]
call fcn.0040fa70
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x18