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

Disassembly:
sub esp, 0x14
push ebx
push esi
lea eax, [esp + 0x10]
mov esi, ecx
xor ebx, ebx
push edi
test eax, eax
mov dword [esp + 0x14], esi
jne 0x404d04
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 0x404824
xor eax, eax
lea ecx, [esp + 0x18]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x404834
inc eax
cmp ax, 0x100
jl 0x404817
xor eax, eax
lea ecx, [esp + 0x18]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x40484b
mov byte [esp + 0xc], bl
push ebp
mov ebp, dword [esp + 0x10]
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], bl
mov byte [esp + 0x14], bl
xor eax, eax
lea ecx, [esp + 0x1c]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x404870
xor eax, eax
lea ecx, [esp + 0x1c]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x404880
xor ecx, ecx
lea eax, [esp + 0x1c]
mov byte [eax], cl
inc ecx
inc eax
cmp cx, 0x100
jl 0x404890
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 0x4048d7
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 0x40486a
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 0x40491a
xor eax, eax
lea ecx, [esp + 0x1c]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x40492a
xor ecx, ecx
lea eax, [esp + 0x1c]
mov byte [eax], cl
inc ecx
inc eax
cmp cx, 0x100
jl 0x40493a
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 0x40497f
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 0x404914
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 0x4049cc
xor eax, eax
lea ecx, [esp + 0x1c]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x4049dc
inc eax
cmp ax, 0x100
jl 0x4049bf
xor eax, eax
lea ecx, [esp + 0x1c]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x4049f3
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 0x404a15
xor ebx, ebx
xor eax, eax
lea ecx, [esp + 0x1c]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x404a1b
xor eax, eax
lea ecx, [esp + 0x1c]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x404a2b
xor ecx, ecx
lea eax, [esp + 0x1c]
mov byte [eax], cl
inc ecx
inc eax
cmp cx, 0x100
jl 0x404a3b
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 0x404a82
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 0x404a13
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 0x404ac5
xor eax, eax
lea ecx, [esp + 0x1c]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x404ad5
xor ecx, ecx
lea eax, [esp + 0x1c]
mov byte [eax], cl
inc ecx
inc eax
cmp cx, 0x100
jl 0x404ae5
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 0x404b2a
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 0x404abf
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 0x404b72
xor eax, eax
lea edx, [esp + 0x1c]
mov byte [edx], al
inc eax
inc edx
cmp ax, 0x100
jl 0x404b82
inc eax
cmp ax, 0x100
jl 0x404b65
xor eax, eax
lea edx, [esp + 0x1c]
mov byte [edx], al
inc eax
inc edx
cmp ax, 0x100
jl 0x404b99
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 0x404bbb
xor ecx, ecx
xor eax, eax
lea edx, [esp + 0x1c]
mov byte [edx], al
inc eax
inc edx
cmp ax, 0x100
jl 0x404bc1
xor eax, eax
lea edx, [esp + 0x1c]
mov byte [edx], al
inc eax
inc edx
cmp ax, 0x100
jl 0x404bd1
lea eax, [esp + 0x1c]
mov byte [eax], cl
inc ecx
inc eax
cmp cx, 0x100
jl 0x404bdf
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 0x404c28
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 0x404bb9
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 0x404c6b
xor eax, eax
lea ecx, [esp + 0x1c]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x404c7b
xor ecx, ecx
lea eax, [esp + 0x1c]
mov byte [eax], cl
inc ecx
inc eax
cmp cx, 0x100
jl 0x404c8b
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 0x404cce
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 0x404c65
mov esi, dword [esp + 0x18]
pop ebp
mov ecx, dword [0x4353d0]
push 0
push 0x80
push 3
push 0
push 1
lea eax, [esi + 4]
push 0x80000000
push eax
call dword [ecx + 0x50]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404d36
pop edi
pop esi
mov eax, 3
pop ebx
add esp, 0x14
ret
mov edx, dword [0x4353d0]
push 0
push edi
call dword [edx + 0x38]
push eax
mov dword [esi + 0x114], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esi + 0x114]
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esi + 0x110], eax
push 0
push ecx
push edx
push eax
mov eax, dword [0x4353d0]
push edi
call dword [eax + 0x4c]
mov ecx, dword [0x4353d0]
push edi
call dword [ecx + 0x44]
mov eax, dword [esi + 0x114]
cmp eax, 0x2800
jae 0x404d92
pop edi
pop esi
mov eax, 2
pop ebx
add esp, 0x14
ret
mov esi, dword [esi + 0x110]
xor ecx, ecx
mov edx, dword [esi + 0xffc]
mov edi, dword [esi + eax - 0x66]
add edx, 0x7bd
cmp edi, edx
pop edi
setne cl
inc ecx
pop esi
mov eax, ecx
pop ebx
add esp, 0x14
ret