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

Disassembly:
sub esp, 0x10
lea eax, [esp + 0x14]
push ebx
xor ebx, ebx
push esi
push edi
test eax, eax
jne 0x410f9a
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 + 0x14], al
xor eax, eax
lea ecx, [esp + 0x14]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x410abe
xor eax, eax
lea ecx, [esp + 0x14]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x410ace
inc eax
cmp ax, 0x100
jl 0x410ab1
xor eax, eax
lea ecx, [esp + 0x14]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x410ae5
mov byte [esp + 0xc], bl
push ebp
mov ebp, dword [esp + 0x10]
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], bl
mov byte [esp + 0x14], bl
xor eax, eax
lea ecx, [esp + 0x18]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x410b0a
xor eax, eax
lea ecx, [esp + 0x18]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x410b1a
xor ecx, ecx
lea eax, [esp + 0x18]
mov byte [eax], cl
inc ecx
inc eax
cmp cx, 0x100
jl 0x410b2a
mov eax, dword [esp + 0x14]
xor ebx, ebx
movsx edx, cx
and eax, 0xff
and ebp, 0xff
lea esi, [esp + edx + 0x18]
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 0x410b71
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 + 0x18]
lea edi, [esp + edi + 0x18]
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 0x410b04
mov edi, ebp
and edi, 0xff
xor eax, eax
lea ecx, [esp + 0x18]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x410bb4
xor eax, eax
lea ecx, [esp + 0x18]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x410bc4
xor ecx, ecx
lea eax, [esp + 0x18]
mov byte [eax], cl
inc ecx
inc eax
cmp cx, 0x100
jl 0x410bd4
movsx eax, cx
mov dl, byte [esp + eax + 0x18]
xor ebx, ebx
lea esi, [esp + eax + 0x18]
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 0x410c19
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 + 0x18]
mov byte [esi], bl
mov byte [esp + edi + 0x18], dl
cdq
mov esi, 0x57
idiv esi
inc ecx
cmp cx, 0x100
mov byte [esp + 0x14], dl
jl 0x410bae
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 + 0x18], al
xor eax, eax
lea ecx, [esp + 0x18]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x410c66
xor eax, eax
lea ecx, [esp + 0x18]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x410c76
inc eax
cmp ax, 0x100
jl 0x410c59
xor eax, eax
lea ecx, [esp + 0x18]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x410c8d
mov byte [esp + 0x10], bl
mov byte [esp + 0x1c], bl
mov ebp, dword [esp + 0x10]
mov byte [esp + 0x1d], bl
mov byte [esp + 0x14], bl
jmp 0x410caf
xor ebx, ebx
xor eax, eax
lea ecx, [esp + 0x18]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x410cb5
xor eax, eax
lea ecx, [esp + 0x18]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x410cc5
xor ecx, ecx
lea eax, [esp + 0x18]
mov byte [eax], cl
inc ecx
inc eax
cmp cx, 0x100
jl 0x410cd5
mov eax, dword [esp + 0x14]
xor ebx, ebx
movsx edx, cx
and eax, 0xff
and ebp, 0xff
lea esi, [esp + edx + 0x18]
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 0x410d1c
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 + 0x18]
lea edi, [esp + edi + 0x18]
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 0x410cad
mov edi, ebp
and edi, 0xff
xor eax, eax
lea ecx, [esp + 0x18]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x410d5f
xor eax, eax
lea ecx, [esp + 0x18]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x410d6f
xor ecx, ecx
lea eax, [esp + 0x18]
mov byte [eax], cl
inc ecx
inc eax
cmp cx, 0x100
jl 0x410d7f
movsx eax, cx
mov dl, byte [esp + eax + 0x18]
xor ebx, ebx
lea esi, [esp + eax + 0x18]
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 0x410dc4
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 + 0x18]
mov byte [esi], bl
mov byte [esp + edi + 0x18], dl
cdq
mov esi, 0x57
idiv esi
inc ecx
cmp cx, 0x100
mov byte [esp + 0x14], dl
jl 0x410d59
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
xor eax, eax
movsx edx, ax
mov byte [esp + edx + 0x18], al
xor eax, eax
lea edx, [esp + 0x18]
mov byte [edx], al
inc eax
inc edx
cmp ax, 0x100
jl 0x410e0c
xor eax, eax
lea edx, [esp + 0x18]
mov byte [edx], al
inc eax
inc edx
cmp ax, 0x100
jl 0x410e1c
inc eax
cmp ax, 0x100
jl 0x410dff
xor eax, eax
lea edx, [esp + 0x18]
mov byte [edx], al
inc eax
inc edx
cmp ax, 0x100
jl 0x410e33
mov byte [esp + 0x10], cl
mov byte [esp + 0x1c], cl
mov ebp, dword [esp + 0x10]
mov byte [esp + 0x1d], cl
mov byte [esp + 0x14], cl
jmp 0x410e55
xor ecx, ecx
xor eax, eax
lea edx, [esp + 0x18]
mov byte [edx], al
inc eax
inc edx
cmp ax, 0x100
jl 0x410e5b
xor eax, eax
lea edx, [esp + 0x18]
mov byte [edx], al
inc eax
inc edx
cmp ax, 0x100
jl 0x410e6b
lea eax, [esp + 0x18]
mov byte [eax], cl
inc ecx
inc eax
cmp cx, 0x100
jl 0x410e79
movsx eax, cx
mov dl, byte [esp + eax + 0x18]
xor ebx, ebx
lea esi, [esp + eax + 0x18]
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 0x410ec2
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 + 0x18]
lea edi, [esp + edi + 0x18]
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 0x410e53
mov edi, ebp
and edi, 0xff
xor eax, eax
lea ecx, [esp + 0x18]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x410f05
xor eax, eax
lea ecx, [esp + 0x18]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x410f15
xor ecx, ecx
lea eax, [esp + 0x18]
mov byte [eax], cl
inc ecx
inc eax
cmp cx, 0x100
jl 0x410f25
mov eax, dword [esp + 0x14]
xor ebx, ebx
movsx edx, cx
and eax, 0xff
lea esi, [esp + edx + 0x18]
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 0x410f68
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 + 0x18]
mov byte [esi], bl
mov byte [esp + edi + 0x18], dl
cdq
mov esi, 0x57
idiv esi
inc ecx
cmp cx, 0x100
mov byte [esp + 0x14], dl
jl 0x410eff
pop ebp
mov eax, dword [esp + 0x20]
mov ecx, dword [0x4353d0]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [ecx + 0x50]
mov esi, eax
cmp esi, 0xffffffff
jne 0x410fcc
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 4
mov edx, dword [0x4353d0]
push 0
push esi
call dword [edx + 0x38]
mov edi, eax
mov eax, dword [0x4353d0]
push esi
call dword [eax + 0x44]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4