Function at 0x408400
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x4902b4]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push esi
push edi
push pe_nt_image_headers32
lea eax, [esp + 0x1c]
mov esi, edx
mov ebx, ecx
mov dword [esp + 0x14], esi
push 0
push eax
mov dword [esp + 0x20], ebx
call fcn.00447c10
add esp, 0xc
cmp dword [0x49411c], 0
jne 0x408485
mov eax, 1
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
mov ebx, dword [esp + 0x14]
mov dword [0x494108], eax
mov eax, ecx
mov dword [0x49410c], esi
mov esi, dword [esp + 0x10]
mov dword [0x494110], ecx
mov dword [0x494114], edx
mov dword [0x494118], eax
mov dword [0x49411c], 1
jmp 0x40848a
mov eax, dword [0x494118]
test eax, 0x2000000
je 0x4084a5
lea ecx, [ebx - 8]
shr ecx, 2
and ecx, 3
je 0x4084a5
mov eax, 4
sub eax, ecx
jmp 0x4084a7
xor eax, eax
push dword [ebp + 8]
mov edx, esi
mov dword [ebx + 4], eax
lea ecx, [esp + 0x1c]
lea edi, [ebx + eax*4]
call fcn.00407430
mov edx, eax
add esp, 4
mov dword [esp + 0x10], edx
test edx, edx
jne 0x4086c7
mov ecx, dword [esp + 0x18]
mov dword [ebx], ecx
cmp dword [0x49411c], eax
jne 0x408519
mov eax, 1
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
mov ebx, dword [esp + 0x14]
mov dword [0x494108], eax
mov eax, ecx
mov dword [0x494110], ecx
mov ecx, dword [esp + 0x18]
mov dword [0x49410c], esi
mov dword [0x494114], edx
mov dword [0x494118], eax
mov dword [0x49411c], 1
jmp 0x40851e
mov eax, dword [0x494118]
test eax, 0x2000000
mov eax, dword [esp + 0x1c]
je 0x408542
push dword [ebx]
lea edx, [esp + 0x24]
lea edx, [edx + eax*4]
lea ecx, [edi + 8]
call fcn.00412380
add esp, 4
jmp 0x4086c3
lea eax, [eax + ecx*4]
lea ecx, [esp + 0x20]
lea eax, [ecx + eax*4]
mov ecx, dword [eax]
mov dword [edi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [edi + 0xc], ecx
mov ecx, dword [eax + 8]
mov dword [edi + 0x10], ecx
mov ecx, dword [eax + 0xc]
sub eax, 0x10
mov dword [edi + 0x14], ecx
add edi, 0x18
mov esi, dword [ebx]
dec esi
test esi, esi
jle 0x4086ad
movzx ecx, byte [eax + 3]
dec esi
movzx edx, byte [ecx + 0x494160]
movzx ecx, byte [eax + 2]
mov edx, dword [edx*4 + 0x494260]
movzx ecx, byte [ecx + 0x494160]
xor edx, dword [ecx*4 + 0x495f60]
movzx ecx, byte [eax + 1]
movzx ecx, byte [ecx + 0x494160]
xor edx, dword [ecx*4 + 0x494f60]
movzx ecx, byte [eax]
movzx ecx, byte [ecx + 0x494160]
xor edx, dword [ecx*4 + 0x495360]
mov dword [edi], edx
movzx ecx, byte [eax + 7]
movzx edx, byte [ecx + 0x494160]
movzx ecx, byte [eax + 6]
mov edx, dword [edx*4 + 0x494260]
movzx ecx, byte [ecx + 0x494160]
xor edx, dword [ecx*4 + 0x495f60]
movzx ecx, byte [eax + 5]
movzx ecx, byte [ecx + 0x494160]
xor edx, dword [ecx*4 + 0x494f60]
movzx ecx, byte [eax + 4]
movzx ecx, byte [ecx + 0x494160]
xor edx, dword [ecx*4 + 0x495360]
mov dword [edi + 4], edx
movzx ecx, byte [eax + 0xb]
movzx edx, byte [ecx + 0x494160]
movzx ecx, byte [eax + 0xa]
mov edx, dword [edx*4 + 0x494260]
movzx ecx, byte [ecx + 0x494160]
xor edx, dword [ecx*4 + 0x495f60]
movzx ecx, byte [eax + 9]
movzx ecx, byte [ecx + 0x494160]
xor edx, dword [ecx*4 + 0x494f60]
movzx ecx, byte [eax + 8]
movzx ecx, byte [ecx + 0x494160]
xor edx, dword [ecx*4 + 0x495360]
mov dword [edi + 8], edx
movzx ecx, byte [eax + 0xf]
movzx edx, byte [ecx + 0x494160]
movzx ecx, byte [eax + 0xe]
mov edx, dword [edx*4 + 0x494260]
movzx ecx, byte [ecx + 0x494160]
xor edx, dword [ecx*4 + 0x495f60]
movzx ecx, byte [eax + 0xd]
movzx ecx, byte [ecx + 0x494160]
xor edx, dword [ecx*4 + 0x494f60]
movzx ecx, byte [eax + 0xc]
sub eax, 0x10
movzx ecx, byte [ecx + 0x494160]
xor edx, dword [ecx*4 + 0x495360]
mov dword [edi + 0xc], edx
add edi, 0x10
test esi, esi
jg 0x408574
mov ecx, dword [eax]
mov dword [edi], ecx
mov ecx, dword [eax + 4]
mov dword [edi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edi + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [edi + 0xc], eax
mov edx, dword [esp + 0x10]
mov ecx, pe_nt_image_headers32
lea eax, [esp + 0x18]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4086d0
mov ecx, dword [esp + 0x134]
mov eax, edx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00444b60
mov esp, ebp
pop ebp
ret