Function at 0x5be0a0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x875de0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x8ce6f4]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 8], 0xffffffff
jne 0x5be0e1
xor al, al
jmp 0x5be311
xor ebp, ebp
xor eax, eax
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0xa
jl 0x5be0e5
mov dword [esp + 0x14], ebp
push 0x24
mov dword [esp + 0x48], ebp
call fcn.007c8558
mov esi, eax
lea eax, [esi + 0x18]
lea ecx, [esp + 0x1c]
add esp, 4
mov dword [esi], 0x24
cmp eax, ecx
jne 0x5be135
lea ecx, [esp + 0x21]
mov edx, ecx
cmp eax, edx
jae 0x5be184
mov edi, edi
movzx edx, byte [ecx]
xor byte [eax], dl
mov dl, byte [eax]
xor byte [ecx], dl
mov dl, byte [ecx]
xor byte [eax], dl
inc eax
dec ecx
cmp eax, ecx
jb 0x5be120
jmp 0x5be184
movzx ecx, byte [esp + 0x21]
mov byte [eax], cl
movzx edx, byte [esp + 0x20]
mov byte [eax + 1], dl
movzx ecx, byte [esp + 0x1f]
mov byte [eax + 2], cl
movzx edx, byte [esp + 0x1e]
mov byte [eax + 3], dl
movzx ecx, byte [esp + 0x1d]
mov byte [eax + 4], cl
movzx edx, byte [esp + 0x1c]
mov byte [eax + 5], dl
movzx ecx, byte [esp + 0x1b]
mov byte [eax + 6], cl
movzx edx, byte [esp + 0x1a]
mov byte [eax + 7], dl
movzx ecx, byte [esp + 0x19]
mov byte [eax + 8], cl
movzx edx, byte [esp + 0x18]
mov byte [eax + 9], dl
mov eax, dword [edi + 8]
push ebp
mov dword [esi + 4], eax
lea ecx, [esp + 0x34]
push ecx
push ebp
mov dword [esi + 8], 1
push ebp
mov dword [esi + 0xc], ebp
mov edx, dword [esi]
mov eax, dword [edi + 4]
push edx
push esi
push 0x335008
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
push esi
setne bl
mov dword [esp + 0x48], 0xffffffff
call fcn.007c8563
add esp, 4
test bl, bl
je 0x5be0da
push ebp
lea ecx, [esp + 0x28]
push ecx
push 2
mov ecx, edi
call fcn.005bdae0
test al, al
je 0x5be0da
or ebp, 0xffffffff
lea esi, [ebp + 0x20]
lea ebx, [ebx]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.005c1350
mov ecx, dword [esp + 0x3c]
add esp, 0xc
cmp ecx, dword [esp + 0x24]
jne 0x5be219
mov dl, byte [esp + 0x28]
cmp dl, byte [esp + 0x34]
jne 0x5be219
mov ebp, esi
dec esi
jns 0x5be1f0
xor ebx, ebx
push ebx
lea eax, [esp + 0x1c]
push eax
push 1
mov ecx, edi
call fcn.005bdae0
test al, al
je 0x5be0da
lea ecx, [esp + 0x29]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebp
call fcn.005c1420
mov dword [esp + 0x3c], ebx
push 0x20
mov dword [esp + 0x54], 1
call fcn.007c8558
mov esi, eax
lea eax, [esi + 0x18]
lea ecx, [esp + 0x39]
add esp, 0x10
mov dword [esi], 0x20
cmp eax, ecx
jne 0x5be28d
lea ecx, [esp + 0x2d]
mov edx, ecx
cmp eax, edx
jae 0x5be2b4
movzx edx, byte [ecx]
xor byte [eax], dl
mov dl, byte [eax]
xor byte [ecx], dl
mov dl, byte [ecx]
xor byte [eax], dl
inc eax
dec ecx
cmp eax, ecx
jb 0x5be278
jmp 0x5be2b4
movzx ecx, byte [esp + 0x2d]
mov byte [eax], cl
movzx edx, byte [esp + 0x2c]
mov byte [eax + 1], dl
movzx ecx, byte [esp + 0x2b]
mov byte [eax + 2], cl
movzx edx, byte [esp + 0x2a]
mov byte [eax + 3], dl
movzx ecx, byte [esp + 0x29]
mov byte [eax + 4], cl
mov edx, dword [edi + 8]
push ebx
mov dword [esi + 4], edx
lea eax, [esp + 0x18]
push eax
push ebx
mov dword [esi + 8], 3
push ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [esi]
mov edx, dword [edi + 4]
push ecx
push esi
push 0x335008
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
push esi
setne bl
mov dword [esp + 0x48], 0xffffffff
call fcn.007c8563
add esp, 4
test bl, bl
je 0x5be0da
add edi, 0xc
push edi
lea eax, [esp + 0x28]
push eax
push ebp
call fcn.005c1500
add esp, 0xc
mov al, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0080262b
add esp, 0x34
ret