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

Disassembly:
push 0xffffffffffffffff
push 0x42d9d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push esi
lea eax, [esp + 0x88]
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x10], esi
test eax, eax
jne 0x415d73
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 0x41588b
xor eax, eax
lea ecx, [esp + 0x18]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x41589b
inc eax
cmp ax, 0x100
jl 0x41587e
xor eax, eax
lea ecx, [esp + 0x18]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x4158b2
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 0x4158d6
xor ebx, ebx
xor eax, eax
lea ecx, [esp + 0x20]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x4158dc
xor eax, eax
lea ecx, [esp + 0x20]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x4158ec
xor ecx, ecx
lea eax, [esp + 0x20]
mov byte [eax], cl
inc ecx
inc eax
cmp cx, 0x100
jl 0x4158fc
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 0x415943
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 0x4158d4
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 0x415986
xor eax, eax
lea ecx, [esp + 0x20]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x415996
xor ecx, ecx
lea eax, [esp + 0x20]
mov byte [eax], cl
inc ecx
inc eax
cmp cx, 0x100
jl 0x4159a6
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 0x4159eb
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 0x415980
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 0x415a38
xor eax, eax
lea ecx, [esp + 0x20]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x415a48
inc eax
cmp ax, 0x100
jl 0x415a2b
xor eax, eax
lea ecx, [esp + 0x20]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x415a5f
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 0x415a81
xor ebx, ebx
xor eax, eax
lea ecx, [esp + 0x20]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x415a87
xor eax, eax
lea ecx, [esp + 0x20]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x415a97
xor ecx, ecx
lea eax, [esp + 0x20]
mov byte [eax], cl
inc ecx
inc eax
cmp cx, 0x100
jl 0x415aa7
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 0x415aee
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 0x415a7f
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 0x415b31
xor eax, eax
lea ecx, [esp + 0x20]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x415b41
xor ecx, ecx
lea eax, [esp + 0x20]
mov byte [eax], cl
inc ecx
inc eax
cmp cx, 0x100
jl 0x415b51
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 0x415b96
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 0x415b2b
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 0x415bde
xor eax, eax
lea edx, [esp + 0x20]
mov byte [edx], al
inc eax
inc edx
cmp ax, 0x100
jl 0x415bee
inc eax
cmp ax, 0x100
jl 0x415bd1
xor eax, eax
lea edx, [esp + 0x20]
mov byte [edx], al
inc eax
inc edx
cmp ax, 0x100
jl 0x415c05
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 0x415c27
xor ecx, ecx
xor eax, eax
lea edx, [esp + 0x20]
mov byte [edx], al
inc eax
inc edx
cmp ax, 0x100
jl 0x415c2d
xor eax, eax
lea edx, [esp + 0x20]
mov byte [edx], al
inc eax
inc edx
cmp ax, 0x100
jl 0x415c3d
lea eax, [esp + 0x20]
mov byte [eax], cl
inc ecx
inc eax
cmp cx, 0x100
jl 0x415c4b
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 0x415c94
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 0x415c25
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 0x415cd7
xor eax, eax
lea ecx, [esp + 0x20]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x415ce7
xor ecx, ecx
lea eax, [esp + 0x20]
mov byte [eax], cl
inc ecx
inc eax
cmp cx, 0x100
jl 0x415cf7
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 0x415d3a
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 0x415cd1
mov esi, dword [esp + 0x18]
pop edi
xor ebx, ebx
pop ebp
mov ecx, dword [esp + 0x88]
lea eax, [esp + 0x14]
push eax
call fcn.00409250
cmp eax, ebx
jne 0x415d9d
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret 4
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push 0x5e
push ebx
push ecx
push edx
lea ecx, [esp + 0x30]
call fcn.00419040
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
mov dword [esp + 0x84], ebx
call fcn.00419140
test eax, eax
mov dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x20]
je 0x415df3
call fcn.00419130
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret 4
call fcn.00419130
mov ecx, dword [esp + 0x78]
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x7c
ret 4