Function at 0x1003e1d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x48
push ebx
push ebp
mov ebp, dword [esp + 0x54]
lea eax, [esp + 8]
push eax
push 0
push dword [esp + 0x7c]
mov dword [esp + 0x14], 0
push 3
push ebp
push dword [esp + 0x6c]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
call fcn.1003baa0
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x1003e5b1
lea eax, [esp + 0x3c]
push eax
push 0xabe2
push dword [esp + 0x10]
call fcn.1003bc10
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1003e5b1
lea eax, [esp + 0x14]
push eax
push 0xabe3
push dword [esp + 0x10]
call fcn.1003bc10
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1003e5b1
mov eax, dword [esp + 0x6c]
dec eax
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x40]
add eax, esi
cdq
idiv esi
push edi
mov edi, dword [esp + 0x6c]
xor edx, edx
mov dword [esp + 0x28], eax
lea eax, [ebp - 1]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x48], esi
add eax, dword [edi]
div ebp
xor edx, edx
mov ebx, eax
mov eax, dword [esp + 0x18]
imul ebx, ebp
dec eax
mov ebp, dword [esp + 0x68]
add eax, dword [ebp]
div dword [esp + 0x18]
mov dword [esp + 0x14], ebx
mov edx, eax
mov eax, dword [esp + 0x18]
imul edx, eax
mov dword [esp + 0x24], edx
lea ecx, [edx + ebx]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x28]
imul ecx, esi
lea eax, [ecx + eax*2]
lea ecx, [edx + ebx]
add eax, ecx
lea ecx, [esp + 0x54]
add eax, edx
add eax, ebx
add eax, esi
push ecx
push eax
push dword [esp + 0x64]
mov dword [esp + 0x5c], eax
call fcn.1003a010
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1003e5ab
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
push dword [esp + 0x1c]
mov dword [esp + 0x38], eax
push dword [esp + 0x7c]
lea ecx, [eax + edx]
mov eax, dword [esp + 0x1c]
push dword [esp + 0x3c]
add eax, ecx
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x3c], eax
add eax, esi
add ecx, eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x54]
add eax, ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x48], eax
add eax, edx
mov dword [esp + 0x4c], eax
call sub.MSVCR120.dll_memset
xor ecx, ecx
add esp, 0xc
cmp dword [esp + 0x14], ecx
jle 0x1003e36c
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
jmp 0x1003e350
mov eax, ecx
xor edx, edx
div dword [edi]
mov eax, dword [edi + 4]
mov al, byte [edx + eax]
mov byte [ecx + esi], al
inc ecx
cmp ecx, ebp
jl 0x1003e350
mov ebp, dword [esp + 0x68]
mov esi, dword [esp + 0x24]
xor ecx, ecx
test esi, esi
jle 0x1003e38f
mov edi, dword [esp + 0x30]
mov eax, ecx
xor edx, edx
div dword [ebp]
mov eax, dword [ebp + 4]
mov al, byte [edx + eax]
mov byte [ecx + edi], al
inc ecx
cmp ecx, esi
jl 0x1003e376
mov edi, dword [esp + 0x6c]
push dword [esp + 0x14]
push dword [esp + 0x30]
push dword [esp + 0x28]
call fcn.1003a1f0
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x2c]
push esi
push dword [esp + 0x40]
push eax
call fcn.1003a1f0
mov eax, dword [ebp]
xor edx, edx
mov esi, dword [esp + 0x34]
dec eax
add eax, esi
mov dword [esp + 0x48], 0
div esi
xor edx, edx
add esp, 0x18
mov dword [esp + 0x14], eax
lea eax, [esi - 1]
add eax, dword [edi]
div esi
mov edi, dword [esp + 0x14]
add edi, eax
cmp dword [esp + 0x28], 0
mov dword [esp + 0x14], edi
jle 0x1003e580
mov edi, edi
push dword [esp + 0x10]
call fcn.1003a3e0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1003e5ab
mov ebp, dword [esp + 0x18]
push ebp
push dword [esp + 0x38]
push dword [esp + 0x18]
call fcn.1003a410
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1003e5ab
push dword [esp + 0x38]
push dword [esp + 0x24]
push dword [esp + 0x18]
call fcn.1003a410
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1003e5ab
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x50]
push dword [esp + 0x18]
call fcn.1003a460
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x24], ebx
test ebx, ebx
jne 0x1003e5ab
mov esi, dword [esp + 0x70]
dec esi
test esi, esi
jle 0x1003e4cc
nop
push dword [esp + 0x10]
call fcn.1003a3e0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1003e5ab
push dword [esp + 0x48]
push dword [esp + 0x50]
push dword [esp + 0x18]
call fcn.1003a410
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1003e5ab
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x50]
push dword [esp + 0x18]
call fcn.1003a460
mov ebx, eax
mov dword [esp + 0x30], eax
add esp, 0xc
test ebx, ebx
jne 0x1003e5ab
dec esi
test esi, esi
jg 0x1003e470
xor ecx, ecx
test ebp, ebp
jle 0x1003e4f1
mov ebx, dword [esp + 0x3c]
mov eax, ecx
xor edx, edx
div dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov al, byte [edx + eax]
mov byte [ecx + ebx], al
inc ecx
cmp ecx, ebp
jl 0x1003e4d6
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x2c], 0
test edi, edi
jle 0x1003e552
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
mov ecx, ebx
mov eax, 1
imul ecx, edi
add ecx, dword [esp + 0x20]
test edi, edi
je 0x1003e543
mov ebp, dword [esp + 0x3c]
lea esi, [edi - 1]
add esi, ecx
sub ebp, ecx
movzx ecx, byte [esi]
lea esi, [esi - 1]
movzx edx, byte [esi + ebp + 1]
add eax, ecx
add eax, edx
mov byte [esi + 1], al
sar eax, 8
and eax, 0xff
dec edi
jne 0x1003e522
mov edi, dword [esp + 0x1c]
inc ebx
cmp ebx, dword [esp + 0x14]
jl 0x1003e505
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x30]
mov eax, ebp
imul eax, ecx
push ecx
push dword [esp + 0x50]
add eax, dword [esp + 0x48]
push eax
call fcn.1003a1f0
inc ebp
add esp, 0xc
mov dword [esp + 0x30], ebp
cmp ebp, dword [esp + 0x28]
jl 0x1003e3f0
push dword [esp + 0x74]
push dword [esp + 0x44]
push dword [esp + 0x6c]
call fcn.1003a1f0
mov ecx, dword [esp + 0x8c]
add esp, 0xc
mov ebp, dword [esp + 0x5c]
test ecx, ecx
je 0x1003e5af
mov eax, dword [esp + 0x44]
mov dword [ecx], eax
jmp 0x1003e5af
mov ebp, dword [esp + 0x5c]
pop edi
pop esi
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x1003e5c7
push dword [esp + 0x48]
push eax
push ebp
call fcn.1003a040
add esp, 0xc
push dword [esp + 8]
call fcn.1003a3c0
add esp, 4
mov eax, ebx
pop ebp
pop ebx
add esp, 0x48
ret