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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x854a9b
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x8943b8]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
mov eax, dword [0x8943b8]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
mov esi, ecx
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41bbb9
xor al, al
jmp 0x41bda1
mov eax, dword [0x8a006c]
cmp eax, ebx
jne 0x41bbc8
mov dword [esp + 0x1c], ebx
jmp 0x41bbe7
mov ecx, dword [0x8a0070]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x1c], eax
mov eax, esi
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41bc00
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x38]
call fcn.00402200
lea eax, [esp + 0x30]
push eax
mov esi, 0x8a0068
mov dword [esp + 0x16c], ebx
call fcn.0041c350
mov dword [esp + 0x168], 0xffffffff
cmp dword [esp + 0x48], 0x10
jb 0x41bc4b
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0081f6fa
add esp, 4
mov eax, dword [0x8a006c]
cmp eax, ebx
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], 0
jne 0x41bc69
xor eax, eax
jmp 0x41bc84
mov ecx, dword [0x8a0070]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea edx, [esp + 0x24]
push edx
mov dword [0x8a0084], eax
push 2
lea eax, [esp + 0x20]
push eax
push edi
call esi
push ebx
lea ecx, [esp + 0x24]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push edi
call esi
mov eax, dword [esp + 0x18]
push eax
call fcn.007fb991
mov edx, dword [esp + 0x1c]
add esp, 4
push 0
lea ecx, [esp + 0x24]
push ecx
push edx
mov ebx, eax
push ebx
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x18]
lea eax, [edi + 6]
push eax
call fcn.00409890
add esp, 4
xor esi, esi
test edi, edi
jbe 0x41bd03
jmp 0x41bcf0
call fcn.004098d0
xor byte [esi + ebx], al
mov edi, dword [esp + 0x18]
add esi, 1
cmp esi, edi
jb 0x41bcf0
xor eax, eax
test edi, edi
mov cl, 0xc5
mov byte [esp + 0x13], 0x83
jbe 0x41bd25
xor byte [eax + ebx], cl
add cl, byte [esp + 0x13]
add byte [esp + 0x13], 0x53
add eax, 1
cmp eax, dword [esp + 0x18]
jb 0x41bd10
cmp word [esp + 0x14], 0
mov esi, ebx
mov dword [esp + 0x24], 0
jbe 0x41bd96
mov ecx, dword [esi]
mov edx, dword [esi + 4]
add esi, 4
mov al, byte [esi + 4]
add esi, 4
movzx edi, al
push edi
add esi, 1
lea eax, [esp + 0x50]
push esi
push eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
call fcn.00820850
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
add esp, 0xc
push ecx
push edx
push eax
lea ecx, [esp + 0x58]
push ecx
mov byte [esp + edi + 0x5c], 0
add esi, edi
call fcn.0041bdd0
mov eax, dword [esp + 0x24]
movzx edx, word [esp + 0x14]
add eax, 1
cmp eax, edx
mov dword [esp + 0x24], eax
jb 0x41bd37
push ebx
call fcn.00820846
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.0081fb35
mov esp, ebp
pop ebp
ret