Function at 0x40b890
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
mov eax, dword [0x4d77ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov edx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2a0], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x24]
mov dword [ebp - 0x290], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x29c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x294], edx
mov dword [ebp - 0x28c], ecx
push esi
push edi
cmp eax, 0x18
ja 0x40bc0a
mov dword [ebp - 0x298], 0
mov edi, edx
lea ecx, [ecx]
cmp dword [edi + 0x114], eax
lea esi, [edi + 0x102]
jne 0x40b9b8
push ecx
mov ecx, edi
call fcn.00415ea0
test al, al
je 0x40b9af
mov ecx, dword [ebp - 0x290]
mov edx, 0xc
lea ecx, [ecx]
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x40b9af
add esi, 4
add ecx, 4
sub edx, 4
jae 0x40b920
push 0
mov edx, 0x20
lea ecx, [edi + 0x118]
call fcn.00415fc0
movdqu xmm0, xmmword [edi + 0x118]
add esp, 4
lea ecx, [edi + 0x118]
mov edx, 0x20
movdqu xmmword [ebp - 0x44], xmm0
movdqu xmm0, xmmword [edi + 0x128]
push 1
movdqu xmmword [ebp - 0x34], xmm0
call fcn.00415fc0
movdqu xmm0, xmmword [edi + 0x138]
movdqu xmm1, xmmword [edi + 0x168]
movdqu xmmword [ebp - 0x24], xmm0
movdqu xmm0, xmmword [edi + 0x148]
movdqu xmmword [ebp - 0x54], xmm1
movdqu xmmword [ebp - 0x14], xmm0
movdqu xmm0, xmmword [edi + 0x158]
movdqu xmmword [ebp - 0x64], xmm0
jmp 0x40baeb
mov ecx, dword [ebp - 0x28c]
mov eax, dword [ebp + 0x1c]
mov esi, dword [ebp - 0x298]
add edi, 0x178
inc esi
mov dword [ebp - 0x298], esi
cmp esi, 4
jb 0x40b8f0
push ecx
mov ecx, dword [ebp - 0x2a0]
lea edx, [ebp - 0x288]
call fcn.00418910
lea edx, [ebp - 0x288]
add esp, 4
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x40b9f2
mov edi, dword [ebp + 0x1c]
sub edx, ecx
mov ecx, edi
mov eax, 1
shl eax, cl
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x44]
push eax
push ecx
push dword [ebp - 0x290]
lea ecx, [ebp - 0x288]
call fcn.0040b6e0
add esp, 0x18
lea eax, [ebp - 0x288]
mov ecx, 0x200
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x40ba34
mov esi, dword [ebp - 0x294]
push 1
mov ecx, dword [esi + 0x5e0]
mov eax, ecx
and eax, 3
imul edx, eax, 0x178
add edx, esi
lea eax, [ecx + 1]
mov ecx, 0x40
mov dword [esi + 0x5e0], eax
mov esi, dword [ebp - 0x28c]
mov dword [edx + 0x114], edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x290]
lea ecx, [edx + 0x118]
movsw word es:[edi], word [esi]
movdqu xmm0, xmmword [eax]
movdqu xmmword [edx + 0x102], xmm0
movdqu xmm0, xmmword [ebp - 0x44]
movdqu xmmword [ecx], xmm0
movdqu xmm0, xmmword [ebp - 0x34]
movdqu xmmword [ecx + 0x10], xmm0
movdqu xmm0, xmmword [ebp - 0x24]
movdqu xmmword [edx + 0x138], xmm0
movdqu xmm0, xmmword [ebp - 0x14]
movdqu xmmword [edx + 0x148], xmm0
movdqu xmm0, xmmword [ebp - 0x64]
movdqu xmmword [edx + 0x158], xmm0
movdqu xmm0, xmmword [ebp - 0x54]
movdqu xmmword [edx + 0x168], xmm0
mov edx, 0x20
call fcn.00415fc0
movdqu xmm1, xmmword [ebp - 0x54]
movdqu xmm0, xmmword [ebp - 0x64]
mov eax, dword [ebp - 0x29c]
add esp, 4
test eax, eax
je 0x40bb01
movdqu xmmword [eax], xmm0
movdqu xmmword [eax + 0x10], xmm1
test ebx, ebx
je 0x40bb5e
mov edx, 1
xorps xmm0, xmm0
movq qword [ebx], xmm0
lea esi, [edx + 7]
mov al, byte [ebp + edx - 0x25]
lea ecx, [edx - 1]
and ecx, 7
xor byte [ecx + ebx], al
mov ecx, edx
mov al, byte [ebp + edx - 0x24]
and ecx, 7
xor byte [ecx + ebx], al
lea ecx, [edx + 1]
mov al, byte [ebp + edx - 0x23]
and ecx, 7
xor byte [ecx + ebx], al
lea ecx, [edx + 2]
mov al, byte [ebp + edx - 0x22]
and ecx, 7
add edx, 4
xor byte [ecx + ebx], al
dec esi
jne 0x40bb14
mov ecx, 0x20
lea eax, [ebp - 0x24]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x40bb55
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x40bbf9
mov esi, dword [ebp - 0x294]
lea edi, [ebp - 0x2b0]
xor ecx, ecx
mov dword [esi + 0x5ec], 0xe
mov eax, 1
cpuid
mov dword [edi], eax
mov eax, edi
mov edi, dword [ebp + 0x18]
mov dword [eax + 4], ebx
lea ebx, [esi + 0x5e8]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x2a8]
shr eax, 0x19
and al, 1
xor esi, esi
mov byte [ebx], al
lea ecx, [ecx]
mov eax, esi
lea ecx, [ebp - 0x84]
and eax, 3
mov edx, esi
add ecx, eax
shr edx, 2
mov al, byte [ebp + esi - 0x44]
inc esi
mov byte [ecx + edx*4], al
cmp esi, 0x20
jb 0x40bbb0
xor ecx, ecx
mov al, byte [ecx + edi]
mov byte [ebx + ecx + 8], al
inc ecx
cmp ecx, 0x10
jl 0x40bbd1
lea eax, [ebp - 0x84]
mov ecx, ebx
push eax
call fcn.00415700
cmp byte [ebp + 8], 0
jne 0x40bbf9
mov ecx, ebx
call fcn.00415960
mov ecx, 0x20
lea eax, [ebp - 0x44]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x40bc01
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493864
mov esp, ebp
pop ebp
ret 0x20