Function at 0x4bac52
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push 0x50
mov eax, 0x50b59c
call fcn.004fb730
mov esi, ecx
mov dword [ebp - 0x44], esi
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x5c], esi
call fcn.004ba5ea
mov byte [ebp - 0x58], al
and dword [ebp - 4], 0
test al, al
je 0x4baf02
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.004ba613
mov dword [ebp - 0x3c], eax
cmp eax, 0xffffffff
je 0x4baf02
xor edx, edx
mov ecx, ebx
mov dword [edi], edx
cmp dword [ebx + 0x14], 0x10
jb 0x4bacb1
mov ecx, dword [ebx]
mov dword [ebx + 0x10], edx
mov byte [ecx], dl
lea ecx, [ebx + 0x18]
cmp dword [ecx + 0x14], 0x10
mov edx, ecx
mov dword [ebp - 0x4c], ecx
jb 0x4bacc6
mov edx, dword [ecx]
xor ebx, ebx
push ebx
push ebx
mov dword [ecx + 0x10], ebx
mov byte [edx], bl
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [ebp - 0x1c]
jne 0x4bae0d
push ebx
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], ebx
push eax
push 4
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4bae0d
cmp dword [ebp - 0x38], ebx
jne 0x4bad0d
mov bl, 1
jmp 0x4bae1b
cmp dword [ebp - 0x38], 4
jne 0x4bae0d
mov edi, dword [ebp - 0x34]
lea eax, [edi - 4]
cmp eax, 0xf423c
ja 0x4bae0d
mov dword [ebp - 0x30], ebx
mov esi, 0x1000
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x4bad93
cmp edi, 0x7fffffff
ja 0x4baf21
cmp edi, esi
jb 0x4bad56
mov ecx, edi
call fcn.004abfea
jmp 0x4bad5d
push edi
call fcn.00478358
pop ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
add eax, edi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x30]
push edi
push 0
push eax
lea esi, [edi + eax]
call fcn.004d37c0
add esp, 0xc
mov dword [ebp - 0x2c], esi
and dword [ebp - 0x40], 0
mov byte [ebp - 4], 0
mov esi, 0x1000
mov byte [ebp - 4], 2
lea edx, [ebp - 0x38]
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
push 0
push edx
mov dword [edi], eax
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
add ecx, 0xfffffffc
push ecx
add eax, 4
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4badd0
mov ecx, dword [ebp - 0x34]
lea eax, [ecx - 4]
cmp dword [ebp - 0x38], eax
jne 0x4badd0
cmp dword [edi + 4], ecx
jbe 0x4bae29
xor ebx, ebx
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x4bae0d
mov edx, dword [ebp - 0x28]
sub edx, ecx
cmp edx, esi
mov eax, ecx
jb 0x4badfb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4baf26
push edx
push ecx
call fcn.0047834a
pop ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
pop ecx
mov ecx, dword [ebp - 0x3c]
lea edx, [ebp - 0x24]
call fcn.004baf2c
mov esi, dword [ebp - 0x44]
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4baf04
push 0x17
pop esi
cmp dword [edi + 4], esi
je 0x4bae4a
xor ebx, ebx
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x4bae0d
mov edx, dword [ebp - 0x28]
sub edx, ecx
cmp edx, 0x1000
jmp 0x4bade3
cmp ecx, esi
jbe 0x4bae60
mov edx, dword [ebp - 0x30]
mov cl, byte [edi + 0x10]
xor byte [edx + esi], cl
inc esi
cmp esi, dword [ebp - 0x34]
jb 0x4bae4e
mov esi, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [ebp - 0x30]
sub ecx, esi
or dword [ebp - 0x40], 0xffffffff
add eax, esi
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.004bb530
mov eax, dword [ebp - 0x40]
not eax
cmp eax, dword [edi + 8]
jne 0x4bae31
movzx edx, word [edi + 0x11]
mov eax, dword [edi + 4]
add eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x48]
push edx
push eax
call fcn.004592f7
movzx eax, word [edi + 0x11]
add eax, dword [edi + 4]
push dword [edi + 0x13]
add eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x4c]
push eax
call fcn.004592f7
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
mov dword [eax], ebx
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x1c]
mov dword [ecx], eax
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x4bae18
mov ecx, dword [ebp - 0x28]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x4baee9
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4baf26
push ecx
push edx
call fcn.0047834a
xor eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
jmp 0x4bae18
xor bl, bl
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x58], 0
je 0x4baf17
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, bl
call fcn.004fb6da
ret 0xc
call fcn.00455a90
call fcn.004d7bfa
int3