Function at 0x40e190
Capabilities:
Encrypt data using rc4 ksa
Read file on windows

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
lea ecx, [esi + 4]
call fcn.00411d40
lea eax, [esp + 0xc]
mov dword [esi], 0x42f09c
test eax, eax
jne 0x40e6bd
push ebx
push ebp
xor ebx, ebx
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_LockFile]
xor eax, eax
movsx ecx, ax
mov byte [esp + ecx + 0x1c], al
xor eax, eax
lea ecx, [esp + 0x1c]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x40e1d3
xor eax, eax
lea ecx, [esp + 0x1c]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x40e1e3
inc eax
cmp ax, 0x100
jl 0x40e1c6
xor eax, eax
lea ecx, [esp + 0x1c]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x40e1fa
mov byte [esp + 0x10], bl
mov byte [esp + 0x20], bl
mov ebp, dword [esp + 0x10]
mov byte [esp + 0x21], bl
mov byte [esp + 0x14], bl
jmp 0x40e21c
xor ebx, ebx
xor eax, eax
lea ecx, [esp + 0x1c]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x40e222
xor eax, eax
lea ecx, [esp + 0x1c]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x40e232
xor ecx, ecx
lea eax, [esp + 0x1c]
mov byte [eax], cl
inc ecx
inc eax
cmp cx, 0x100
jl 0x40e242
mov eax, dword [esp + 0x14]
xor ebx, ebx
movsx edx, cx
and eax, 0xff
and ebp, 0xff
lea esi, [esp + edx + 0x1c]
mov bl, byte [eax + 0x384]
mov dl, byte [esi]
mov edi, edx
and edi, 0xff
add ebx, edi
add ebx, ebp
and ebx, 0x800000ff
jns 0x40e289
dec ebx
or ebx, 0xffffff00
inc ebx
mov byte [esp + 0x10], bl
mov ebp, dword [esp + 0x10]
mov edi, ebp
and edi, 0xff
inc eax
mov bl, byte [esp + edi + 0x1c]
lea edi, [esp + edi + 0x1c]
mov byte [esi], bl
mov esi, 0x57
mov byte [edi], dl
cdq
idiv esi
inc ecx
cmp cx, 0x100
mov byte [esp + 0x14], dl
jl 0x40e21a
mov edi, ebp
and edi, 0xff
xor eax, eax
lea ecx, [esp + 0x1c]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x40e2cc
xor eax, eax
lea ecx, [esp + 0x1c]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x40e2dc
xor ecx, ecx
lea eax, [esp + 0x1c]
mov byte [eax], cl
inc ecx
inc eax
cmp cx, 0x100
jl 0x40e2ec
movsx eax, cx
mov dl, byte [esp + eax + 0x1c]
xor ebx, ebx
lea esi, [esp + eax + 0x1c]
mov eax, dword [esp + 0x14]
and eax, 0xff
mov ebp, edx
and ebp, 0xff
mov bl, byte [eax + 0x384]
add edi, ebx
add ebp, edi
mov ebx, ebp
and ebx, 0x800000ff
jns 0x40e331
dec ebx
or ebx, 0xffffff00
inc ebx
mov byte [esp + 0x10], bl
mov edi, dword [esp + 0x10]
and edi, 0xff
inc eax
mov bl, byte [esp + edi + 0x1c]
mov byte [esi], bl
mov byte [esp + edi + 0x1c], dl
cdq
mov esi, 0x57
idiv esi
inc ecx
cmp cx, 0x100
mov byte [esp + 0x14], dl
jl 0x40e2c6
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
movsx ecx, ax
mov byte [esp + ecx + 0x1c], al
xor eax, eax
lea ecx, [esp + 0x1c]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x40e37e
xor eax, eax
lea ecx, [esp + 0x1c]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x40e38e
inc eax
cmp ax, 0x100
jl 0x40e371
xor eax, eax
lea ecx, [esp + 0x1c]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x40e3a5
mov byte [esp + 0x10], bl
mov byte [esp + 0x20], bl
mov ebp, dword [esp + 0x10]
mov byte [esp + 0x21], bl
mov byte [esp + 0x14], bl
jmp 0x40e3c7
xor ebx, ebx
xor eax, eax
lea ecx, [esp + 0x1c]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x40e3cd
xor eax, eax
lea ecx, [esp + 0x1c]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x40e3dd
xor ecx, ecx
lea eax, [esp + 0x1c]
mov byte [eax], cl
inc ecx
inc eax
cmp cx, 0x100
jl 0x40e3ed
mov eax, dword [esp + 0x14]
xor ebx, ebx
movsx edx, cx
and eax, 0xff
and ebp, 0xff
lea esi, [esp + edx + 0x1c]
mov bl, byte [eax + 0x384]
mov dl, byte [esi]
mov edi, edx
and edi, 0xff
add ebx, edi
add ebx, ebp
and ebx, 0x800000ff
jns 0x40e434
dec ebx
or ebx, 0xffffff00
inc ebx
mov byte [esp + 0x10], bl
mov ebp, dword [esp + 0x10]
mov edi, ebp
and edi, 0xff
inc eax
mov bl, byte [esp + edi + 0x1c]
lea edi, [esp + edi + 0x1c]
mov byte [esi], bl
mov esi, 0x57
mov byte [edi], dl
cdq
idiv esi
inc ecx
cmp cx, 0x100
mov byte [esp + 0x14], dl
jl 0x40e3c5
mov edi, ebp
and edi, 0xff
xor eax, eax
lea ecx, [esp + 0x1c]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x40e477
xor eax, eax
lea ecx, [esp + 0x1c]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x40e487
xor ecx, ecx
lea eax, [esp + 0x1c]
mov byte [eax], cl
inc ecx
inc eax
cmp cx, 0x100
jl 0x40e497
movsx eax, cx
mov dl, byte [esp + eax + 0x1c]
xor ebx, ebx
lea esi, [esp + eax + 0x1c]
mov eax, dword [esp + 0x14]
and eax, 0xff
mov ebp, edx
and ebp, 0xff
mov bl, byte [eax + 0x384]
add edi, ebx
add ebp, edi
mov ebx, ebp
and ebx, 0x800000ff
jns 0x40e4dc
dec ebx
or ebx, 0xffffff00
inc ebx
mov byte [esp + 0x10], bl
mov edi, dword [esp + 0x10]
and edi, 0xff
inc eax
mov bl, byte [esp + edi + 0x1c]
mov byte [esi], bl
mov byte [esp + edi + 0x1c], dl
cdq
mov esi, 0x57
idiv esi
inc ecx
cmp cx, 0x100
mov byte [esp + 0x14], dl
jl 0x40e471
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
xor eax, eax
movsx edx, ax
mov byte [esp + edx + 0x1c], al
xor eax, eax
lea edx, [esp + 0x1c]
mov byte [edx], al
inc eax
inc edx
cmp ax, 0x100
jl 0x40e524
xor eax, eax
lea edx, [esp + 0x1c]
mov byte [edx], al
inc eax
inc edx
cmp ax, 0x100
jl 0x40e534
inc eax
cmp ax, 0x100
jl 0x40e517
xor eax, eax
lea edx, [esp + 0x1c]
mov byte [edx], al
inc eax
inc edx
cmp ax, 0x100
jl 0x40e54b
mov byte [esp + 0x10], cl
mov byte [esp + 0x20], cl
mov ebp, dword [esp + 0x10]
mov byte [esp + 0x21], cl
mov byte [esp + 0x14], cl
jmp 0x40e56d
xor ecx, ecx
xor eax, eax
lea edx, [esp + 0x1c]
mov byte [edx], al
inc eax
inc edx
cmp ax, 0x100
jl 0x40e573
xor eax, eax
lea edx, [esp + 0x1c]
mov byte [edx], al
inc eax
inc edx
cmp ax, 0x100
jl 0x40e583
lea eax, [esp + 0x1c]
mov byte [eax], cl
inc ecx
inc eax
cmp cx, 0x100
jl 0x40e591
movsx eax, cx
mov dl, byte [esp + eax + 0x1c]
xor ebx, ebx
lea esi, [esp + eax + 0x1c]
mov eax, dword [esp + 0x14]
and eax, 0xff
mov edi, edx
and edi, 0xff
and ebp, 0xff
mov bl, byte [eax + 0x384]
add ebx, edi
add ebx, ebp
and ebx, 0x800000ff
jns 0x40e5da
dec ebx
or ebx, 0xffffff00
inc ebx
mov byte [esp + 0x10], bl
mov ebp, dword [esp + 0x10]
mov edi, ebp
and edi, 0xff
inc eax
mov bl, byte [esp + edi + 0x1c]
lea edi, [esp + edi + 0x1c]
mov byte [esi], bl
mov esi, 0x57
mov byte [edi], dl
cdq
idiv esi
inc ecx
cmp cx, 0x100
mov byte [esp + 0x14], dl
jl 0x40e56b
mov edi, ebp
and edi, 0xff
xor eax, eax
lea ecx, [esp + 0x1c]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x40e61d
xor eax, eax
lea ecx, [esp + 0x1c]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x40e62d
xor ecx, ecx
lea eax, [esp + 0x1c]
mov byte [eax], cl
inc ecx
inc eax
cmp cx, 0x100
jl 0x40e63d
mov eax, dword [esp + 0x14]
xor ebx, ebx
movsx edx, cx
and eax, 0xff
lea esi, [esp + edx + 0x1c]
mov bl, byte [eax + 0x384]
mov dl, byte [esi]
add edi, ebx
mov ebp, edx
and ebp, 0xff
add ebp, edi
mov ebx, ebp
and ebx, 0x800000ff
jns 0x40e680
dec ebx
or ebx, 0xffffff00
inc ebx
mov byte [esp + 0x10], bl
mov edi, dword [esp + 0x10]
and edi, 0xff
inc eax
mov bl, byte [esp + edi + 0x1c]
mov byte [esi], bl
mov byte [esp + edi + 0x1c], dl
cdq
mov esi, 0x57
idiv esi
inc ecx
cmp cx, 0x100
mov byte [esp + 0x14], dl
jl 0x40e617
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x14
ret
mov eax, esi
pop esi
add esp, 0x14
ret