Function at 0x1000dd40
Capabilities:
Encode data using xor
Print debug messages
Read file on windows

Disassembly:
mov eax, 0x2018
call fcn.1003a830
mov eax, dword [0x10062da0]
xor eax, esp
mov dword [esp + 0x2010], eax
mov eax, dword [esp + 0x201c]
push ebp
mov ebp, dword [esp + 0x2024]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x14], eax
jmp 0x1000dd81
push 0xfff
lea ecx, [esp + 0x1d]
push 0
push ecx
mov byte [esp + 0x24], 0
call fcn.10037cf0
add esp, 0xc
push 0xfff
lea edx, [esp + 0x101d]
push 0
push edx
mov byte [esp + 0x1024], 0
call fcn.10037cf0
mov eax, dword [0x100676ac]
add esp, 0xc
push 0
lea ecx, [eax*8]
push 0
sub ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [0x100676ac]
push 0
lea edx, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x1024]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000de13
push str.ReadPartionInfoEx_ReadFile_Fail__r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, str.ReadPartionInfoEx_ReadFile_Fail__r_n
call fcn.10011e30
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000dff2
push 0x1000
lea edx, [esp + 0x101c]
push edx
lea eax, [esp + 0x20]
push 0x1001
push eax
call fcn.10032c83
add esp, 0x10
call fcn.1001f600
mov eax, 0x10068ce0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000de40
mov ecx, 0
sub eax, edx
mov edx, ecx
je 0x1000de6d
movzx esi, byte [edx + 0x10068ce0]
movzx edi, cl
xor esi, edi
shr ecx, 8
xor ecx, dword [esi*4 + 0x100676c0]
inc edx
cmp edx, eax
jb 0x1000de52
mov edx, ecx
shr edx, 0x10
xor edx, ecx
movzx ecx, dx
xor eax, eax
lea esp, [esp]
xor word [esp + eax*2 + 0x18], cx
mov edx, 0xff
sub edx, eax
inc eax
add ecx, edx
cmp eax, 0x100
jl 0x1000de80
cmp dword [esp + 0x18], 0x46504445
je 0x1000df7f
push 0x1000
lea eax, [esp + 0x101c]
push eax
lea ecx, [esp + 0x20]
push 0x1001
push ecx
call fcn.10032c83
mov eax, 0x10068de8
add esp, 0x10
lea edx, [eax + 1]
jmp 0x1000ded0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000ded0
mov ecx, 0
sub eax, edx
mov edx, ecx
je 0x1000defd
movzx esi, byte [edx + 0x10068de8]
movzx edi, cl
xor esi, edi
shr ecx, 8
xor ecx, dword [esi*4 + 0x100676c0]
inc edx
cmp edx, eax
jb 0x1000dee2
mov edx, ecx
shr edx, 0x10
xor edx, ecx
movzx ecx, dx
xor eax, eax
lea esp, [esp]
xor word [esp + eax*2 + 0x18], cx
mov edx, 0xff
sub edx, eax
inc eax
add ecx, edx
cmp eax, 0x100
jl 0x1000df10
cmp dword [esp + 0x18], 0x46504445
jne 0x1000df63
push 0x10058174
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, 0x10058174
call fcn.10011e30
push 0x10068de8
push 0x104
push 0x10068ce0
call fcn.100329ad
add esp, 0xc
push 0x10068de8
jmp 0x1000df8f
push 0x1005818c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, 0x1005818c
call fcn.10011e30
mov eax, 1
jmp 0x1000dff2
push str.ReadPartionInfoEx_Find_Vrv_PartionInfo__r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x10068ce0
push 0x104
push 0x10069f30
call fcn.100329ad
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 0xc0
lea eax, [esp + 0x1c]
push eax
push 0xc1
push ecx
call fcn.10032c83
push 0xe
lea edx, [esp + 0xec]
push edx
push 0xf
push ebp
call fcn.10032c83
mov eax, 0x88
xor byte [ebp + 6], al
xor byte [ebp + 3], al
mov ecx, eax
xor word [ebp], cx
add esp, 0x20
jmp 0x1000dff0
xor eax, eax
mov ecx, dword [esp + 0x201c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10032551
add esp, 0x2018
ret 8