Function at 0x4b14d0
Capabilities:
Encode data using xor
Get disk information
Get storage device properties

Disassembly:
push ebp
lea ebp, [esp - 0x304]
sub esp, 0x304
push 0xfffffffffffffffe
push 0x4fa9a8
push 0x4cbf30
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x417270]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x300], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x19], 0
mov dword [ebp - 0x24], 0
movzx eax, byte [0x421094]
xor al, 0x2a
mov byte [ebp + 0x2f4], al
movzx ecx, byte [0x421095]
xor cl, 0xc1
mov byte [ebp + 0x2f5], cl
movzx edx, byte [0x421096]
xor dl, 0x68
mov byte [ebp + 0x2f6], dl
movzx eax, byte [0x421097]
xor al, 0x7e
mov byte [ebp + 0x2f7], al
movzx ecx, byte [0x421098]
xor cl, 0x2a
mov byte [ebp + 0x2f8], cl
movzx edx, byte [0x421099]
xor dl, 0xc1
mov byte [ebp + 0x2f9], dl
mov byte [ebp + 0x2fa], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0x41
test eax, eax
je 0x4b19fd
jmp 0x4b15a3
mov eax, dword [ebp - 0x2c]
test al, 1
je 0x4b19ea
mov ebx, dword [ebp - 0x30]
mov byte [ebp + 0x2f8], bl
lea eax, [ebp + 0x2f8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
sub eax, 2
je 0x4b15cb
sub eax, 2
jmp 0x4b15ce
cmp ebx, 0x41
je 0x4b19ea
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea ecx, [ebp + 0x2f4]
push ecx
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
call edi
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, 0xffffffff
je 0x4b17f2
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
push eax
lea edx, [ebp - 0x24]
push edx
push 0x18
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x74080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4b17ed
mov al, byte [ebp - 0x51]
test al, al
jbe 0x4b17ed
and al, 0x10
neg al
sbb al, al
and al, 0xb5
add al, 0xec
mov bl, al
xor eax, eax
mov dword [ebp + 0x2d4], eax
mov dword [ebp + 0x2d8], eax
mov dword [ebp + 0x2dc], eax
mov dword [ebp + 0x2e0], eax
mov dword [ebp + 0x2e4], eax
mov dword [ebp + 0x2e8], eax
mov dword [ebp + 0x2ec], eax
mov dword [ebp + 0x2f0], eax
push 0x210
push eax
lea ecx, [ebp]
push ecx
call fcn.004caf20
add esp, 0xc
mov byte [ebp + 0x2d4], 0
mov byte [ebp + 0x2d5], 2
mov byte [ebp + 0x2d9], 1
mov byte [ebp + 0x2da], 1
mov byte [ebp + 0x2dd], 0xb0
mov byte [ebp + 0x2de], bl
push 0
lea edx, [ebp - 0x24]
push edx
push 0x210
lea eax, [ebp]
push eax
push 0x20
lea ecx, [ebp + 0x2d4]
push ecx
push 0x7c088
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4b17ed
xor ebx, ebx
mov dword [ebp - 0x20], ebx
xor esi, esi
mov edi, edi
movzx edx, byte [ebp + esi + 0x42]
push edx
call fcn.004cd9d5
xor al, 0xc1
mov byte [ebp + esi + 0x2a9], al
movzx eax, byte [ebp + esi + 0x43]
push eax
call fcn.004cd9d5
add esp, 8
xor al, 0xc1
mov byte [ebp + esi + 0x2a8], al
add esi, 2
cmp esi, 0x28
jl 0x4b16f0
cmp esi, ebx
je 0x4b172b
dec esi
mov dword [ebp - 0x20], esi
cmp dword [0x4210e0], ebx
je 0x4b19da
xor eax, eax
mov ecx, 0x4210e0
mov edi, edi
mov edx, dword [eax + 0x4210e4]
push edx
mov eax, dword [ecx]
push eax
mov eax, dword [ebp - 0x20]
lea ecx, [ebp + 0x2a8]
call fcn.004b1090
add esp, 8
test eax, eax
je 0x4b17d1
mov byte [ebp - 0x19], 1
mov edi, dword [ebx*4 + 0x416af0]
mov esi, dword [edi]
test esi, esi
je 0x4b19da
mov eax, dword [edi + 4]
cmp dword [ebp - 0x20], eax
jl 0x4b17bf
lea ecx, [ebp + 0x2a8]
cmp eax, 4
jb 0x4b179b
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x4b17bf
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x4b1787
test eax, eax
je 0x4b17cd
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x4b17bf
cmp eax, 1
jbe 0x4b17cd
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x4b17bf
cmp eax, 2
jbe 0x4b17cd
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
je 0x4b17cd
add edi, 8
mov esi, dword [edi]
test esi, esi
jne 0x4b1774
jmp 0x4b19da
mov byte [ebp - 0x19], 0
inc ebx
lea eax, [ebx*8]
lea ecx, [eax + 0x4210e0]
cmp dword [ecx], 0
jne 0x4b1740
jmp 0x4b19da
cmp esi, 0xffffffff
jne 0x4b1815
push 0
push 0
push 3
push 0
push 3
push 0
lea edx, [ebp + 0x2f4]
push edx
call edi
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x4b19ea
mov esi, eax
push 0x96
push 0
lea eax, [ebp + 0x210]
push eax
call fcn.004caf20
add esp, 0xc
push 0
lea ecx, [ebp - 0x24]
push ecx
push 0x96
lea edx, [ebp + 0x210]
push edx
push 0x96
mov eax, edx
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4b19da
cmp dword [ebp + 0x210], 0x28
jne 0x4b19da
mov ebx, 0x4186a1
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], 0
mov eax, dword [ebp + 0x21c]
test eax, eax
je 0x4b18b1
lea edi, [ebp + eax + 0x210]
mov dword [ebp - 0x3c], edi
xor esi, esi
cmp byte [edi], 0
je 0x4b18a9
movsx ecx, byte [edi + esi]
push ecx
call fcn.004cd9d5
add esp, 4
xor al, 0xc1
mov byte [edi + esi], al
inc esi
cmp byte [edi + esi], 0
jne 0x4b1890
test esi, esi
je 0x4b18b1
dec esi
mov dword [ebp - 0x38], esi
xor edi, edi
mov dword [ebp - 0x20], edi
mov eax, dword [ebp + 0x220]
cmp eax, edi
je 0x4b18f1
lea ebx, [ebp + eax + 0x210]
xor esi, esi
cmp byte [ebx], 0
je 0x4b18e9
mov edi, edi
movsx edx, byte [ebx + esi]
push edx
call fcn.004cd9d5
add esp, 4
xor al, 0xc1
mov byte [ebx + esi], al
inc esi
cmp byte [ebx + esi], 0
jne 0x4b18d0
cmp esi, edi
je 0x4b18f1
dec esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x34], edi
cmp dword [0x4210e0], edi
je 0x4b19da
xor esi, esi
mov edi, 0x4210e0
mov eax, dword [esi + 0x4210e4]
push eax
mov ecx, dword [edi]
push ecx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
call fcn.004b1090
add esp, 8
test eax, eax
jne 0x4b19d6
mov edx, dword [esi + 0x4210e4]
push edx
mov eax, dword [edi]
push eax
mov eax, dword [ebp - 0x20]
mov ecx, ebx
call fcn.004b1090
add esp, 8
test eax, eax
je 0x4b19b7
mov byte [ebp - 0x19], 1
mov ecx, dword [ebp - 0x34]
mov edi, dword [ecx*4 + 0x416af0]
mov esi, dword [edi]
test esi, esi
je 0x4b19da
lea ebx, [ebx]
mov eax, dword [edi + 4]
cmp dword [ebp - 0x20], eax
jl 0x4b19a8
mov ecx, ebx
cmp eax, 4
jb 0x4b1984
nop
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x4b19a8
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x4b1970
test eax, eax
je 0x4b19b3
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x4b19a8
cmp eax, 1
jbe 0x4b19b3
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x4b19a8
cmp eax, 2
jbe 0x4b19b3
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
je 0x4b19b3
add edi, 8
mov esi, dword [edi]
test esi, esi
jne 0x4b1960
jmp 0x4b19da
mov byte [ebp - 0x19], 0
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
lea esi, [eax*8]
lea edi, [esi + 0x4210e0]
cmp dword [edi], 0
jne 0x4b1907
jmp 0x4b19da
mov byte [ebp - 0x19], 1
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x19], 0
jne 0x4b19fd
mov eax, dword [ebp - 0x2c]
shr eax, 1
mov dword [ebp - 0x2c], eax
inc dword [ebp - 0x30]
test eax, eax
jne 0x4b15a0
push 0x29
push 0
lea edx, [ebp + 0x2a8]
push edx
call fcn.004caf20
xor eax, eax
mov dword [ebp + 0x2f4], eax
mov dword [ebp + 0x2f8], eax
mov word [ebp + 0x2fc], ax
push 0x210
push eax
lea eax, [ebp]
push eax
call fcn.004caf20
add esp, 0x18
cmp byte [ebp - 0x19], 0
jne 0x4b1a64
cmp byte [ebp + 0x30c], 0
je 0x4b1a5e
mov dword [ebp - 4], 0
int 8
jmp 0x4b1a57
mov dword [ebp - 4], 0xfffffffe
cmp byte [ebp - 0x19], 0
je 0x4b1a73
call fcn.0042b470
mov dword [eax], 6
mov al, 1
jmp 0x4b1a75
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x300]
xor ecx, ebp
call fcn.004cb3aa
add ebp, 0x304
mov esp, ebp
pop ebp
ret