Function at 0x503b456
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 0x64
mov eax, 0x5073dc5
call fcn.0507032d
push dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov ebx, ecx
mov eax, dword [ebx]
mov dword [ebp - 0x68], ebx
call dword [eax + 0x60]
cmp dword [ebp + 0x10], eax
jb 0x503b484
push 0x7061726d
call fcn.05004c30
mov ecx, ebx
mov dword [ebp - 0x6c], ebx
call fcn.0503f80c
and dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
lea eax, [ebp - 0x50]
jne 0x503b65d
push str.Curves
push edi
push str._s_s
push eax
mov dword [esi], 0x73743164
call dword [sym.imp.MSVCR80.dll_sprintf]
mov eax, dword [ebx + 4]
push 0
lea ecx, [ebp - 0x50]
push ecx
push eax
call fcn.05067ac5
add esp, 0x1c
cmp dword [ebp + 8], 0x73686673
mov dword [esi + 4], eax
jne 0x503b566
mov edi, dword [esi + 0x40]
test edi, edi
je 0x503b601
lea ecx, [ebx + 0x456]
mov dword [ebp - 0x60], 0x100
mov eax, 0x4000
movzx edx, word [ecx + 0x200]
imul edx, edx, 0xff
add edx, eax
sar edx, 0xf
or bl, 0xff
sub bl, dl
mov byte [edi], bl
movzx edx, word [ecx]
imul edx, edx, 0xff
add edx, eax
sar edx, 0xf
or bl, 0xff
sub bl, dl
inc edi
mov byte [edi], bl
movzx edx, word [ecx - 0x200]
imul edx, edx, 0xff
add edx, eax
sar edx, 0xf
or bl, 0xff
sub bl, dl
inc edi
mov byte [edi], bl
movzx edx, word [ecx + 0x400]
imul edx, edx, 0xff
add edx, eax
sar edx, 0xf
or bl, 0xff
inc edi
sub bl, dl
mov byte [edi], bl
inc edi
dec ecx
dec ecx
dec dword [ebp - 0x60]
jne 0x503b4f6
jmp 0x503b5fe
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x503b601
lea edx, [ebx + 0x456]
mov dword [ebp - 0x60], 0x100
mov eax, 0x4000
movzx edi, word [edx - 0x200]
imul edi, edi, 0xffff
add edi, eax
sar edi, 0xf
mov ebx, 0xffff
sub ebx, edi
mov word [ecx], bx
movzx edi, word [edx]
imul edi, edi, 0xffff
add edi, eax
sar edi, 0xf
inc ecx
inc ecx
mov ebx, 0xffff
sub ebx, edi
mov word [ecx], bx
movzx edi, word [edx + 0x200]
imul edi, edi, 0xffff
add edi, eax
sar edi, 0xf
inc ecx
inc ecx
mov ebx, 0xffff
sub ebx, edi
mov word [ecx], bx
movzx edi, word [edx + 0x400]
imul edi, edi, 0xffff
add edi, eax
inc ecx
sar edi, 0xf
inc ecx
mov ebx, 0xffff
sub ebx, edi
mov word [ecx], bx
inc ecx
inc ecx
dec edx
dec edx
dec dword [ebp - 0x60]
jne 0x503b583
mov ebx, dword [ebp - 0x68]
mov eax, 0x1908
mov dword [esi + 0x10], eax
xor ecx, ecx
mov dword [esi + 0x24], eax
xor edi, edi
inc ecx
cmp dword [ebp + 8], 0x73686673
mov dword [esi + 8], 0xde0
mov dword [esi + 0xc], edi
mov edx, 0x100
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], 0x1403
mov eax, 0x2601
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], 0x812f
jne 0x503b898
mov dword [esi + 0x44], edx
mov dword [esi + 0x50], ecx
jmp 0x503b88b
push str.Table
push edi
push str._s_s
push eax
mov dword [esi], 0x73743364
call dword [sym.imp.MSVCR80.dll_sprintf]
mov eax, dword [ebx + 4]
push 0
lea ecx, [ebp - 0x50]
push ecx
push eax
call fcn.05067ac5
add esp, 0x1c
cmp dword [ebp + 8], 0x73686673
mov dword [esi + 4], eax
jne 0x503b75f
mov edi, dword [esi + 0x40]
test edi, edi
je 0x503b82a
and dword [ebp - 0x54], 0
push 8
pop ebx
push 0x50
pop eax
cmp dword [ebp - 0x54], eax
jge 0x503b6b4
mov eax, dword [ebp - 0x54]
cdq
push 9
pop ecx
idiv ecx
mov eax, ebx
sub eax, edx
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x54]
cmp eax, 0x50
jl 0x503b6cc
push 0x50
pop eax
push 9
cdq
pop ecx
idiv ecx
mov ecx, ebx
sub ecx, eax
and dword [ebp - 0x58], 0
mov dword [ebp - 0x60], ecx
jmp 0x503b6e2
mov ecx, dword [ebp - 0x60]
cmp dword [ebp - 0x58], ebx
mov edx, dword [ebp - 0x58]
jl 0x503b6ec
mov edx, ebx
and dword [ebp - 0x5c], 0
mov eax, ebx
sub eax, edx
imul eax, eax, 9
add eax, dword [ebp - 0x64]
imul eax, eax, 9
add eax, ecx
imul eax, eax, 3
cmp dword [ebp - 0x5c], ebx
mov edx, dword [ebp - 0x5c]
jl 0x503b70c
mov edx, ebx
mov ecx, ebx
sub ecx, edx
mov edx, dword [ebp - 0x68]
lea ecx, [edx + ecx*4 + 0x858]
mov edx, dword [ecx]
mov dl, byte [edx + eax + 2]
mov byte [edi], dl
mov edx, dword [ecx]
mov dl, byte [edx + eax + 1]
inc edi
mov byte [edi], dl
mov ecx, dword [ecx]
mov cl, byte [eax + ecx]
inc edi
mov byte [edi], cl
inc edi
mov byte [edi], 0xff
inc edi
inc dword [ebp - 0x5c]
cmp dword [ebp - 0x5c], 0x10
jl 0x503b702
inc dword [ebp - 0x58]
cmp dword [ebp - 0x58], 0x10
jl 0x503b6df
inc dword [ebp - 0x54]
cmp dword [ebp - 0x54], 0x80
jl 0x503b6a9
jmp 0x503b827
mov eax, dword [esi + 0x40]
test eax, eax
je 0x503b82a
and dword [ebp - 0x54], 0
push 8
mov dword [ebp - 0x60], eax
pop ebx
mov eax, dword [ebp - 0x54]
push 0x50
pop ecx
cmp eax, ecx
jl 0x503b780
mov eax, ecx
cdq
push 9
pop edi
idiv edi
mov eax, dword [ebp - 0x54]
mov edi, ebx
sub edi, edx
cmp eax, ecx
mov dword [ebp - 0x70], edi
jl 0x503b796
mov eax, ecx
push 9
cdq
pop ecx
idiv ecx
mov ecx, ebx
sub ecx, eax
and dword [ebp - 0x5c], 0
mov dword [ebp - 0x6c], ecx
jmp 0x503b7af
mov edi, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
cmp dword [ebp - 0x5c], ebx
mov edx, dword [ebp - 0x5c]
jl 0x503b7b9
mov edx, ebx
and dword [ebp - 0x58], 0
mov eax, ebx
sub eax, edx
imul eax, eax, 9
add eax, edi
imul eax, eax, 9
add eax, ecx
imul eax, eax, 3
cmp dword [ebp - 0x58], ebx
mov edx, dword [ebp - 0x58]
jl 0x503b7d8
mov edx, ebx
mov ecx, ebx
sub ecx, edx
mov edx, dword [ebp - 0x68]
and dword [ebp - 0x64], 0
lea ecx, [edx + ecx*4 + 0x858]
mov edx, dword [ecx]
mov edi, dword [ebp - 0x64]
add edx, eax
mov dl, byte [edx + edi]
mov edi, dword [ebp - 0x60]
inc dword [ebp - 0x60]
inc dword [ebp - 0x64]
cmp dword [ebp - 0x64], 3
mov byte [edi], dl
jl 0x503b7ea
inc dword [ebp - 0x58]
cmp dword [ebp - 0x58], 0x10
jl 0x503b7ce
inc dword [ebp - 0x5c]
cmp dword [ebp - 0x5c], 0x10
jl 0x503b7a9
inc dword [ebp - 0x54]
cmp dword [ebp - 0x54], 0x80
jl 0x503b774
mov ebx, dword [ebp - 0x68]
mov eax, 0x1907
mov dword [esi + 0x10], eax
mov dword [esi + 0x24], eax
mov dword [esi + 8], 0x806f
xor edi, edi
cmp dword [ebp + 8], 0x73686673
mov dword [esi + 0xc], edi
push 0x10
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], 0x1401
pop ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], ecx
mov eax, 0x2601
mov edx, 0x80
mov dword [esi + 0x1c], edx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov eax, 0x812f
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x34], eax
jne 0x503b898
mov dword [esi + 0x44], ecx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], 1
mov dword [esi + 0x58], 0x15
mov dword [esi + 0x54], edi
mov dword [esi + 0x48], ecx
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
call fcn.0503f832
call fcn.050703b0
ret 0x10