Function at 0x100c1180
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x101a0040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x44], edx
push edi
push str.opcodes
push 0x3fffffff
mov ebx, dword [esi + 0x30]
mov eax, dword [esi + 4]
mov dword [ebp - 0x40], eax
push 4
mov edi, dword [ebx]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x38], ebx
mov edx, dword [edi + 0x34]
lea eax, [edi + 0x14]
mov ecx, dword [ecx + 0x34]
push eax
push dword [ebx + 0x10]
call fcn.100bbfe0
mov dword [edi + 0x34], eax
add esp, 0x14
mov ecx, dword [ebx + 0x10]
mov edx, edi
mov dword [eax + ecx*4], 0x13
mov ecx, ebx
mov eax, dword [ebx + 8]
inc dword [ebx + 0x10]
push dword [eax + 8]
call fcn.100ac040
mov ecx, dword [ebx + 0x10]
add esp, 4
mov edi, dword [ebx]
lea eax, [ecx - 1]
mov edx, dword [edi + 0x34]
push str.opcodes
push 0x3fffffff
mov dword [ebp - 0x4c], eax
lea eax, [edi + 0x14]
push 4
push eax
push ecx
mov ecx, dword [ebx + 8]
mov ecx, dword [ecx + 0x34]
call fcn.100bbfe0
mov dword [edi + 0x34], eax
add esp, 0x14
mov ecx, dword [ebx + 0x10]
mov edx, edi
mov dword [eax + ecx*4], 0
mov ecx, ebx
mov eax, dword [ebx + 8]
inc dword [ebx + 0x10]
push dword [eax + 8]
call fcn.100ac040
mov ecx, dword [ebp - 0x44]
add esp, 4
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
movzx eax, byte [ebx + 0x34]
mov dword [ecx + 0x10], 0xffffffff
mov dword [ecx + 0x14], 0xffffffff
mov dword [ecx], 8
mov dword [ecx + 8], eax
mov edx, dword [ebx]
movzx ecx, byte [ebx + 0x34]
inc ecx
movzx eax, byte [edx + 8]
cmp ecx, eax
jbe 0x100c128f
cmp ecx, 0xff
jae 0x100c17f3
mov byte [edx + 8], cl
inc byte [ebx + 0x34]
cmp dword [esi + 0x10], 0x7b
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0
jne 0x100c1800
cmp dword [esi + 0x20], 0x121
mov eax, dword [esi + 4]
mov dword [esi + 8], eax
jne 0x100c149b
lea edx, [esi + 0x18]
mov ecx, esi
call fcn.100b9e50
mov dword [esi + 0x10], eax
nop dword [eax + eax]
cmp dword [esi + 0x10], 0x7d
je 0x100c14b5
cmp dword [ebp - 0x30], 0
je 0x100c143a
lea edx, [ebp - 0x30]
mov ecx, ebx
call fcn.100ac640
lea edx, [ebp - 0x30]
mov ecx, ebx
call fcn.100ac320
mov edx, dword [ebx]
movzx ecx, byte [ebx + 0x34]
inc ecx
movzx eax, byte [edx + 8]
cmp ecx, eax
jbe 0x100c1326
cmp ecx, 0xff
jae 0x100c17f3
mov byte [edx + 8], cl
inc byte [ebx + 0x34]
lea edx, [ebp - 0x30]
movzx eax, byte [ebx + 0x34]
mov ecx, ebx
dec eax
push eax
call fcn.100acd30
add esp, 4
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0xc], 0x32
jne 0x100c143a
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x10]
mov edx, dword [ebx]
mov dword [ebp - 0x48], edi
mov eax, dword [eax + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], edx
push str.opcodes
push 0x3fffffff
push 4
cmp edi, 0xff
jg 0x100c13bd
mov ecx, dword [ebx + 8]
lea eax, [edx + 0x14]
mov edx, dword [edx + 0x34]
push eax
push dword [ebx + 0x10]
mov ecx, dword [ecx + 0x34]
call fcn.100bbfe0
mov edx, dword [ebp - 0x3c]
add esp, 0x14
shl edi, 0x11
or edi, dword [ebp - 0x34]
shl edi, 7
mov dword [edx + 0x34], eax
or edi, 0x32004e
mov ecx, dword [ebx + 0x10]
mov dword [eax + ecx*4], edi
mov ecx, ebx
mov eax, dword [ebx + 8]
inc dword [ebx + 0x10]
push dword [eax + 8]
call fcn.100ac040
add esp, 4
jmp 0x100c1425
lea ecx, [edx + 0x14]
mov edx, dword [edx + 0x34]
push ecx
mov ecx, dword [ebx + 8]
push dword [ebx + 0x10]
mov ecx, dword [ecx + 0x34]
call fcn.100bbfe0
mov edi, eax
mov ecx, pe_nt_image_headers32
mov eax, dword [ebp - 0x3c]
add esp, 0x14
mov dword [eax + 0x34], edi
mov eax, dword [ebp - 0x48]
cdq
idiv ecx
mov ebx, eax
shl edx, 0x11
mov eax, dword [ebp - 0x38]
or edx, dword [ebp - 0x34]
shl edx, 7
or edx, 0x32804e
mov ecx, dword [eax + 0x10]
mov dword [edi + ecx*4], edx
inc dword [eax + 0x10]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
push dword [eax + 8]
call fcn.100ac040
add esp, 4
mov edx, ebx
mov ebx, dword [ebp - 0x38]
mov ecx, ebx
call fcn.100ac100
mov eax, dword [ebp - 0x34]
inc al
mov byte [ebx + 0x34], al
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov eax, dword [esi + 0x10]
mov ecx, esi
cmp eax, 0x5b
je 0x100c1477
cmp eax, 0x124
je 0x100c1458
lea edx, [ebp - 0x30]
call fcn.100c2c80
inc dword [ebp - 0xc]
jmp 0x100c147f
lea edx, [esi + 0x28]
call fcn.100b9e50
mov dword [esi + 0x20], eax
lea edx, [ebp - 0x30]
mov ecx, esi
cmp eax, 0x3d
je 0x100c147a
call fcn.100c2c80
inc dword [ebp - 0xc]
jmp 0x100c147f
lea edx, [ebp - 0x30]
call fcn.100c0ee0
cmp dword [esi + 0x10], 0x2c
lea edx, [esi + 0x18]
jne 0x100c14af
cmp dword [esi + 0x20], 0x121
mov eax, dword [esi + 4]
mov dword [esi + 8], eax
je 0x100c12ce
movups xmm0, xmmword [esi + 0x20]
mov dword [esi + 0x20], 0x121
movups xmmword [esi + 0x10], xmm0
jmp 0x100c12e0
cmp dword [esi + 0x10], 0x3b
je 0x100c1488
push dword [ebp - 0x40]
mov edx, 0x7d
mov ecx, esi
push 0x7b
call fcn.100bfc50
mov ecx, dword [ebp - 0xc]
add esp, 8
test ecx, ecx
je 0x100c1760
mov esi, dword [ebp - 0x30]
cmp esi, 0x12
je 0x100c1641
cmp esi, 0x13
je 0x100c1641
test esi, esi
je 0x100c1538
lea edx, [ebp - 0x30]
mov ecx, ebx
call fcn.100ac640
lea edx, [ebp - 0x30]
mov ecx, ebx
call fcn.100ac320
mov edx, dword [ebx]
movzx ecx, byte [ebx + 0x34]
inc ecx
movzx eax, byte [edx + 8]
cmp ecx, eax
jbe 0x100c151f
cmp ecx, 0xff
jae 0x100c180c
mov byte [edx + 8], cl
inc byte [ebx + 0x34]
lea edx, [ebp - 0x30]
movzx eax, byte [ebx + 0x34]
mov ecx, ebx
dec eax
push eax
call fcn.100acd30
mov ecx, dword [ebp - 0xc]
add esp, 4
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x10]
mov edx, dword [ebx]
push str.opcodes
mov esi, dword [eax + 8]
xor eax, eax
cmp ecx, 0xffffffff
mov dword [ebp - 0x3c], esi
push 0x3fffffff
cmovne eax, ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], eax
push 4
cmp edi, 0xff
jg 0x100c15c5
mov ecx, dword [ebx + 8]
lea eax, [edx + 0x14]
mov edx, dword [edx + 0x34]
push eax
push dword [ebx + 0x10]
mov ecx, dword [ecx + 0x34]
call fcn.100bbfe0
mov edx, dword [ebp - 0x34]
add esp, 0x14
shl edi, 8
or edi, dword [ebp - 0x38]
shl edi, 9
mov dword [edx + 0x34], eax
or edi, esi
mov ecx, dword [ebx + 0x10]
shl edi, 7
or edi, 0x4e
mov dword [eax + ecx*4], edi
mov ecx, ebx
mov eax, dword [ebx + 8]
inc dword [ebx + 0x10]
push dword [eax + 8]
call fcn.100ac040
mov eax, esi
add esp, 4
inc al
mov byte [ebx + 0x34], al
mov esi, dword [ebp - 0x10]
add esi, dword [ebp - 0xc]
mov dword [ebp - 0x10], esi
jmp 0x100c1763
lea ecx, [edx + 0x14]
mov edx, dword [edx + 0x34]
push ecx
mov ecx, dword [ebx + 8]
push dword [ebx + 0x10]
mov ecx, dword [ecx + 0x34]
call fcn.100bbfe0
mov esi, eax
mov ecx, pe_nt_image_headers32
mov eax, dword [ebp - 0x34]
add esp, 0x14
mov dword [eax + 0x34], esi
mov eax, edi
cdq
idiv ecx
mov ecx, dword [ebx + 0x10]
shl edx, 8
mov edi, eax
or edx, dword [ebp - 0x38]
shl edx, 9
or edx, dword [ebp - 0x3c]
shl edx, 7
or edx, 0x804e
mov dword [esi + ecx*4], edx
mov ecx, ebx
mov eax, dword [ebx + 8]
inc dword [ebx + 0x10]
mov edx, dword [ebp - 0x34]
push dword [eax + 8]
call fcn.100ac040
add esp, 4
mov edx, edi
mov ecx, ebx
call fcn.100ac100
mov eax, dword [ebp - 0x3c]
inc al
mov byte [ebx + 0x34], al
mov esi, dword [ebp - 0x10]
add esi, dword [ebp - 0xc]
mov dword [ebp - 0x10], esi
jmp 0x100c1763
mov eax, dword [ebx]
mov ecx, dword [eax + 0x34]
mov eax, dword [ebp - 0x28]
lea edx, [ecx + eax*4]
cmp esi, 0x12
jne 0x100c165c
mov byte [edx + 3], 0
mov edi, dword [ebx]
mov dword [ebp - 0x34], edi
jmp 0x100c169e
and dword [edx], 0xffffff
mov ecx, dword [edx]
movzx eax, byte [ebx + 0x34]
and ecx, 0xffff807f
shl eax, 7
or eax, ecx
mov dword [edx], eax
mov edi, dword [ebx]
movzx ecx, byte [ebx + 0x34]
inc ecx
mov dword [ebp - 0x34], edi
movzx eax, byte [edi + 8]
cmp ecx, eax
jbe 0x100c169b
cmp ecx, 0xff
jae 0x100c1819
mov byte [edi + 8], cl
mov edi, dword [ebx]
mov dword [ebp - 0x34], edi
inc byte [ebx + 0x34]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0x10]
mov esi, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov ecx, dword [ecx + 0x34]
push str.opcodes
push 0x3fffffff
mov dword [ebp - 0x38], eax
lea eax, [edi + 0x14]
push 4
push eax
push edx
mov edx, dword [edi + 0x34]
mov dword [ebp - 0x40], esi
call fcn.100bbfe0
add esp, 0x14
cmp esi, 0xff
jg 0x100c1706
mov dword [edi + 0x34], eax
mov edx, edi
mov ecx, dword [ebx + 0x10]
shl esi, 0x11
or esi, dword [ebp - 0x38]
shl esi, 7
or esi, 0x4e
mov dword [eax + ecx*4], esi
mov ecx, ebx
mov eax, dword [ebx + 8]
inc dword [ebx + 0x10]
push dword [eax + 8]
call fcn.100ac040
add esp, 4
jmp 0x100c174c
mov esi, eax
mov ecx, pe_nt_image_headers32
mov eax, dword [ebp - 0x40]
cdq
idiv ecx
mov dword [edi + 0x34], esi
mov ecx, dword [ebx + 0x10]
mov edi, eax
shl edx, 0x11
or edx, dword [ebp - 0x38]
shl edx, 7
or edx, 0x804e
mov dword [esi + ecx*4], edx
mov ecx, ebx
mov eax, dword [ebx + 8]
inc dword [ebx + 0x10]
mov edx, dword [ebp - 0x34]
push dword [eax + 8]
call fcn.100ac040
add esp, 4
mov edx, edi
mov ecx, ebx
call fcn.100ac100
mov eax, dword [ebp - 0x38]
inc al
mov byte [ebx + 0x34], al
mov esi, dword [ebp - 0x10]
dec esi
add esi, dword [ebp - 0xc]
mov dword [ebp - 0x10], esi
jmp 0x100c1763
mov esi, dword [ebp - 0x10]
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [eax + 0x34]
lea edi, [eax + ecx*4]
mov eax, dword [ebp - 0x14]
xor ecx, ecx
test eax, eax
je 0x100c1797
dec eax
cmp eax, 0x100
jb 0x100c178d
nop
shr eax, 8
add ecx, 8
cmp eax, 0x100
jae 0x100c1780
movzx eax, byte [eax + 0x101723d8]
inc ecx
add ecx, eax
mov eax, esi
cdq
and edx, 0xff
add eax, edx
sar eax, 8
and esi, 0x800000ff
jns 0x100c17b5
dec esi
or esi, 0xffffff00
inc esi
shl esi, 8
mov edx, pe_nt_image_headers32
or esi, ecx
xor ecx, ecx
shl esi, 9
test eax, eax
cmovg ecx, edx
mov edx, dword [ebp - 0x44]
or esi, ecx
shl eax, 7
mov ecx, dword [ebp - 4]
or eax, 0x52
xor ecx, ebp
or esi, dword [edx + 8]
shl esi, 7
or esi, 0x13
mov dword [edi + 4], eax
mov dword [edi], esi
pop edi
pop esi
pop ebx
call fcn.1013c175
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 8]
mov edx, str.function_or_expression_needs_too_many_registers
call fcn.100b8920
mov edx, 0x7b
mov ecx, esi
call fcn.100bfbd0
mov ecx, dword [ebx + 8]
mov edx, str.function_or_expression_needs_too_many_registers
call fcn.100b8920
mov ecx, dword [ebx + 8]
mov edx, str.function_or_expression_needs_too_many_registers
call fcn.100b8920
int3