Function at 0x100b6090
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
mov ebx, edx
mov dword [ebp - 0x14], ecx
push esi
push edi
mov dword [ebp - 0x5c], ebx
cmp ebx, dword [ebp + 0x18]
je 0x100b60b3
push 0x80070057
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::Throw_long_int_]
mov edx, dword [ebp + 0x20]
mov esi, dword [edx + 0x10]
mov eax, esi
mov edi, dword [edx + 0xc]
imul eax, edi
imul eax, dword [edx + 0x18]
cmp ebx, eax
je 0x100b60d4
push 0x80070057
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::Throw_long_int_]
mov edx, dword [edx]
mov eax, edi
shr eax, 1
mov dword [ebp - 0x2c], eax
mov eax, esi
shr eax, 1
mov dword [ebp - 0x34], eax
lea esi, [edx - 1]
mov eax, dword [ebp + 0x1c]
mov ebx, dword [eax + 8]
mov eax, 1
lea ecx, [ebx - 1]
shl eax, cl
add esi, eax
shr esi, cl
mov dword [ebp - 0x20], esi
cmp esi, 1
jae 0x100b610a
mov dword [ebp - 0x20], 1
mov ecx, dword [ebp + 0x20]
mov ecx, dword [ecx + 4]
dec ecx
add eax, ecx
lea ecx, [ebx - 1]
shr eax, cl
mov dword [ebp - 0x30], eax
cmp eax, 1
jae 0x100b6127
mov dword [ebp - 0x30], 1
mov ecx, ebx
dec edx
mov eax, 1
shl eax, cl
mov dword [ebp - 0x50], eax
add eax, edx
shr eax, cl
xor edx, edx
dec eax
add eax, edi
div edi
mov edx, eax
mov dword [ebp - 0x3c], eax
cmp edx, 1
jae 0x100b6151
mov edx, 1
mov dword [ebp - 0x3c], edx
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ecx]
mov ecx, ebx
inc eax
cmp eax, edx
mov dword [ebp - 0x54], eax
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x50]
setae byte [ebp - 3]
dec eax
add eax, dword [edx + 4]
mov esi, dword [edx + 0x10]
xor edx, edx
shr eax, cl
dec eax
add eax, esi
div esi
mov ecx, eax
mov dword [ebp - 0x40], eax
cmp ecx, 1
jae 0x100b618a
mov ecx, 1
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + 4]
inc eax
cmp eax, ecx
mov dword [ebp - 0x58], eax
setae byte [ebp - 4]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
test edi, edi
je 0x100b6710
mov ecx, dword [0x101cd9dc]
mov eax, dword fs:[0x2c]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x20]
nop
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x24], ecx
test ebx, ebx
jne 0x100b6205
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [ebp - 0x3c]
jb 0x100b61ff
mov ecx, dword [edx + 8]
mov edx, dword [eax]
mov eax, 1
shl eax, cl
dec eax
add eax, edx
shr eax, cl
cmp eax, 1
jae 0x100b61f0
mov eax, 1
xor edx, edx
div edi
cmp edx, dword [ebp - 0x2c]
ja 0x100b61ff
mov byte [ebp - 2], 1
jmp 0x100b620b
mov byte [ebp - 2], 0
jmp 0x100b620b
mov al, byte [ebp - 3]
mov byte [ebp - 2], al
mov eax, dword [ebp + 0x20]
xor edi, edi
mov dword [ebp - 0x28], edi
test esi, esi
je 0x100b66fa
jmp 0x100b6220
test edi, edi
jne 0x100b6260
mov ecx, dword [ebp - 0x58]
cmp ecx, dword [ebp - 0x40]
jb 0x100b625a
mov edx, dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp + 0x1c]
mov ecx, dword [ecx + 8]
shl eax, cl
dec eax
add eax, edx
shr eax, cl
cmp eax, 1
jae 0x100b624b
mov eax, 1
xor edx, edx
div esi
cmp edx, dword [ebp - 0x34]
ja 0x100b625a
mov byte [ebp - 1], 1
jmp 0x100b6266
mov byte [ebp - 1], 0
jmp 0x100b6266
mov al, byte [ebp - 4]
mov byte [ebp - 1], al
test ebx, ebx
jne 0x100b6278
test edi, edi
jne 0x100b6273
mov ebx, dword [ebp + 8]
jmp 0x100b6282
mov ebx, dword [ebp + 0x10]
jmp 0x100b6282
mov ebx, dword [ebp + 0xc]
test edi, edi
je 0x100b6282
mov ebx, dword [ebp + 0x14]
cmp byte [ebp - 2], 0
mov esi, dword [ebp + 0x20]
mov dword [ebp - 8], ebx
je 0x100b62c5
mov eax, dword [ebp + 0x1c]
mov edx, dword [esi]
dec edx
mov ecx, dword [eax + 8]
mov eax, 1
shl eax, cl
add eax, edx
shr eax, cl
cmp eax, 1
jae 0x100b62ac
mov eax, 1
dec eax
xor edx, edx
div dword [ebp - 0x2c]
test byte [ebp - 0x20], 1
lea edi, [edx + 1]
mov dword [ebp - 0x10], edi
je 0x100b62c8
mov edi, edx
mov dword [ebp - 0x10], edi
jmp 0x100b62c8
mov edi, dword [ebp - 0x10]
cmp byte [ebp - 1], 0
je 0x100b6304
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 8]
mov eax, 1
shl eax, cl
dec eax
add eax, dword [esi + 4]
shr eax, cl
cmp eax, 1
jae 0x100b62eb
mov eax, 1
dec eax
xor edx, edx
div dword [ebp - 0x34]
test byte [ebp - 0x30], 1
lea ecx, [edx + 1]
mov dword [ebp - 0x24], ecx
je 0x100b6307
mov ecx, edx
mov dword [ebp - 0x24], ecx
jmp 0x100b6307
mov ecx, dword [ebp - 0x24]
test ebx, ebx
je 0x100b66e0
mov esi, dword [esi + 0xc]
test ecx, ecx
je 0x100b6604
lea eax, [edi*8]
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x20]
and eax, 1
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x2c]
sub eax, edi
add eax, eax
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
jmp 0x100b6348
mov edi, dword [ebp - 0x10]
mov eax, ebx
or eax, ecx
test al, 0xf
jne 0x100b647e
call fcn.100bde30
cmp eax, 3
jl 0x100b6388
mov eax, edi
and eax, 0x80000003
jns 0x100b636c
dec eax
or eax, 0xfffffffc
inc eax
jne 0x100b6388
push dword [ebp - 0x5c]
mov edx, dword [ebp - 0x1c]
push dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0xc]
push ebx
push esi
push edi
call fcn.100b3fc0
jmp 0x100b6578
lea ecx, [esi*4]
imul esi, dword [ebp - 0x1c]
lea eax, [ebx + 4]
add eax, ecx
lea edx, [ebx + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
add esi, dword [ebp - 0xc]
mov dword [ebp - 0x38], edx
lea eax, [eax + esi*4]
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
lea eax, [edi + esi]
cmp esi, eax
jge 0x100b6578
mov eax, dword [ebp - 0x4c]
lea ebx, [ecx - 3]
mov ecx, dword [ebp - 0x18]
lea edi, [edx - 3]
add ebx, edx
mov esi, dword [eax]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x48], eax
mov eax, dword [0x101d01f0]
cmp eax, dword [esi + 4]
jg 0x100b6719
jmp 0x100b63ea
mov ecx, dword [ebp - 0x18]
movzx eax, byte [edi + 5]
movzx esi, byte [ebx + 1]
movzx edx, byte [edi + 4]
add esi, eax
movzx eax, byte [edi + 1]
add esi, eax
movzx eax, byte [ecx + 2]
add esi, eax
movzx eax, byte [ecx + 1]
movzx ecx, byte [ebx - 1]
add edx, eax
movzx eax, byte [ebx]
add ebx, 8
add edx, eax
movzx eax, byte [edi]
add edx, eax
movzx eax, byte [edi - 1]
add ecx, eax
add edi, 8
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
add ecx, eax
mov eax, dword [ebp - 0x38]
add dword [ebp - 0x38], 8
movzx eax, byte [eax]
add eax, 2
add eax, ecx
mov ecx, dword [ebp - 0x44]
shr eax, 2
mov byte [ecx], al
lea eax, [edx + 2]
shr eax, 2
mov byte [ecx + 1], al
lea eax, [esi + 2]
mov esi, dword [ebp - 0x60]
shr eax, 2
mov byte [ecx + 2], al
mov al, byte [0x101d01f4]
mov byte [ecx + 3], al
add ecx, 4
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x18]
add ecx, 8
sub dword [ebp - 0x48], 1
mov dword [ebp - 0x18], ecx
jne 0x100b63d4
jmp 0x100b6575
lea ecx, [esi*4]
imul esi, dword [ebp - 0x1c]
lea eax, [ebx + 4]
add eax, ecx
lea edx, [ebx + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
add esi, dword [ebp - 0xc]
mov dword [ebp - 0x38], edx
lea eax, [eax + esi*4]
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x48], eax
lea eax, [edi + esi]
cmp esi, eax
jge 0x100b6578
mov eax, dword [ebp - 0x4c]
lea ebx, [ecx - 3]
mov ecx, dword [ebp - 0x18]
lea edi, [edx - 3]
add ebx, edx
mov esi, dword [eax]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x44], eax
lea ebx, [ebx]
mov eax, dword [0x101d01f0]
cmp eax, dword [esi + 4]
jg 0x100b674c
jmp 0x100b64e6
mov ecx, dword [ebp - 0x18]
movzx eax, byte [edi + 5]
movzx esi, byte [ebx + 1]
movzx edx, byte [edi + 4]
add esi, eax
movzx eax, byte [edi + 1]
add esi, eax
movzx eax, byte [ecx + 2]
add esi, eax
movzx eax, byte [ecx + 1]
movzx ecx, byte [ebx - 1]
add edx, eax
movzx eax, byte [edi]
add edx, eax
movzx eax, byte [ebx]
add edx, eax
add ebx, 8
movzx eax, byte [edi - 1]
add edi, 8
add ecx, eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
add ecx, eax
mov eax, dword [ebp - 0x38]
add dword [ebp - 0x38], 8
movzx eax, byte [eax]
add eax, 2
add eax, ecx
mov ecx, dword [ebp - 0x48]
shr eax, 2
mov byte [ecx], al
lea eax, [edx + 2]
shr eax, 2
mov byte [ecx + 1], al
lea eax, [esi + 2]
mov esi, dword [ebp - 0x60]
shr eax, 2
mov byte [ecx + 2], al
mov al, byte [0x101d01f4]
mov byte [ecx + 3], al
add ecx, 4
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x18]
add ecx, 8
sub dword [ebp - 0x44], 1
mov dword [ebp - 0x18], ecx
jne 0x100b64d0
mov ebx, dword [ebp - 8]
add ebx, dword [ebp - 0x64]
cmp dword [ebp - 0x68], 0
mov dword [ebp - 8], ebx
je 0x100b65e3
cmp byte [ebp - 2], 0
je 0x100b65e3
mov eax, dword [ebp + 0x20]
movzx esi, byte [ebx]
movzx edi, byte [ebx + 1]
movzx ebx, byte [ebx + 2]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx*4]
imul edx, dword [ebp - 0x1c]
movzx eax, byte [ecx]
add esi, eax
movzx eax, byte [ecx + 1]
add edi, eax
movzx eax, byte [ecx + 2]
mov ecx, dword [ebp - 0x14]
add ebx, eax
add edx, dword [ebp - 0x10]
add edx, dword [ebp - 0xc]
lea eax, [esi + 1]
shr eax, 1
mov byte [ecx + edx*4], al
lea eax, [edi + 1]
shr eax, 1
mov byte [ecx + edx*4 + 1], al
lea eax, [ebx + 1]
mov ebx, dword [ebp - 8]
shr eax, 1
mov byte [ecx + edx*4 + 2], al
mov byte [ecx + edx*4 + 3], 0xff
jmp 0x100b65e6
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x20]
inc dword [ebp - 0x1c]
mov esi, dword [eax + 0xc]
mov eax, dword [ebp - 0x6c]
add eax, esi
sub dword [ebp - 0x50], 1
lea ebx, [ebx + eax*4]
mov dword [ebp - 8], ebx
jne 0x100b6345
mov eax, dword [ebp - 0x30]
mov edi, esi
mov cl, byte [ebp - 1]
test al, 1
je 0x100b669f
test cl, cl
je 0x100b669f
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + edx]
cmp edx, eax
jge 0x100b6693
mov eax, dword [ebp - 0x28]
lea edi, [ebx + 2]
add eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x14]
imul eax, esi
mov dword [ebp - 0x50], ecx
add eax, edx
inc ebx
lea ebx, [ebx + eax*4]
movzx eax, byte [edi + 2]
lea edi, [edi + 8]
movzx ecx, byte [edi - 0xa]
lea ebx, [ebx + 4]
movzx edx, byte [edi - 9]
add ecx, eax
movzx eax, byte [edi - 5]
movzx esi, byte [edi - 8]
add edx, eax
movzx eax, byte [edi - 4]
add esi, eax
lea eax, [ecx + 1]
shr eax, 1
mov byte [ebx - 5], al
lea eax, [edx + 1]
shr eax, 1
mov byte [ebx - 4], al
lea eax, [esi + 1]
shr eax, 1
sub dword [ebp - 0x50], 1
mov byte [ebx - 3], al
mov byte [ebx - 2], 0xff
jne 0x100b6641
mov eax, dword [ebp + 0x20]
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov edi, dword [eax + 0xc]
mov eax, dword [ebp - 0x30]
lea ebx, [ebx + ecx*8]
mov cl, byte [ebp - 1]
mov dword [ebp - 8], ebx
and eax, dword [ebp - 0x20]
test al, 1
je 0x100b66e0
cmp byte [ebp - 2], 0
je 0x100b66e0
test cl, cl
je 0x100b66e0
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x14]
movzx ebx, byte [ebx]
movzx edx, byte [eax + 1]
movzx ecx, byte [eax + 2]
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x24]
imul eax, edi
add eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
mov byte [esi + eax*4], bl
mov byte [esi + eax*4 + 1], dl
mov byte [esi + eax*4 + 2], cl
mov byte [esi + eax*4 + 3], 0xff
mov eax, dword [ebp + 0x20]
mov edi, dword [ebp - 0x28]
add edi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0xc]
mov esi, dword [eax + 0x10]
mov dword [ebp - 0x28], edi
cmp edi, esi
jb 0x100b6220
mov ecx, dword [ebp - 0x2c]
add ebx, ecx
mov edi, dword [eax + 0xc]
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0xc], ebx
cmp ebx, edi
jb 0x100b61c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push 0x101d01f0
call fcn.101b6895
add esp, 4
cmp dword [0x101d01f0], 0xffffffff
jne 0x100b63e7
push 0x101d01f0
mov byte [0x101d01f4], 0xff
call fcn.101b6854
add esp, 4
jmp 0x100b63e7
push 0x101d01f0
call fcn.101b6895
add esp, 4
cmp dword [0x101d01f0], 0xffffffff
jne 0x100b64e3
push 0x101d01f0
mov byte [0x101d01f4], 0xff
call fcn.101b6854
add esp, 4
jmp 0x100b64e3