Function at 0x100124d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e2978
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10123068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x3c], edi
push dword [ebp + 0x10]
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
push 0x10106748
push 0x1f
push eax
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
call fcn.100123e0
mov eax, dword [ebp + 0x10]
add esp, 0x10
mov ecx, eax
mov edx, 0x55
shr ecx, 8
mov esi, 0xff
test ecx, ecx
movzx eax, al
cmove ecx, edx
test eax, eax
mov dword [ebp - 0x34], ecx
mov ecx, 0xaa
cmove eax, ecx
xor ecx, ecx
mov dword [ebp - 0x38], eax
nop dword [eax]
xor edx, edx
mov eax, ecx
div esi
inc dl
mov byte [edi + ecx], dl
inc ecx
cmp ecx, 0x100
jb 0x10012550
mov ecx, dword [ebp + 0xc]
xor esi, esi
mov edx, dword [ebp - 0x38]
nop dword [eax]
cmp dword [ebp + 8], 0
je 0x10012599
test ecx, ecx
je 0x10012599
xor edx, edx
mov eax, esi
div ecx
mov ecx, dword [ebp + 8]
movzx eax, byte [edi + esi]
movzx ecx, byte [edx + ecx]
mov edx, dword [ebp - 0x38]
imul ecx, eax
add cl, byte [ebp - 0x38]
mov byte [edi + esi], cl
jmp 0x100125af
movzx eax, byte [edi + esi]
movzx ecx, dl
imul ecx, eax
movzx eax, cl
imul eax, eax, 0xcc
mov byte [edi + esi], al
mov ecx, dword [ebp + 0xc]
inc esi
cmp esi, 0x100
jb 0x10012570
xor esi, esi
nop dword [eax]
cmp byte [edi + esi], 0
jne 0x100125e7
lea eax, [ebp - 0x30]
push eax
call fcn.100c9eb3
imul eax, eax, 0x33
add esp, 4
add eax, 0x22
and eax, 0x8000007f
jns 0x100125e4
dec eax
or eax, 0xffffff80
inc eax
mov byte [edi + esi], al
inc esi
cmp esi, 0x100
jb 0x100125c0
xor esi, esi
add edi, 0xff
mov dword [ebp - 0x38], edi
nop dword [eax + eax]
mov eax, 0xaaaaaaab
mov ecx, esi
mul esi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
cmp ecx, 1
jne 0x10012622
mov edx, dword [ebp - 0x3c]
mov al, byte [edi]
mov cl, byte [edx + esi]
mov byte [edx + esi], al
mov byte [edi], cl
inc esi
dec edi
cmp esi, 0x100
jb 0x10012600
mov edx, dword [ebp - 0x34]
xor esi, esi
cmp dword [ebp + 8], 0
je 0x10012660
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x10012660
xor edx, edx
mov edi, dword [ebp - 0x3c]
mov eax, esi
div ecx
mov ecx, dword [ebp + 8]
movzx eax, byte [edi + esi]
movzx ecx, byte [edx + ecx]
mov edx, dword [ebp - 0x34]
imul ecx, eax
add cl, byte [ebp - 0x34]
mov byte [edi + esi], cl
jmp 0x10012679
mov edi, dword [ebp - 0x3c]
movzx ecx, dl
movzx eax, byte [edi + esi]
imul ecx, eax
movzx eax, cl
imul eax, eax, 0x99
mov byte [edi + esi], al
inc esi
cmp esi, 0x100
jb 0x10012631
xor eax, eax
mov dword [ebp - 0x3c], eax
cmp byte [edi + eax], 0
lea esi, [edi + eax]
jne 0x100126b8
lea eax, [ebp - 0x30]
push eax
call fcn.100c9eb3
mov ecx, dword [ebp - 0x3c]
add esp, 4
movzx eax, al
movzx ecx, cl
imul eax, ecx
movzx eax, al
imul eax, eax, 0xe6
and al, 0x7f
mov byte [esi], al
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp eax, 0x100
jb 0x10012687
xor esi, esi
mov eax, 0xcccccccd
mov ecx, esi
mul esi
shr edx, 2
lea eax, [edx + edx*4]
mov edx, dword [ebp - 0x38]
sub ecx, eax
cmp ecx, 3
jne 0x100126e8
mov al, byte [edx]
mov cl, byte [edi + esi]
mov byte [edi + esi], al
mov byte [edx], cl
inc esi
dec edx
mov dword [ebp - 0x38], edx
cmp esi, 0x100
jb 0x100126c5
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
call fcn.10013000
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push dword [ebp - 0x3c]
push edi
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.10013130
lea edx, [edi + 1]
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], edx
mov esi, dword [ebp - 0x48]
mov ecx, esi
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x1001277d
mov dl, byte [edx]
cmp byte [eax + 0xe], dl
jae 0x1001274a
mov eax, dword [eax + 8]
jmp 0x1001274e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x10012740
cmp ecx, esi
je 0x1001277a
cmp dl, byte [ecx + 0xe]
jb 0x1001277a
mov ecx, dword [ebp - 0x38]
movzx eax, dl
mov edx, dword [ebp - 0x34]
movzx ecx, byte [edi + ecx - 1]
imul ecx, eax
movzx eax, cl
imul eax, eax, 0x17
add al, 0xb
mov byte [edx], al
jmp 0x1001277d
mov edx, dword [ebp - 0x34]
mov eax, dword [esi + 4]
mov ecx, esi
cmp byte [eax + 0xd], 0
jne 0x100127cb
mov dl, byte [edx]
nop word [eax + eax]
cmp byte [eax + 0xe], dl
jae 0x1001279a
mov eax, dword [eax + 8]
jmp 0x1001279e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x10012790
cmp ecx, esi
je 0x100127cb
cmp dl, byte [ecx + 0xe]
jb 0x100127cb
mov ecx, dword [ebp - 0x38]
movzx eax, dl
mov edx, dword [ebp - 0x34]
movzx ecx, byte [edi + ecx - 1]
imul ecx, eax
mov al, cl
shl al, 5
sub al, cl
add al, 0xd
mov byte [edx], al
jmp 0x100127ce
mov edx, dword [ebp - 0x34]
mov eax, dword [esi + 4]
mov ecx, esi
cmp byte [eax + 0xd], 0
jne 0x1001280c
mov dl, byte [edx]
nop dword [eax + eax]
cmp byte [eax + 0xe], dl
jae 0x100127ea
mov eax, dword [eax + 8]
jmp 0x100127ee
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x100127e0
cmp ecx, esi
je 0x1001280c
cmp dl, byte [ecx + 0xe]
jb 0x1001280c
movzx eax, dl
mov edx, dword [ebp - 0x34]
imul eax, eax, 0x43
add al, 0x53
mov byte [edx], al
jmp 0x1001280f
mov edx, dword [ebp - 0x34]
mov eax, dword [esi + 4]
mov ecx, esi
cmp byte [eax + 0xd], 0
jne 0x10012853
mov dl, byte [edx]
nop dword [eax]
cmp byte [eax + 0xe], dl
jae 0x1001282a
mov eax, dword [eax + 8]
jmp 0x1001282e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x10012820
cmp ecx, esi
je 0x10012853
cmp dl, byte [ecx + 0xe]
jb 0x10012853
mov ecx, dword [ebp - 0x38]
movzx eax, dl
mov edx, dword [ebp - 0x34]
imul eax, eax, 0xb
add al, 0x35
add al, byte [edi + ecx - 1]
mov byte [edx], al
jmp 0x10012856
mov edx, dword [ebp - 0x34]
push dword [ebp - 0x3c]
lea eax, [ebp - 0x40]
push edx
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.10013130
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
inc eax
inc edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
cmp eax, 0x100
jb 0x10012730
xor eax, eax
mov dword [ebp - 0x38], eax
mov cl, byte [edi + eax]
lea esi, [edi + eax]
test cl, cl
jne 0x100128da
lea eax, [ebp - 0x30]
push eax
call fcn.100c9eb3
mov ecx, dword [ebp - 0x38]
add esp, 4
movzx ecx, cl
movzx eax, al
imul eax, ecx
mov cl, al
shl cl, 3
sub cl, al
mov eax, dword [ebp - 0x38]
mov byte [esi], cl
test cl, cl
jne 0x100128da
cmp dword [ebp + 8], 0
je 0x100128d4
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x100128d4
xor edx, edx
div ecx
mov ecx, dword [ebp + 8]
mov al, byte [edx + ecx]
mov byte [esi], al
test al, al
jne 0x100128d7
mov byte [esi], 0x96
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp eax, 0x100
jb 0x10012885
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov dword [ebp - 0x3c], ecx
mov edi, dword [eax + 4]
mov esi, edi
cmp byte [edi + 0xd], 0
jne 0x10012926
nop
push dword [esi + 8]
lea ecx, [ebp - 0x48]
call fcn.10013020
mov esi, dword [esi]
push 0x10
push edi
call fcn.100ba418
add esp, 8
mov edi, esi
cmp byte [esi + 0xd], 0
je 0x10012900
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x48]
push 0x10
mov dword [eax], ecx
mov eax, dword [ebp - 0x48]
mov dword [eax + 8], ecx
push dword [ebp - 0x48]
mov dword [ebp - 0x44], 0
call fcn.100ba418
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ba074
mov esp, ebp
pop ebp
ret