Function at 0x100185b0
Capabilities:
Create pipe
Encode data using xor
Get disk information

Disassembly:
sub esp, 0x18
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ebx
mov ebx, dword [esp + 0x20]
lea eax, [ecx + 0x334]
xor ecx, 0x1451
push ebp
mov dword [esp + 0xc], eax
mov ebp, edx
mov eax, dword [esp + 0x34]
xor edx, 0xdea
push esi
push edi
lea esi, [ebx - 0x1336]
mov dword [esp + 0x30], edx
lea edi, [eax - 0x52a]
mov dword [esp + 0x34], esi
xor eax, 0x3e9d
mov dword [esp + 0x10], edi
mov dword [esp + 0x3c], eax
xor ebp, 0x295e
lea eax, [esi + 0x2676]
cmp edi, eax
je 0x10018703
mov edi, dword [esp + 0x14]
xor ebp, 0x1624
mov eax, edi
xor eax, 0x3d4
push eax
lea eax, [ecx + 0x1ca9]
push eax
lea eax, [ebx + 0x1340]
push eax
push ebp
mov eax, ecx
xor eax, 0x1f4e
push 0x100a3a48
push eax
lea eax, [ecx + 0x1f4e]
push eax
call fcn.1001acc0
mov esi, dword [esp + 0x54]
mov edx, eax
add esp, 0x1c
mov eax, dword [esi + 0x8c]
cmp eax, dword [esi + 0xcc]
jb 0x10018676
mov ecx, dword [0x1008a74c]
mov eax, dword [esi + 0x40]
add eax, 0xfeb8e
xor dword [ecx + 0x74], eax
mov ecx, dword [esp + 0x34]
lea eax, [edx - 0xc18]
add ecx, 0x2676
add edi, 0xfffffe3f
xor ecx, 0x39af
push esi
push eax
lea eax, [ecx - 0x9b5]
push eax
mov eax, ecx
xor eax, 0x97
push eax
push edi
push ecx
call fcn.10009ba0
mov ebx, eax
xor edi, 0x6f2
lea eax, [ebx + 0x1d3]
push eax
mov eax, dword [esp + 0x2c]
add eax, 0x812
push edi
push eax
lea eax, [ebx + 0x1063]
push eax
mov eax, dword [esp + 0x64]
add eax, 0x3be
push esi
push eax
call fcn.10008670
mov eax, dword [esi + 0xe8]
add esp, 0x30
add eax, 0x42712e10
xor dword [esi + 0x34], eax
mov eax, dword [esi + 0x2c]
pop edi
xor eax, 0xbf36c
pop esi
mov dword [0x100a3ae0], eax
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
mov esi, dword [esp + 0x38]
mov eax, ebp
mov dword [esp + 0x14], ebx
sub eax, dword [esi + 0xd4]
imul eax, eax, 0x1451
cmp ebx, eax
jbe 0x1001892d
lea eax, [edx + 0x1ca9]
mov dword [esp + 0x18], eax
imul eax, edi, 0x1b81
xor eax, 0x1624
mov dword [esp + 0x1c], eax
mov eax, edi
or eax, 0x1336
mov dword [esp + 0x20], eax
mov eax, edi
imul eax, ebp
imul eax, eax, 0x2676
mov dword [esp + 0x24], eax
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [0x1008a74c]
mov ecx, dword [esi + 0xf4]
or ecx, ebx
sub ebx, dword [esp + 0x3c]
mov edx, dword [eax + 0x6c]
mov eax, dword [esi + 0x60]
add eax, dword [0x100a3ae8]
add edx, dword [esi + 0x2c]
add eax, ebp
or edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x38]
add eax, 0x1f4e
imul eax, dword [esp + 0x34]
push ecx
push eax
push 0x100a3a48
push edx
push ebx
call fcn.10018070
mov ecx, dword [esi + 0x6c]
mov ebx, eax
mov eax, dword [0x1008a74c]
xor ecx, ebx
mov edx, dword [eax + 0x80]
mov eax, dword [esi + 0x40]
or edx, edi
add eax, 0x1451
xor edx, 0x1b81
push eax
push dword [esp + 0x34]
mov eax, dword [esp + 0x54]
and eax, edi
sub eax, dword [esp + 0x50]
push eax
push ecx
push 0x100a3a48
push edx
call fcn.10008670
mov edi, eax
add esp, 0x30
imul eax, dword [esi + 0xc8], 0x1d8b
xor eax, edi
push eax
mov eax, dword [esp + 0x40]
xor eax, dword [esp + 0x30]
xor eax, 0x18eb
push eax
push dword [esp + 0x24]
mov eax, dword [esi + 0x5c]
sub eax, dword [esp + 0x48]
push eax
mov eax, dword [esi + 0xb0]
add eax, dword [esi + 0xdc]
xor eax, dword [esi + 0x70]
push eax
mov eax, dword [esi + 0xe8]
sub eax, dword [esp + 0x44]
add eax, 0x1f4e
push eax
mov eax, ebx
xor eax, 0x190b
or eax, 0x24b4
push eax
mov eax, dword [esi + 0xb8]
imul eax, dword [esi + 0x2c]
or eax, dword [esi + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea eax, [ebx - 0x9b5]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov esi, dword [0x100a3a6c]
imul esi, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
mov edx, dword [eax + 0x80]
add edx, dword [eax + 0xd8]
imul esi, edi
imul esi, dword [eax + 0x4c]
mov dword [eax + 0x4c], esi
xor edx, dword [0x100a3a58]
mov eax, dword [0x1008a74c]
or esi, ebx
push esi
mov esi, dword [esp + 0x3c]
mov ecx, dword [eax + 0x80]
mov eax, dword [eax + 0x94]
imul ecx, dword [esp + 0x24]
sub eax, 0x16bd
xor eax, dword [esp + 0x34]
push eax
push ecx
push esi
push dword [esp + 0x3c]
push edx
call fcn.10018070
mov edx, dword [esi + 0x4c]
sub edx, dword [0x100a3b2c]
mov dword [esp + 0x4c], eax
mov eax, dword [0x1008a74c]
push esi
push dword [esp + 0x40]
mov ecx, dword [eax + 0x2c]
mov eax, dword [esi + 0x88]
imul ecx, ebp
xor eax, ebx
push eax
push ecx
push edx
call fcn.1001a1f0
mov ecx, dword [esi + 0xc]
mov ebx, eax
mov eax, dword [esp + 0x40]
add esp, 0x2c
mov edi, dword [esp + 0x10]
add eax, 3
imul ecx, ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], eax
xor ecx, dword [esi + 0x94]
imul ecx, dword [esi + 0xdc]
mov dword [esi + 0xdc], ecx
mov ecx, ebp
sub ecx, dword [esi + 0xd4]
imul ecx, ecx, 0x1451
cmp eax, ecx
ja 0x10018760
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x18
ret