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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0x1c]
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrChrW]
push edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
push 0x7c
pop edi
xor ebx, ebx
cmp word [eax + 2], bx
push edi
push dword [ebp + 0x10]
setne al
mov byte [ebp - 0x2c], al
call esi
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x41b897
push dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
call fcn.00434695
lea eax, [ebp - 0x10]
push eax
call fcn.00431953
test al, al
pop ecx
jle 0x41b88c
push 0x2b
pop edi
push edi
push dword [ebp + 0x10]
call esi
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x10]
call fcn.0042602e
mov eax, dword [ebp - 0xc]
or dword [ebp - 0x3c], 0xffffffff
or dword [ebp - 0x38], 0xffffffff
cmp eax, ebx
mov esi, eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
je 0x41b8fc
mov word [eax], bx
add dword [ebp - 0xc], 2
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.0042f2aa
mov eax, dword [ebp - 0x24]
cdq
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
pop ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
cmp di, word [eax]
pop ecx
mov dword [ebp - 0x30], edx
jne 0x41b8f2
add dword [ebp - 0xc], 2
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042f2aa
pop ecx
pop ecx
mov eax, dword [ebp - 0x24]
cdq
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
call fcn.00434695
cmp esi, ebx
je 0x41b910
mov word [esi], 0x2b
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x28], ebx
call fcn.00431816
mov byte [ebp - 0x1c], al
mov eax, dword [ebp + 0x1c]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x18]
sar eax, 0x10
mov dword [ebp - 0x10], eax
push ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
call fcn.00402aa0
push ebx
push ebx
push 3
push ebx
push 7
push 0x80000000
push dword [ebp - 0x14]
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.00403b3c
cmp dword [ebp - 8], ebx
je 0x41bc31
cmp byte [ebp - 0x1c], bl
je 0x41b97a
push dword [ebp - 0x1c]
push dword [ebp - 8]
call fcn.00429288
pop ecx
jmp 0x41b982
push dword [ebp - 8]
call fcn.0040a163
cmp edx, ebx
pop ecx
mov esi, eax
jl 0x41bc31
jg 0x41b997
cmp esi, ebx
jbe 0x41bc31
cmp edx, dword [ebp - 0x30]
jl 0x41bc31
jg 0x41b9ab
cmp esi, dword [ebp - 0x34]
jb 0x41bc31
cmp dword [ebp - 0x30], ebx
jl 0x41b9bd
jg 0x41b9b7
cmp dword [ebp - 0x34], ebx
jbe 0x41b9bd
sub esi, dword [ebp - 0x34]
sbb edx, dword [ebp - 0x30]
cmp edx, ebx
jl 0x41b9d0
mov eax, 0x10000000
jg 0x41b9cc
cmp esi, eax
jbe 0x41b9d0
mov esi, eax
xor edx, edx
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jl 0x41b9ef
jg 0x41b9de
cmp dword [ebp - 0x3c], ebx
jbe 0x41b9ef
cmp edx, eax
jl 0x41b9ef
jg 0x41b9e9
cmp esi, dword [ebp - 0x3c]
jbe 0x41b9ef
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x38], eax
lea edi, [esi + 0x10]
push edi
lea ecx, [ebp - 0x4c]
call fcn.0042adfe
mov eax, dword [ebp - 0x4c]
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x41bc31
cmp dword [ebp - 0x30], ebx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], edi
jl 0x41ba2c
jg 0x41ba1b
cmp dword [ebp - 0x34], ebx
jbe 0x41ba2c
push ebx
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push ebx
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [ebp - 0x1c]
cmp esi, ebx
jge 0x41ba4a
xor esi, esi
mov eax, dword [ebp - 0x20]
push 0x10
add eax, esi
push ebx
push eax
call fcn.00466780
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.004029f8
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
call fcn.0042af26
mov ecx, dword [ebp + 0x14]
push 0x47bedc
call fcn.0042af26
push ebx
push esi
push dword [ebp - 0x4c]
call fcn.004285d7
add esp, 0xc
mov byte [ebp - 1], al
cmp al, bl
mov eax, dword [ebp - 0x4c]
je 0x41badb
mov dword [ebp - 0x40], eax
movzx eax, word [ebp - 0x10]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], esi
call fcn.0042e2cf
push dword [ebp - 0x40]
call fcn.00425fea
movsx esi, byte [ebp - 1]
or esi, dword [ebp + 0x1c]
add esp, 0x10
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], esi
call fcn.0042602e
jmp 0x41baed
dec esi
cmp esi, ebx
jl 0x41baea
inc esi
mov cl, byte [ebp - 0x10]
xor byte [eax], cl
inc eax
dec esi
jne 0x41bae1
mov esi, dword [ebp + 0x1c]
or esi, 3
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.00433b9f
push dword [ebp - 0x10]
push dword [ebp - 0x4c]
call fcn.0040c2fb
mov edi, dword [ebp + 0x18]
mov esi, eax
mov ax, word [edi + 0x44]
mov word [ebp - 0x1c], ax
add esp, 0x10
lea eax, [esi + esi + 0x22]
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], esi
call fcn.00409a1d
mov eax, dword [ebp - 0x4c]
lea eax, [eax + esi*2]
push 0xf
mov word [eax + 0x20], bx
pop ecx
mov dx, word [ebp - 0x10]
mov word [eax + ecx*2], dx
dec ecx
jns 0x41bb35
mov eax, dword [ebp - 0x4c]
push dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
call fcn.00413b5c
mov edi, dword [ebp - 0x20]
pop ecx
mov ecx, dword [ebp - 0x1c]
cmp word [edi], cx
jne 0x41bb61
xor esi, esi
jmp 0x41bc3c
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, ebx
je 0x41bb78
push ecx
push eax
call fcn.0040c2fb
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
jmp 0x41bb7b
mov dword [ebp - 0x10], ebx
mov ax, word [edi + esi*2 - 2]
mov ecx, dword [ebp + 0x18]
cmp ax, word [ecx + 0x4c]
mov dword [ebp + 0x1c], ebx
je 0x41bb93
mov dword [ebp + 0x1c], 1
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x10]
add eax, esi
add eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], eax
add eax, 0x10
push eax
call fcn.00409a35
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
cmp edi, eax
jle 0x41bbb8
mov edi, eax
cmp eax, edi
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
lea ecx, [ecx + edi*2]
mov dword [ebp - 0x2c], ecx
jle 0x41bbe1
sub eax, edi
shl eax, 1
push eax
mov eax, dword [ebp + 0x1c]
add eax, esi
push ecx
lea eax, [ecx + eax*2]
push eax
call fcn.00466d00
mov ecx, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [ebp + 0x1c], ebx
je 0x41bbf1
mov eax, dword [ebp + 0x18]
mov ax, word [eax + 0x4c]
mov word [ecx + esi*2], ax
push esi
push dword [ebp - 0x20]
push ecx
call fcn.00403ac3
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov cx, word [ebp - 0x1c]
mov edx, dword [ebp - 8]
mov word [eax + edx*2], cx
push dword [ebp - 0x4c]
call fcn.00425fea
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0x18]
push dword [ebp + 0x14]
add esi, edi
push esi
push edi
push ebx
call fcn.0041b590
movzx esi, ax
add esp, 0x24
or esi, dword [ebp - 0x18]
jmp 0x41bc3c
lea ecx, [ebp - 8]
call fcn.004029f8
mov esi, dword [ebp + 0x1c]
lea ecx, [ebp - 0x4c]
call fcn.0042602e
lea ecx, [ebp - 0x14]
call fcn.0042602e
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret