Function at 0x4d89d0
Capabilities:
Encrypt data using rc4 prga
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x404c
call fcn.0041ba00
mov eax, dword [0x58005c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x404c], ecx
mov dword [ebp - 0x2014], 0x36
mov eax, dword [ebp - 0x404c]
mov ecx, dword [eax + 0x2e4]
mov dword [ebp - 0x200c], ecx
cmp dword [ebp - 0x200c], 0
jne 0x4d8a1c
mov dword [ebp - 0x200c], 0x100
mov edx, dword [ebp - 0x200c]
mov eax, dword [ebp - 0x2014]
lea ecx, [eax + edx*4]
mov dword [ebp - 0x2014], ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x404c]
mov ecx, dword [eax + 0x50]
sub ecx, dword [ebp - 0x2014]
push ecx
push 1
mov edx, dword [0x5a6ef8]
push edx
call fcn.0041da81
add esp, 0x10
mov dword [ebp - 0x4024], eax
mov eax, dword [ebp - 0x404c]
mov ecx, dword [eax + 0x70]
sub ecx, dword [ebp - 0x4024]
mov edx, dword [ebp - 0x404c]
mov dword [edx + 0x70], ecx
mov dword [ebp - 0x2018], 0
mov eax, dword [0x5a6ef8]
mov dword [ebp - 0x4020], eax
mov ecx, dword [ebp - 0x404c]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x401c], edx
mov eax, dword [ebp - 0x404c]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x4028], ecx
mov dword [ebp - 0x2010], 0
jmp 0x4d8ac2
mov edx, dword [ebp - 0x2010]
add edx, 1
mov dword [ebp - 0x2010], edx
mov eax, dword [ebp - 0x2010]
cmp eax, dword [ebp - 0x401c]
jge 0x4d8ae0
mov ecx, dword [ebp - 0x2010]
mov byte [ebp + ecx - 0x2008], 0
jmp 0x4d8ab3
mov dword [ebp - 0x402c], 0
jmp 0x4d8afb
mov edx, dword [ebp - 0x402c]
add edx, 1
mov dword [ebp - 0x402c], edx
mov eax, dword [ebp - 0x402c]
cmp eax, dword [ebp - 0x4028]
jge 0x4d8d53
mov dword [ebp - 0x4030], 0
mov ecx, dword [ebp - 0x4030]
cmp ecx, dword [ebp - 0x401c]
jge 0x4d8bf2
mov edx, dword [ebp - 0x4020]
add edx, dword [ebp - 0x2018]
mov al, byte [edx]
mov byte [ebp - 0x4031], al
mov ecx, dword [ebp - 0x2018]
add ecx, 1
mov dword [ebp - 0x2018], ecx
movsx edx, byte [ebp - 0x4031]
test edx, edx
je 0x4d8b7b
mov eax, dword [ebp - 0x4030]
mov cl, byte [ebp - 0x4031]
mov byte [ebp + eax - 0x4018], cl
mov edx, dword [ebp - 0x4030]
add edx, 1
mov dword [ebp - 0x4030], edx
jmp 0x4d8bed
mov eax, dword [ebp - 0x4020]
add eax, dword [ebp - 0x2018]
movsx ecx, byte [eax]
and ecx, 0xff
mov dword [ebp - 0x4038], ecx
mov edx, dword [ebp - 0x2018]
add edx, 1
mov dword [ebp - 0x2018], edx
mov dword [ebp - 0x403c], 0
jmp 0x4d8bc0
mov eax, dword [ebp - 0x403c]
add eax, 1
mov dword [ebp - 0x403c], eax
mov ecx, dword [ebp - 0x403c]
cmp ecx, dword [ebp - 0x4038]
jge 0x4d8bed
mov edx, dword [ebp - 0x4030]
mov byte [ebp + edx - 0x4018], 0
mov eax, dword [ebp - 0x4030]
add eax, 1
mov dword [ebp - 0x4030], eax
jmp 0x4d8bb1
jmp 0x4d8b17
mov dword [ebp - 0x2010], 0
jmp 0x4d8c0d
mov ecx, dword [ebp - 0x2010]
add ecx, 1
mov dword [ebp - 0x2010], ecx
mov edx, dword [ebp - 0x2010]
cmp edx, dword [ebp - 0x401c]
jge 0x4d8c62
mov eax, dword [ebp - 0x2010]
movsx ecx, byte [ebp + eax - 0x2008]
mov edx, dword [ebp - 0x2010]
movsx eax, byte [ebp + edx - 0x4018]
xor eax, ecx
mov ecx, dword [ebp - 0x2010]
mov byte [ebp + ecx - 0x4018], al
mov edx, dword [ebp - 0x2010]
mov eax, dword [ebp - 0x2010]
mov cl, byte [ebp + eax - 0x4018]
mov byte [ebp + edx - 0x2008], cl
jmp 0x4d8bfe
cmp dword [ebp + 0x10], 0
je 0x4d8cb8
mov edx, dword [ebp - 0x404c]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x4040], eax
mov ecx, dword [ebp - 0x404c]
mov edx, dword [ebp - 0x402c]
imul edx, dword [ecx + 0x14]
add edx, dword [ebp - 0x4040]
mov dword [ebp - 0x4040], edx
mov eax, dword [ebp - 0x404c]
mov ecx, dword [eax + 0x14]
push ecx
lea edx, [ebp - 0x4018]
push edx
mov eax, dword [ebp - 0x4040]
push eax
call fcn.004198f0
add esp, 0xc
jmp 0x4d8d4e
mov ecx, dword [ebp - 0x404c]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x4044], edx
mov eax, dword [ebp - 0x404c]
mov ecx, dword [ebp - 0x402c]
imul ecx, dword [eax + 0x14]
mov edx, dword [ebp - 0x4044]
lea eax, [edx + ecx*4]
mov dword [ebp - 0x4044], eax
mov dword [ebp - 0x2010], 0
jmp 0x4d8d01
mov ecx, dword [ebp - 0x2010]
add ecx, 1
mov dword [ebp - 0x2010], ecx
mov edx, dword [ebp - 0x2010]
cmp edx, dword [ebp - 0x401c]
jge 0x4d8d4e
mov eax, dword [ebp - 0x2010]
movsx ecx, byte [ebp + eax - 0x4018]
and ecx, 0xff
mov dword [ebp - 0x4048], ecx
mov edx, dword [ebp - 0x4044]
mov eax, dword [ebp - 0x4048]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + eax*4]
mov dword [edx], eax
mov ecx, dword [ebp - 0x4044]
add ecx, 4
mov dword [ebp - 0x4044], ecx
jmp 0x4d8cf2
jmp 0x4d8aec
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004130a1
mov esp, ebp
pop ebp
ret 0xc