Function at 0x40d860
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 8], 0
push esi
push edi
mov edi, edx
mov dword [ebp - 4], ebx
mov ecx, eax
mov esi, 0x21
shrd edi, ecx, 9
push eax
shr ecx, 9
mov dword [ebp - 0x10], ecx
mov ecx, ebx
mov dword [ebp - 0xc], edi
lea edi, [ebx + 0x200]
push edx
call fcn.0040d5d0
add esp, 8
cmp dword [0x4300f0], 0
je 0x40d8bf
cmp dword [0x42f1d8], 0
mov eax, dword [0x42f1dc]
je 0x40d8c1
shl eax, 0xa
jmp 0x40d8c1
xor eax, eax
cdq
test edx, edx
jl 0x40d8e0
jg 0x40d8cc
test eax, eax
je 0x40d8e0
mov esi, eax
mov ebx, edx
shld ebx, esi, 0xb
shl esi, 0xb
add esi, 0x21
adc ebx, 0
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0xc]
sub ebx, esi
mov esi, dword [ebp - 0x10]
sbb esi, dword [ebp - 8]
add ebx, 0xfffef800
mov ecx, ebx
adc esi, 0xffffffff
and ecx, 7
mov eax, ecx
mov dword [ebp - 8], esi
or eax, 0
mov dword [ebp + 0xc], ecx
je 0x40d91b
push 0
push ecx
push esi
push ebx
push str.Part1SectorCount:_llu_is_not_aligned_by_4KB___llu_
call fcn.0040c4e0
mov ecx, dword [ebp + 0xc]
add esp, 0x14
cmp dword [0x42f1d4], 0
je 0x40d951
mov eax, ecx
or eax, 0
je 0x40d944
push ecx
push str.Disk_need_to_align_with_4KB__u
call fcn.0040c4e0
add esp, 8
sub ebx, dword [ebp + 0xc]
sbb esi, 0
mov dword [ebp - 8], esi
jmp 0x40d951
push str.no_need_to_align_with_4KB
call fcn.0040c4e0
add esp, 4
mov eax, dword [str.EFI_PART]
mov esi, dword [ebp - 0xc]
mov ecx, esi
mov edx, dword [ebp - 0x10]
add ecx, 0xffffffff
mov dword [edi], eax
mov eax, dword [0x42b464]
mov dword [edi + 4], eax
lea eax, [edi + 0x10]
mov byte [edi + 0xa], 1
mov dword [ebp + 0xc], eax
mov dword [eax], 0
mov eax, edx
adc eax, 0xffffffff
mov dword [edi + 0xc], 0x5c
add esi, 0xffffffde
mov dword [edi + 0x24], eax
lea eax, [edi + 0x38]
mov dword [edi + 0x30], esi
mov esi, dword [sym.imp.ole32.dll_CoCreateGuid]
adc edx, 0xffffffff
push eax
mov dword [edi + 0x18], 1
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], ecx
mov dword [edi + 0x28], 0x22
mov dword [edi + 0x2c], 0
mov dword [edi + 0x34], edx
call esi
mov eax, dword [ebp - 4]
mov dword [edi + 0x48], 2
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0x80
mov dword [edi + 0x54], 0x80
movdqu xmm0, xmmword [0x42f1fc]
movdqu xmmword [eax + 0x400], xmm0
add eax, 0x410
push eax
call esi
mov ecx, dword [ebp - 4]
add ebx, 0x7ff
mov eax, dword [ebp - 8]
adc eax, 0
mov dword [ecx + 0x428], ebx
mov ebx, ecx
mov dword [ecx + 0x420], 0x800
mov dword [ecx + 0x424], 0
mov dword [ebx + 0x42c], eax
mov dword [ebx + 0x430], 0
mov dword [ebx + 0x434], 0
movq xmm0, qword [0x428f4c]
movq qword [ebx + 0x438], xmm0
mov eax, dword [0x428f54]
mov dword [ebx + 0x440], eax
lea eax, [ebx + 0x490]
movdqu xmm0, xmmword [0x42f1fc]
push eax
movdqu xmmword [ebx + 0x480], xmm0
call esi
mov ecx, dword [ebx + 0x428]
lea esi, [ebx + 0x402]
mov eax, dword [ebx + 0x42c]
add ecx, 1
mov dword [ebx + 0x4a0], ecx
adc eax, 0
mov dword [ebx + 0x4b0], 1
mov dword [ebx + 0x4a4], eax
add ecx, 0xffff
mov dword [ebx + 0x4a8], ecx
adc eax, 0
mov dword [ebx + 0x4b4], 0xc0000000
mov dword [ebx + 0x4ac], eax
movq xmm0, qword [str.VTOYEFI]
movq qword [ebx + 0x4b8], xmm0
mov eax, dword [0x428e58]
mov dword [ebx + 0x4c0], eax
mov ax, word [0x428e5c]
mov word [ebx + 0x4c4], ax
or eax, 0xffffffff
mov ebx, 0x1000
mov edi, edi
movzx edx, byte [esi - 2]
lea esi, [esi + 4]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x427fd0]
movzx edx, byte [esi - 5]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x427fd0]
movzx edx, byte [esi - 4]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x427fd0]
movzx edx, byte [esi - 3]
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x427fd0]
dec ebx
jne 0x40daf0
mov esi, dword [edi + 0xc]
not eax
or edx, 0xffffffff
mov dword [edi + 0x58], eax
test esi, esi
je 0x40db69
movzx ecx, byte [edi]
lea edi, [edi + 1]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x427fd0]
dec esi
jne 0x40db51
mov eax, dword [ebp + 0xc]
not edx
pop edi
pop esi
pop ebx
mov dword [eax], edx
xor eax, eax
mov esp, ebp
pop ebp
ret