Function at 0x40c782
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x2c], 0x24
mov byte [ebp - 0x2b], 0x42
mov byte [ebp - 0x2a], 0x4f
mov byte [ebp - 0x29], 0x4f
mov byte [ebp - 0x28], 0x54
mov byte [ebp - 0x27], 0x53
mov byte [ebp - 0x26], 0x49
mov byte [ebp - 0x25], 0x24
mov byte [ebp - 0x24], 0
mov byte [ebp - 4], 0x24
mov byte [ebp - 3], 0x4d
mov byte [ebp - 2], 0x41
mov byte [ebp - 1], 0
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x794], 0
je 0x40c888
mov dword [ebp - 0x30], 0x10007
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00423fa9
add esp, 4
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x40c81d
jmp 0x40caad
mov eax, dword [ebp - 0x30]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00412470
add esp, 0xc
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
mov dword [eax], 0xffff0000
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 4], 0xffff
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0x728]
push edx
mov ecx, dword [ebp - 0x54]
call fcn.00405894
test eax, eax
jne 0x40c87d
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00423fd2
add esp, 4
jmp 0x40caad
mov edx, dword [ebp - 0xc]
add edx, 8
mov dword [ebp - 8], edx
jmp 0x40c8c7
mov dword [ebp - 0x44], 0xffff0000
mov dword [ebp - 0x40], 0xfffe
mov dword [ebp - 0x3c], 0
push 0
lea eax, [ebp - 0x38]
push eax
push 4
lea ecx, [ebp - 0x3c]
push ecx
push 8
lea edx, [ebp - 0x44]
push edx
push 0x6e
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax + 0x728]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], 0
jmp 0x40c8d9
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xfff0
ja 0x40c97b
mov dword [ebp - 0x18], 0
jmp 0x40c8f8
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 8
jge 0x40c91b
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
movsx ecx, byte [edx + eax]
mov edx, dword [ebp - 0x18]
movsx eax, byte [ebp + edx - 0x2c]
cmp ecx, eax
je 0x40c919
jmp 0x40c91b
jmp 0x40c8ef
cmp dword [ebp - 0x18], 8
jl 0x40c976
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
lea eax, [edx + ecx + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dl, byte [ecx]
mov byte [ebp - 0x1c], dl
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x10]
mov dl, byte [ecx + 1]
mov byte [eax + 0x48b0], dl
mov eax, dword [ebp - 0x1c]
and eax, 0xff
push eax
push str._BOOTSI__version_of_current_BIOS_:_V_d
call fcn.004030c0
add esp, 8
mov ecx, dword [ebp - 0x54]
xor edx, edx
mov dl, byte [ecx + 0x48b0]
push edx
push str.Boot_block_compatible_version_of_current_BIOS_:_V_d
call fcn.004030c0
add esp, 8
jmp 0x40c97b
jmp 0x40c8d0
mov dword [ebp - 0x14], 0xffe0
jmp 0x40c98d
mov eax, dword [ebp - 0x14]
sub eax, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xf000
jb 0x40ca0a
mov dword [ebp - 0x18], 0
jmp 0x40c9a8
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 8
jge 0x40c9d2
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov cl, byte [edx + eax]
mov byte [ebp - 0x20], cl
movsx edx, byte [ebp - 0x20]
push edx
call fcn.00413335
add esp, 4
test eax, eax
jne 0x40c9d0
jmp 0x40c9d2
jmp 0x40c99f
cmp dword [ebp - 0x18], 8
jl 0x40ca05
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push 5
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x54]
add edx, 0x6a4
push edx
call fcn.00412820
add esp, 0xc
mov eax, dword [ebp - 0x54]
mov byte [eax + 0x6a9], 0
jmp 0x40ca0a
jmp 0x40c984
mov dword [ebp - 0x14], 0
jmp 0x40ca1c
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0xfff0
ja 0x40ca8f
mov dword [ebp - 0x18], 0
jmp 0x40ca37
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 3
jge 0x40ca5a
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
movsx edx, byte [eax + ecx]
mov eax, dword [ebp - 0x18]
movsx ecx, byte [ebp + eax - 4]
cmp edx, ecx
je 0x40ca58
jmp 0x40ca5a
jmp 0x40ca2e
cmp dword [ebp - 0x18], 3
jl 0x40ca8d
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x54]
mov byte [eax + 0x6c6], 1
push 0x16
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x54]
add edx, 0x6b0
push edx
call fcn.00412820
add esp, 0xc
jmp 0x40ca8f
jmp 0x40ca13
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x794], 0
je 0x40caad
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
push edx
call fcn.00423fd2
add esp, 4
mov esp, ebp
pop ebp
ret