Function at 0x4210b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x214
mov al, byte [0x4b5218]
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 8
mov esi, str.Error_getting_disk_information_
lea edi, [esp + 0xfc]
mov byte [esp + 0xbc], al
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xbd]
xor ebp, ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebx + 0xff0], ebp
mov dword [ebx + 0x24744], ebp
mov dword [esp + 0x14], 1
mov dword [ebx + 0xff4], ebp
lea ecx, [ebx + 0xfb0]
lea eax, [ebx + 0xf70]
mov edx, 6
mov esi, dword [eax]
mov edi, dword [ebx + 0xf72]
xor esi, edi
add eax, 2
mov dword [ecx], esi
add ecx, 4
dec edx
jne 0x42111b
lea ecx, [esp + 0x15c]
push ecx
push 8
call fcn.00419220
add esp, 8
mov dword [esp + 0x10], ebp
mov eax, dword [ebx + 0x24744]
test eax, eax
jl 0x421508
cmp ebp, 2
jne 0x421196
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemTime]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1a]
mov edx, dword [esp + 0x1e]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x74]
push str._02d__02d__04d______
push eax
call fcn.00452382
add esp, 0x14
push ebp
lea ecx, [esp + 0x120]
push str..PhysicalDrive_d
push ecx
call fcn.00452382
mov esi, dword [ebx + 0x24744]
add esp, 0xc
xor eax, eax
mov ecx, 0x372
lea edx, [esi + esi*2]
push eax
shl edx, 4
add edx, esi
push 0x8000000
push 3
push eax
lea edx, [edx + edx*8]
push 3
push 0xc0000000
lea edi, [ebx + edx*8 + 0x24748]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x134]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edx, dword [ebx + 0x24744]
lea ecx, [edx + edx*2]
shl ecx, 4
add ecx, edx
cmp ebp, 6
lea ecx, [ecx + ecx*8]
mov dword [ebx + ecx*8 + 0x24748], eax
jne 0x4212d5
lea edx, [esp + 0x28]
push 0x10
lea eax, [esp + 0x6c]
push edx
push eax
lea ecx, [ebx + 0xf68]
call fcn.004083b0
xor ebp, ebp
lea ecx, [esp + 0x15c]
push str._02X
push ecx
call fcn.00452382
lea edi, [esp + 0x164]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xbc]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
cmp ebp, 0xf
rep movsb byte es:[edi], byte [esi]
je 0x4212a1
mov edi, 0x4afbe0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xbc]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
inc ebp
cmp ebp, 0x10
jl 0x421225
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
lea eax, [ebx + 0x40100]
mov ebp, dword [esp + 0x10]
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
jmp 0x421371
cmp ebp, 7
jne 0x42134f
lea eax, [esp + 0x7c]
lea esi, [ebx + 0x40114]
push 0x10
push eax
push esi
lea ecx, [ebx + 0xf68]
call fcn.004084f0
lea ecx, [esp + 0x7c]
push ecx
call fcn.0045277d
lea edx, [esp + 0x83]
mov edi, eax
push edx
call fcn.0045277d
mov dword [esp + 0x18], eax
lea eax, [esp + 0x8a]
push eax
call fcn.0045277d
add esp, 0xc
cmp eax, 0x7d2
jne 0x421371
mov ecx, dword [esp + 0x10]
add ecx, edi
cmp ecx, 0x25
jne 0x421371
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [esi], edx
mov edx, dword [esp + 0x34]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
jmp 0x421371
cmp ebp, 0xa
jne 0x421371
mov eax, dword [ebx + 0xff4]
test eax, eax
jl 0x421371
jg 0x421369
cmp dword [ebx + 0xff0], 0xf
jbe 0x421371
mov dword [esp + 0x14], 0xffffff9c
mov ecx, dword [ebx + 0x24744]
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
mov ecx, dword [ebx + 0x40140]
lea eax, [eax + eax*8]
mov dword [ebx + eax*8 + 0x24758], ecx
mov ecx, dword [ebx + 0x24744]
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
lea edx, [eax + eax*8]
lea eax, [ebx + edx*8 + 0x24748]
push eax
call fcn.00418c00
add esp, 4
test al, al
je 0x4214bd
mov ecx, dword [ebx + 0x24744]
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
lea ecx, [eax + eax*8]
mov dword [ebx + ecx*8 + 0x2474c], ebp
mov ecx, dword [ebx + 0x24744]
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
lea edx, [eax + eax*8]
mov eax, dword [ebx + edx*8 + 0x247a4]
push eax
mov eax, dword [ebx + edx*8 + 0x247c8]
mov ecx, dword [ebx + edx*8 + 0x247a0]
lea esi, [ebx + edx*8]
push ecx
mov edx, dword [esi + 0x247cc]
push edx
push eax
call fcn.00452490
test edx, edx
jl 0x42143b
jg 0x421415
cmp eax, 0x3b9aca00
jbe 0x42143b
push 0
push 0x3b9aca00
push edx
push eax
call fcn.004523e0
push edx
add esi, 0x2475c
push eax
push esi
lea ecx, [esp + 0x1cc]
push str._s___I64d_gB_
push ecx
jmp 0x42145f
push 0
push 0xf4240
push edx
push eax
call fcn.004523e0
push edx
add esi, 0x2475c
push eax
push esi
lea edx, [esp + 0x1cc]
push str._s___d_mB_
push edx
call fcn.00452382
mov ecx, dword [ebx + 0xdac]
add esp, 0x14
lea eax, [esp + 0x1c0]
push eax
push 0
push 0x143
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebx + 0x24744]
mov edx, dword [ebx + 0x4005c]
push edx
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ecx
lea eax, [eax + eax*8]
lea ecx, [ebx + eax*8 + 0x24748]
push ecx
call fcn.0041c170
mov edx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x24744]
add esp, 8
add eax, edx
mov dword [ebx + 0x24744], eax
cmp ebp, 5
jne 0x4214d9
lea eax, [esp + 0xfc]
push 0x1f
push eax
lea ecx, [ebx + 0xf68]
call fcn.00408260
jmp 0x421508
cmp ebp, 0xc
jne 0x421508
xor ecx, ecx
xor eax, eax
dec eax
jmp 0x4214fc
mov dword [ebx + 0xff0], eax
mov dword [ebx + 0xff4], ecx
inc ebp
cmp ebp, 0x20
mov dword [esp + 0x10], ebp
jl 0x421146
mov eax, dword [ebx + 0x24744]
test eax, eax
jl 0x421535
mov eax, dword [ebx + 0xff4]
test eax, eax
jg 0x421546
jl 0x421535
cmp dword [ebx + 0xff0], 1
jae 0x421546
mov ecx, ebx
call fcn.0047a05b
mov dword [ebx + 0x24744], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret