Function at 0x100bf7a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x574
mov eax, dword [0x101620c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x560], esi
push 1
push 0
mov dword [ebp - 0x52c], edi
mov ecx, dword [edi + 0x10]
call fcn.100c0c10
mov ebx, dword [ebp + 0xc]
mov edx, esi
mov ecx, dword [edi + 0xc]
push ebx
call fcn.10004580
mov ecx, dword [edi + 0xc]
push 0x18
push eax
mov dword [ecx + eax*4], ebx
mov ecx, dword [edi + 0x10]
call fcn.100c0c10
xor eax, eax
xor edi, edi
cmp eax, 0x100
jae 0x100c0184
mov byte [ebp + eax - 0x11c], 0
inc eax
cmp eax, 0x100
jb 0x100bf801
xor eax, eax
cmp eax, 0x10
jae 0x100c0184
mov byte [ebp + eax - 0x1c], 0
inc eax
cmp eax, 0x10
jb 0x100bf81c
xor ecx, ecx
test ebx, ebx
je 0x100bf841
nop dword [eax]
movzx eax, byte [esi + ecx]
inc ecx
mov byte [ebp + eax - 0x11c], 1
cmp ecx, ebx
jb 0x100bf830
xor ecx, ecx
cmp byte [ebp + ecx - 0x11c], 0
je 0x100bf85f
mov eax, ecx
mov byte [ebp + edi - 0x524], cl
shr eax, 4
inc edi
mov byte [ebp + eax - 0x1c], 1
inc ecx
cmp ecx, 0x100
jb 0x100bf843
mov ebx, dword [ebp - 0x52c]
xor esi, esi
movzx eax, byte [ebp + esi - 0x1c]
mov ecx, dword [ebx + 0x10]
push 1
push eax
call fcn.100c0c10
inc esi
cmp esi, 0x10
jb 0x100bf870
xor esi, esi
nop dword [eax + eax]
mov eax, esi
shr eax, 4
cmp byte [ebp + eax - 0x1c], 0
je 0x100bf8af
movzx eax, byte [ebp + esi - 0x11c]
mov ecx, dword [ebx + 0x10]
push 1
push eax
call fcn.100c0c10
inc esi
cmp esi, 0x100
jb 0x100bf890
lea eax, [edi + 2]
mov ecx, 0x102
mov dword [ebp - 0x550], eax
lea edi, [ebp - 0x424]
mov eax, dword [ebx + 4]
xor esi, esi
mov dword [ebp - 0x540], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0xc]
xor edx, edx
mov bh, byte [ebp - 0x524]
mov dword [ebp - 0x548], eax
mov dword [ebp - 0x558], ecx
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 0x560]
mov bl, byte [eax + ecx - 1]
xor ecx, ecx
cmp bh, bl
je 0x100bf90f
inc ecx
cmp byte [ebp + ecx - 0x524], bl
jne 0x100bf905
mov dword [ebp - 0x55c], ecx
cmp ecx, 8
jb 0x100bf96f
lea edi, [ebp - 0x524]
movzx eax, byte [edi + ecx - 1]
mov byte [edi + ecx], al
movzx eax, byte [edi + ecx - 2]
mov byte [edi + ecx - 1], al
movzx eax, byte [edi + ecx - 3]
mov byte [edi + ecx - 2], al
movzx eax, byte [edi + ecx - 4]
mov byte [edi + ecx - 3], al
movzx eax, byte [edi + ecx - 5]
mov byte [edi + ecx - 4], al
movzx eax, byte [edi + ecx - 6]
mov byte [edi + ecx - 5], al
movzx eax, byte [edi + ecx - 7]
mov byte [edi + ecx - 6], al
movzx eax, byte [edi + ecx - 8]
mov byte [edi + ecx - 7], al
sub ecx, 8
cmp ecx, 8
jae 0x100bf920
test ecx, ecx
je 0x100bf993
nop dword [eax]
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x525]
mov byte [ebp + ecx - 0x524], al
sub ecx, 1
jne 0x100bf980
mov ecx, dword [ebp - 0x55c]
mov bh, bl
mov byte [ebp - 0x524], bh
test ecx, ecx
jne 0x100bf9a8
inc edx
jmp 0x100bf9fa
test edx, edx
je 0x100bf9cb
mov edi, dword [ebp - 0x540]
dec edx
mov al, dl
and al, 1
mov byte [esi + edi], al
mov eax, edx
and eax, 1
inc esi
inc dword [ebp + eax*4 - 0x424]
shr edx, 1
jne 0x100bf9b2
mov edi, dword [ebp - 0x540]
add edi, esi
inc esi
cmp ecx, 0xfe
jb 0x100bf9ee
mov byte [edi], 0xff
lea eax, [ecx + 2]
mov edi, dword [ebp - 0x540]
mov byte [esi + edi], al
inc esi
jmp 0x100bf9f3
lea eax, [ecx + 1]
mov byte [edi], al
inc dword [ebp + ecx*4 - 0x420]
mov eax, dword [ebp - 0x548]
mov ecx, dword [ebp - 0x558]
inc eax
mov dword [ebp - 0x548], eax
cmp eax, dword [ebp + 0xc]
jb 0x100bf8f2
mov ecx, dword [ebp - 0x540]
test edx, edx
je 0x100bfa39
dec edx
mov al, dl
and al, 1
mov byte [esi + ecx], al
mov eax, edx
and eax, 1
inc esi
inc dword [ebp + eax*4 - 0x424]
shr edx, 1
jne 0x100bfa20
mov edx, dword [ebp - 0x550]
lea eax, [esi + 1]
mov dword [ebp - 0x554], eax
cmp edx, 0x100
jae 0x100bfa58
lea eax, [edx - 1]
mov byte [esi + ecx], al
jmp 0x100bfa66
mov byte [esi + ecx], 0xff
mov byte [eax + ecx], dl
inc eax
mov dword [ebp - 0x554], eax
inc dword [ebp + edx*4 - 0x428]
xorps xmm1, xmm1
xor eax, eax
xorps xmm2, xmm2
nop word [eax + eax]
movups xmm0, xmmword [ebp + eax*4 - 0x424]
paddd xmm1, xmm0
movups xmm0, xmmword [ebp + eax*4 - 0x414]
add eax, 8
paddd xmm2, xmm0
cmp eax, 0x100
jb 0x100bfa80
paddd xmm1, xmm2
xor ecx, ecx
movaps xmm0, xmm1
xor edx, edx
psrldq xmm0, 8
paddd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd ebx, xmm1
mov dword [ebp - 0x54c], ebx
cmp eax, 0x102
jae 0x100bfb11
mov esi, 0x102
sub esi, eax
cmp esi, 2
jb 0x100bfaf8
nop
add ecx, dword [ebp + eax*4 - 0x424]
add edx, dword [ebp + eax*4 - 0x420]
add eax, 2
cmp eax, 0x101
jb 0x100bfae0
cmp eax, 0x102
jae 0x100bfb06
add ebx, dword [ebp + eax*4 - 0x424]
lea eax, [edx + ecx]
add ebx, eax
mov dword [ebp - 0x54c], ebx
mov edi, dword [ebp - 0x52c]
mov ecx, dword [ebp - 0x54c]
add ecx, 0x31
mov dword [ebp - 0x560], 2
mov dword [ebp - 0x55c], 0xffffffff
mov esi, dword [edi + 0x10]
mov bl, byte [edi + 0x8cdc]
mov dword [ebp - 0x548], 2
mov eax, dword [esi]
mov bh, byte [esi + 8]
mov byte [ebp - 0x542], bh
lea eax, [eax*8 + 8]
sub eax, dword [esi + 4]
mov dword [ebp - 0x558], eax
mov eax, 0x51eb851f
mul ecx
mov ecx, dword [ebp - 0x558]
mov eax, edx
mov edx, 2
shr eax, 4
mov dword [ebp - 0x570], eax
lea eax, [edi + 0x620]
mov dword [ebp - 0x56c], eax
lea eax, [edi + 0x14]
mov dword [ebp - 0x564], eax
lea eax, [edi + 0x3680]
mov dword [ebp - 0x568], eax
test bl, bl
je 0x100bfbd4
mov eax, ecx
shr eax, 3
mov dword [esi], eax
mov eax, ecx
and eax, 7
mov ecx, 8
sub ecx, eax
cmp edx, 6
mov dword [esi + 4], ecx
mov eax, dword [edi + 0x10]
mov byte [eax + 8], bh
mov ebx, edx
cmova ebx, dword [ebp - 0x560]
mov dword [eax + 4], ecx
mov esi, dword [edi + 0x10]
jmp 0x100bfc15
mov eax, dword [ebp - 0x54c]
cmp eax, 0xc8
jae 0x100bfbe8
mov ebx, 2
jmp 0x100bfc15
cmp eax, 0x258
jae 0x100bfbf6
mov ebx, 3
jmp 0x100bfc15
cmp eax, 0x4b0
jae 0x100bfc04
mov ebx, 4
jmp 0x100bfc15
mov ebx, 5
cmp eax, 0x960
jb 0x100bfc15
mov ebx, 6
push 3
push ebx
mov ecx, esi
mov dword [ebp - 0x528], ebx
call fcn.100c0c10
mov ecx, dword [edi + 0x10]
push 0xf
push dword [ebp - 0x570]
call fcn.100c0c10
mov edx, dword [ebp - 0x52c]
xor edi, edi
mov ecx, dword [ebp - 0x54c]
add edx, 0xffffff12
imul eax, ebx, 0x102
mov dword [ebp - 0x530], ecx
mov dword [ebp - 0x538], ebx
add eax, edx
mov dword [ebp - 0x534], eax
mov eax, ecx
xor edx, edx
div ebx
xor esi, esi
mov ecx, edi
test eax, eax
je 0x100bfc7d
add esi, dword [ebp + ecx*4 - 0x424]
inc ecx
cmp esi, eax
jb 0x100bfc71
lea eax, [edi + 1]
cmp ecx, eax
jbe 0x100bfca1
mov eax, dword [ebp - 0x528]
cmp ebx, eax
je 0x100bfca1
cmp ebx, 1
je 0x100bfca1
sub eax, ebx
test al, 1
je 0x100bfca1
dec ecx
sub esi, dword [ebp + ecx*4 - 0x424]
mov ebx, dword [ebp - 0x534]
xor eax, eax
nop dword [eax]
cmp eax, edi
jb 0x100bfcbc
cmp eax, ecx
jae 0x100bfcbc
xor dl, dl
jmp 0x100bfcbe
mov dl, 1
mov byte [ebx + eax], dl
inc eax
cmp eax, dword [ebp - 0x550]
jb 0x100bfcb0
mov ebx, dword [ebp - 0x538]
mov edi, ecx
mov ecx, dword [ebp - 0x530]
dec ebx
sub dword [ebp - 0x534], 0x102
sub ecx, esi
mov dword [ebp - 0x530], ecx
mov dword [ebp - 0x538], ebx
test ebx, ebx
jne 0x100bfc63
mov dword [ebp - 0x53c], 4
mov edi, dword [ebp - 0x56c]
xor esi, esi
nop dword [eax + eax]
push 0x408
push 0
push edi
call fcn.100e3610
inc esi
add esp, 0xc
add edi, 0x408
cmp esi, dword [ebp - 0x528]
jb 0x100bfd10
mov eax, dword [ebp - 0x568]
xor edi, edi
mov dword [ebp - 0x534], eax
nop dword [eax]
mov eax, dword [ebp - 0x540]
xor esi, esi
mov edx, dword [ebp - 0x554]
nop
movzx ecx, byte [edi + eax]
inc edi
cmp ecx, 0xff
jb 0x100bfd6a
movzx eax, byte [edi + eax]
add ecx, eax
mov eax, dword [ebp - 0x540]
inc edi
mov dword [ebp + esi*4 - 0x4ec], ecx
inc esi
cmp esi, 0x32
jae 0x100bfd7b
cmp edi, edx
jb 0x100bfd50
mov ebx, dword [ebp - 0x564]
mov dword [ebp - 0x538], edi
or edi, 0xffffffff
mov dword [ebp - 0x530], 0
xor edx, edx
xor eax, eax
nop dword [eax + eax]
mov ecx, dword [ebp + eax*4 - 0x4ec]
inc eax
movzx ecx, byte [ecx + ebx]
add edx, ecx
cmp eax, esi
jb 0x100bfda0
mov ecx, dword [ebp - 0x530]
mov eax, dword [ebp - 0x534]
cmp edx, edi
jae 0x100bfdca
mov byte [eax], cl
mov edi, edx
mov al, cl
jmp 0x100bfdcc
mov al, byte [eax]
inc ecx
add ebx, 0x102
mov dword [ebp - 0x530], ecx
cmp ecx, dword [ebp - 0x528]
jb 0x100bfd94
inc dword [ebp - 0x534]
mov edi, dword [ebp - 0x538]
movzx eax, al
imul edx, eax, 0x408
add edx, dword [ebp - 0x52c]
xor ecx, ecx
nop
mov eax, dword [ebp + ecx*4 - 0x4ec]
inc ecx
inc dword [edx + eax*4 + 0x620]
cmp ecx, esi
jb 0x100bfe00
cmp edi, dword [ebp - 0x554]
jb 0x100bfd40
mov ebx, dword [ebp - 0x564]
xor edi, edi
mov esi, dword [ebp - 0x56c]
nop dword [eax]
mov ecx, dword [ebp - 0x550]
xor eax, eax
cmp dword [esi + eax*4], 0
jne 0x100bfe45
mov dword [esi + eax*4], 1
inc eax
cmp eax, ecx
jb 0x100bfe38
push 0x10
push 0x102
push ebx
lea edx, [esi + 0x1830]
mov ecx, esi
call fcn.100050d0
mov ecx, dword [ebp - 0x528]
inc edi
add esi, 0x408
add ebx, 0x102
cmp edi, ecx
jb 0x100bfe30
sub dword [ebp - 0x53c], 1
jne 0x100bfd03
xor eax, eax
mov byte [ebp + eax - 0xc], al
inc eax
cmp eax, ecx
jb 0x100bfe85
mov al, byte [ebp - 0xc]
xor edi, edi
mov dword [ebp - 0x53c], edi
nop dword [eax]
mov ecx, dword [ebp - 0x568]
xor esi, esi
mov bl, byte [ecx + edi]
cmp al, bl
je 0x100bfece
mov edi, dword [ebp - 0x52c]
mov ecx, dword [edi + 0x10]
push 1
push 1
call fcn.100c0c10
inc esi
cmp byte [ebp + esi - 0xc], bl
jne 0x100bfeb5
mov edi, dword [ebp - 0x53c]
mov eax, dword [ebp - 0x52c]
push 1
push 0
mov ecx, dword [eax + 0x10]
call fcn.100c0c10
test esi, esi
je 0x100bfef1
mov al, byte [ebp + esi - 0xd]
mov byte [ebp + esi - 0xc], al
sub esi, 1
jne 0x100bfee4
inc edi
mov al, bl
mov byte [ebp - 0xc], al
mov dword [ebp - 0x53c], edi
cmp edi, dword [ebp - 0x570]
jb 0x100bfea0
mov edi, dword [ebp - 0x564]
mov dword [ebp - 0x538], 0
mov dword [ebp - 0x530], edi
nop dword [eax + eax]
mov eax, dword [ebp - 0x52c]
movzx esi, byte [edi]
push 5
push esi
mov ecx, dword [eax + 0x10]
call fcn.100c0c10
xor eax, eax
mov dword [ebp - 0x53c], eax
nop dword [eax]
movzx ebx, byte [edi + eax]
cmp esi, ebx
je 0x100bff8d
nop dword [eax + eax]
mov eax, dword [ebp - 0x52c]
push 1
push 1
mov ecx, dword [eax + 0x10]
call fcn.100c0c10
cmp esi, ebx
lea eax, [esi - 1]
lea edi, [esi + 1]
cmovae edi, eax
sbb eax, eax
inc eax
push 1
push eax
mov eax, dword [ebp - 0x52c]
mov ecx, dword [eax + 0x10]
call fcn.100c0c10
mov esi, edi
cmp edi, ebx
jne 0x100bff50
mov edi, dword [ebp - 0x530]
mov eax, dword [ebp - 0x52c]
push 1
push 0
mov ecx, dword [eax + 0x10]
call fcn.100c0c10
mov eax, dword [ebp - 0x53c]
inc eax
mov dword [ebp - 0x53c], eax
cmp eax, dword [ebp - 0x550]
jb 0x100bff40
mov ebx, dword [ebp - 0x538]
add edi, 0x102
inc ebx
mov dword [ebp - 0x530], edi
mov dword [ebp - 0x538], ebx
cmp ebx, dword [ebp - 0x528]
jb 0x100bff20
mov eax, dword [ebp - 0x568]
xor esi, esi
xor edi, edi
mov dword [ebp - 0x53c], esi
xor ebx, ebx
mov dword [ebp - 0x538], edi
xor ecx, ecx
mov dword [ebp - 0x528], eax
nop dword [eax]
mov edx, dword [ebp - 0x540]
movzx edx, byte [ecx + edx]
inc ecx
mov dword [ebp - 0x534], ecx
cmp edx, 0xff
jb 0x100c0032
mov eax, dword [ebp - 0x540]
movzx eax, byte [ecx + eax]
add edx, eax
mov eax, dword [ebp - 0x528]
inc ecx
mov dword [ebp - 0x534], ecx
test ebx, ebx
jne 0x100c0076
movzx ecx, byte [eax]
mov ebx, 0x32
mov edi, dword [ebp - 0x52c]
inc eax
mov dword [ebp - 0x528], eax
imul eax, ecx, 0x102
lea esi, [edi + 0x14]
add edi, 0x1e50
add esi, eax
imul eax, ecx, 0x408
mov ecx, dword [ebp - 0x534]
mov dword [ebp - 0x53c], esi
add edi, eax
mov dword [ebp - 0x538], edi
mov eax, dword [edi + edx*4]
dec ebx
mov dword [ebp - 0x574], ebx
movzx ebx, byte [edx + esi]
mov edx, dword [ebp - 0x52c]
mov dword [ebp - 0x530], eax
mov edi, dword [edx + 0x10]
test ebx, ebx
je 0x100c00f7
mov esi, dword [edi + 4]
cmp ebx, esi
mov edx, esi
cmovb edx, ebx
sub ebx, edx
mov ecx, ebx
mov ch, byte [edi + 8]
shr eax, cl
mov cl, dl
shl ch, cl
or ch, al
mov byte [ebp - 0x541], ch
mov byte [edi + 8], ch
mov ecx, ebx
shl eax, cl
sub dword [ebp - 0x530], eax
sub esi, edx
mov dword [edi + 4], esi
jne 0x100c00e1
mov eax, dword [edi]
mov ecx, dword [edi + 0xc]
mov dl, byte [ebp - 0x541]
mov byte [ecx + eax], dl
inc dword [edi]
mov dword [edi + 4], 8
mov eax, dword [ebp - 0x530]
test ebx, ebx
jne 0x100c0097
mov ecx, dword [ebp - 0x534]
mov esi, dword [ebp - 0x53c]
mov ebx, dword [ebp - 0x574]
mov eax, dword [ebp - 0x528]
mov edi, dword [ebp - 0x538]
cmp ecx, dword [ebp - 0x554]
jb 0x100c0000
mov edi, dword [ebp - 0x52c]
mov bl, byte [edi + 0x8cdc]
test bl, bl
je 0x100c0171
mov esi, dword [edi + 0x10]
mov ecx, dword [ebp - 0x558]
mov edx, dword [ebp - 0x548]
mov eax, dword [esi]
lea eax, [eax*8 + 8]
sub eax, dword [esi + 4]
sub eax, ecx
cmp eax, dword [ebp - 0x55c]
ja 0x100c015b
cmp edx, 6
je 0x100c0171
mov dword [ebp - 0x55c], eax
mov dword [ebp - 0x560], edx
mov bh, byte [ebp - 0x542]
inc edx
mov dword [ebp - 0x548], edx
cmp edx, 7
jbe 0x100bfba0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e0010
mov esp, ebp
pop ebp
ret 8
call fcn.100e0170
int3