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

Disassembly:
mov eax, 0x4607a4
call fcn.004367f8
sub esp, 0x40
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
push 0xffffffffffffffff
push dword [esi]
mov dword [ebp - 0x28], esi
mov byte [ebp - 0x11], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 0x14]
call fcn.00401419
lea eax, [ebp - 0x4c]
xor edi, edi
push eax
mov ecx, esi
mov dword [ebp - 0x24], edi
call fcn.00419b44
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x41aa56
push edi
push edi
push dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [ebp - 0x44]
cmp eax, ebx
jne 0x41aa36
mov byte [ebp - 0x12], 1
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp + 8]
jae 0x41aa2c
xor edi, edi
push edi
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x12], 1
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41aa36
cmp dword [ebp - 0x20], edi
je 0x41aa32
cmp dword [ebp - 0x20], 4
jne 0x41aa36
cmp dword [ebp - 0x18], 0xf4240
ja 0x41aa36
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
push edi
push dword [ebp - 0x18]
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00410ccf
mov esi, dword [ebp - 0x34]
cmp esi, edi
mov dword [ebp - 4], edi
jne 0x41a958
xor eax, eax
jmp 0x41a95d
mov eax, dword [ebp - 0x30]
sub eax, esi
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
jne 0x41aa0c
cmp ecx, 4
jb 0x41aa0c
push 0
lea eax, [ebp - 0x20]
push eax
mov dword [esi], ecx
mov eax, dword [ebp - 0x18]
add eax, 0xfffffffc
push eax
lea edi, [esi + 4]
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41aa0c
mov ecx, dword [ebp - 0x18]
lea eax, [ecx - 4]
cmp dword [ebp - 0x20], eax
jne 0x41aa0c
mov eax, dword [edi]
cmp eax, ecx
ja 0x41aa0c
jae 0x41a9b0
mov cl, byte [esi + 0x10]
xor byte [esi + eax], cl
inc eax
cmp eax, dword [ebp - 0x18]
jb 0x41a9a4
test esi, esi
jne 0x41a9b8
xor eax, eax
jmp 0x41a9bd
mov eax, dword [ebp - 0x30]
sub eax, esi
lea eax, [eax + esi - 1]
cmp byte [eax], 0
jne 0x41aa20
mov eax, dword [esi + 4]
mov edx, dword [esi]
lea ecx, [esi + eax]
sub edx, eax
call fcn.004198a1
cmp eax, dword [esi + 8]
jne 0x41aa20
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 0x14]
inc dword [ebp - 0x24]
add eax, esi
push eax
mov byte [ebp - 0x12], 0
call fcn.004048f6
mov eax, dword [ebp + 0x10]
add ebx, dword [ebp - 0x18]
test eax, eax
je 0x41a9fb
mov dword [eax], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00410558
jmp 0x41a8dd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00410558
jmp 0x41aa36
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00410558
cmp byte [ebp - 0x12], 0
jne 0x41aa36
mov byte [ebp - 0x11], 1
cmp dword [ebp - 0x1c], 0xffffffff
je 0x41aa56
cmp byte [ebp - 0x11], 0
jne 0x41aa4d
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x4c]
call fcn.00419ae2
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp byte [ebp - 0x11], 0
jne 0x41aa6f
mov ecx, dword [ebp + 0x14]
call fcn.00401419
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41aa82
mov cl, byte [ebp - 0x11]
neg cl
sbb ecx, ecx
and ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10