Function at 0x1000c830
Capabilities:
Encode data using xor
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1009c260
push eax
mov dword fs:[0], esp
sub esp, 0x258
push ebx
push esi
mov esi, 0x100c345c
push edi
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x1000c860
sub esi, ecx
call fcn.1000c780
mov edi, eax
lea eax, [edi + 1]
mov cl, byte [edi]
inc edi
test cl, cl
jne 0x1000c873
sub edi, eax
lea eax, [ebp - 0x30]
push eax
call fcn.1000c590
add esp, 4
mov ecx, dword [eax + 0x10]
lea eax, [esi + edi]
add ecx, 0x12
add eax, ecx
movzx esi, ax
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jb 0x1000c8dc
mov ecx, dword [ebp - 0x30]
inc eax
cmp eax, 0x1000
jb 0x1000c8d3
test cl, 0x1f
jne 0x1000c981
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x1000c981
sub ecx, eax
cmp ecx, 4
jb 0x1000c981
cmp ecx, 0x23
ja 0x1000c981
mov ecx, eax
push ecx
call fcn.1002d102
add esp, 4
movsx eax, si
push eax
mov dword [ebp - 0x3c], eax
call fcn.1006f4f0
push 0
mov edi, eax
push esi
push edi
call fcn.100019c0
push 2
push 0x2747
push edi
call fcn.100019c0
lea eax, [ebp - 0x54]
push eax
call fcn.1000c590
add esp, 0x20
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov dword [ebp - 4], 0
jb 0x1000c91d
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c934
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.100029e0
mov byte [ebp - 4], 1
call fcn.1006dc74
cmp dword [ebp - 0x1c], 0x10
lea esi, [ebp - 0x30]
mov ebx, eax
lea eax, [ebp - 0x18]
cmovae esi, dword [ebp - 0x30]
push 0xa
push eax
push esi
mov dword [ebx], 0
call fcn.10071181
add esp, 0xc
cmp esi, dword [ebp - 0x18]
jne 0x1000c986
push str.invalid_stoi_argument
call fcn.1001057d
call fcn.1006d514
cmp dword [ebx], 0x22
je 0x1000cb2c
push 4
push eax
push edi
call fcn.100019c0
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x1000c9d5
mov ecx, dword [ebp - 0x30]
inc eax
cmp eax, 0x1000
jb 0x1000c9cc
test cl, 0x1f
jne 0x1000c981
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x1000c981
sub ecx, eax
cmp ecx, 4
jb 0x1000c981
cmp ecx, 0x23
ja 0x1000c981
mov ecx, eax
push ecx
call fcn.1002d102
add esp, 4
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x1000ca34
mov ecx, dword [ebp - 0x54]
inc eax
cmp eax, 0x1000
jb 0x1000ca2b
test cl, 0x1f
jne 0x1000c981
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x1000c981
sub ecx, eax
cmp ecx, 4
jb 0x1000c981
cmp ecx, 0x23
ja 0x1000c981
mov ecx, eax
push ecx
call fcn.1002d102
add esp, 4
mov dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x11], 0xf6812
mov byte [ebp - 0xd], 1
lea eax, [ecx + 0x51]
xor byte [ebp + ecx - 0x11], al
inc ecx
cmp ecx, 3
jb 0x1000ca56
push 0x105
lea eax, [ebp - 0x15c]
mov byte [ebp - 0xd], 0
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x105
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x11]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
neg eax
push 6
sbb eax, eax
and eax, dword [ebp - 0x18]
push 0
push eax
push edi
call fcn.10001950
mov ecx, 0x100c345c
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000cab2
push 0xe
sub ecx, edx
push ecx
push 0x100c345c
push edi
call fcn.10001990
add esp, 0x10
call fcn.1000c780
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000cad4
sub eax, edx
push 0x1a
push eax
push edi
call fcn.10001910
add esp, 0xc
call fcn.1000c780
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000caf1
sub eax, edx
push 0x1c
push eax
call fcn.1000c780
push eax
push edi
call fcn.10001990
push dword [ebp - 0x3c]
push edi
call fcn.10001ed0
push edi
call fcn.1006dd1e
mov ecx, dword [ebp - 0xc]
add esp, 0x1c
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.stoi_argument_out_of_range
call fcn.100105bd
int3