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

Disassembly:
push 0xffffffffffffffff
push 0x42d928
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
lea eax, [esp + 0x14]
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x14], esi
test eax, eax
jne 0x405e50
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 + 0x18], al
xor eax, eax
lea ecx, [esp + 0x18]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x405968
xor eax, eax
lea ecx, [esp + 0x18]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x405978
inc eax
cmp ax, 0x100
jl 0x40595b
xor eax, eax
lea ecx, [esp + 0x18]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x40598f
mov byte [esp + 8], bl
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bl
mov byte [esp + 0x14], bl
jmp 0x4059b3
xor ebx, ebx
xor eax, eax
lea ecx, [esp + 0x20]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x4059b9
xor eax, eax
lea ecx, [esp + 0x20]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x4059c9
xor ecx, ecx
lea eax, [esp + 0x20]
mov byte [eax], cl
inc ecx
inc eax
cmp cx, 0x100
jl 0x4059d9
mov eax, dword [esp + 0x14]
xor ebx, ebx
movsx edx, cx
and eax, 0xff
and ebp, 0xff
lea esi, [esp + edx + 0x20]
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 0x405a20
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 + 0x20]
lea edi, [esp + edi + 0x20]
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 0x4059b1
mov edi, ebp
and edi, 0xff
xor eax, eax
lea ecx, [esp + 0x20]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x405a63
xor eax, eax
lea ecx, [esp + 0x20]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x405a73
xor ecx, ecx
lea eax, [esp + 0x20]
mov byte [eax], cl
inc ecx
inc eax
cmp cx, 0x100
jl 0x405a83
movsx eax, cx
mov dl, byte [esp + eax + 0x20]
xor ebx, ebx
lea esi, [esp + eax + 0x20]
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 0x405ac8
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 + 0x20]
mov byte [esi], bl
mov byte [esp + edi + 0x20], dl
cdq
mov esi, 0x57
idiv esi
inc ecx
cmp cx, 0x100
mov byte [esp + 0x14], dl
jl 0x405a5d
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 + 0x20], al
xor eax, eax
lea ecx, [esp + 0x20]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x405b15
xor eax, eax
lea ecx, [esp + 0x20]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x405b25
inc eax
cmp ax, 0x100
jl 0x405b08
xor eax, eax
lea ecx, [esp + 0x20]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x405b3c
mov byte [esp + 0x10], bl
mov byte [esp + 0x24], bl
mov ebp, dword [esp + 0x10]
mov byte [esp + 0x25], bl
mov byte [esp + 0x14], bl
jmp 0x405b5e
xor ebx, ebx
xor eax, eax
lea ecx, [esp + 0x20]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x405b64
xor eax, eax
lea ecx, [esp + 0x20]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x405b74
xor ecx, ecx
lea eax, [esp + 0x20]
mov byte [eax], cl
inc ecx
inc eax
cmp cx, 0x100
jl 0x405b84
mov eax, dword [esp + 0x14]
xor ebx, ebx
movsx edx, cx
and eax, 0xff
and ebp, 0xff
lea esi, [esp + edx + 0x20]
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 0x405bcb
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 + 0x20]
lea edi, [esp + edi + 0x20]
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 0x405b5c
mov edi, ebp
and edi, 0xff
xor eax, eax
lea ecx, [esp + 0x20]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x405c0e
xor eax, eax
lea ecx, [esp + 0x20]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x405c1e
xor ecx, ecx
lea eax, [esp + 0x20]
mov byte [eax], cl
inc ecx
inc eax
cmp cx, 0x100
jl 0x405c2e
movsx eax, cx
mov dl, byte [esp + eax + 0x20]
xor ebx, ebx
lea esi, [esp + eax + 0x20]
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 0x405c73
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 + 0x20]
mov byte [esi], bl
mov byte [esp + edi + 0x20], dl
cdq
mov esi, 0x57
idiv esi
inc ecx
cmp cx, 0x100
mov byte [esp + 0x14], dl
jl 0x405c08
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
xor eax, eax
movsx edx, ax
mov byte [esp + edx + 0x20], al
xor eax, eax
lea edx, [esp + 0x20]
mov byte [edx], al
inc eax
inc edx
cmp ax, 0x100
jl 0x405cbb
xor eax, eax
lea edx, [esp + 0x20]
mov byte [edx], al
inc eax
inc edx
cmp ax, 0x100
jl 0x405ccb
inc eax
cmp ax, 0x100
jl 0x405cae
xor eax, eax
lea edx, [esp + 0x20]
mov byte [edx], al
inc eax
inc edx
cmp ax, 0x100
jl 0x405ce2
mov byte [esp + 0x10], cl
mov byte [esp + 0x24], cl
mov ebp, dword [esp + 0x10]
mov byte [esp + 0x25], cl
mov byte [esp + 0x14], cl
jmp 0x405d04
xor ecx, ecx
xor eax, eax
lea edx, [esp + 0x20]
mov byte [edx], al
inc eax
inc edx
cmp ax, 0x100
jl 0x405d0a
xor eax, eax
lea edx, [esp + 0x20]
mov byte [edx], al
inc eax
inc edx
cmp ax, 0x100
jl 0x405d1a
lea eax, [esp + 0x20]
mov byte [eax], cl
inc ecx
inc eax
cmp cx, 0x100
jl 0x405d28
movsx eax, cx
mov dl, byte [esp + eax + 0x20]
xor ebx, ebx
lea esi, [esp + eax + 0x20]
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 0x405d71
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 + 0x20]
lea edi, [esp + edi + 0x20]
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 0x405d02
mov edi, ebp
and edi, 0xff
xor eax, eax
lea ecx, [esp + 0x20]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x405db4
xor eax, eax
lea ecx, [esp + 0x20]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x405dc4
xor ecx, ecx
lea eax, [esp + 0x20]
mov byte [eax], cl
inc ecx
inc eax
cmp cx, 0x100
jl 0x405dd4
mov eax, dword [esp + 0x14]
xor ebx, ebx
movsx edx, cx
and eax, 0xff
lea esi, [esp + edx + 0x20]
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 0x405e17
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 + 0x20]
mov byte [esi], bl
mov byte [esp + edi + 0x20], dl
cdq
mov esi, 0x57
idiv esi
inc ecx
cmp cx, 0x100
mov byte [esp + 0x14], dl
jl 0x405dae
mov esi, dword [esp + 0x1c]
pop edi
xor ebx, ebx
pop ebp
lea ecx, [esp + 0x10]
call fcn.004191a0
push 0x900000
push 0x400000
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], ebx
call fcn.00419200
mov edx, dword [esi + 0x10c]
push eax
mov eax, dword [esi + 0x19118]
lea ecx, [esi + 0x118]
push eax
mov eax, dword [esi + 0x108]
push ecx
push edx
lea ecx, [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.00406b30
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.004191d0
mov ecx, dword [esp + 0x20]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret