Function at 0x100043c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 0x38], edx
mov ebx, ecx
mov dword [ebp - 0x3c], ebx
mov eax, dword [0x10011070]
mov dword [ebp - 0x34], 0x2c06
mov dword [ebp - 0x1c], 0xe922579e
mov byte [ebp - 3], 0x72
mov dword [ebp - 0x18], eax
mov byte [ebp - 2], 0xe3
mov ecx, dword [0x1001109c]
movzx edx, ax
mov eax, dword [0x10011098]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
mov ecx, dword [0x10011018]
mov eax, dword [0x1001101c]
movzx eax, cx
mov dword [ebp - 0x34], eax
movzx eax, cx
mov dword [ebp - 0x30], eax
mov eax, 0x9e11
mov word [ebp - 0x14], ax
mov al, byte [0x100110ac]
mov byte [ebp - 1], al
mov eax, dword [0x10011040]
mov ecx, dword [0x10011044]
mov ax, word [0x100110b4]
mov word [ebp - 0xc], ax
mov eax, dword [0x10011038]
mov dword [ebp - 0x24], eax
mov eax, dword [section..data]
mov ecx, dword [0x10011004]
mov al, byte [0x10011050]
mov byte [ebp - 4], al
mov eax, 0x76ae
mov byte [ebp - 1], 0x14
mov word [ebp - 0x10], ax
mov eax, dword [0x10011098]
mov word [ebp - 8], ax
mov al, byte [0x10011010]
mov al, byte [0x100110c0]
mov byte [ebp - 3], al
mov eax, dword [0x10082928]
mov dword [ebp - 0x1c], eax
mov al, dl
add al, 5
mov byte [ebp - 2], al
mov eax, dword [ebp - 0x1c]
movsx ecx, byte [0x10011017]
add eax, 0x69e
mov dword [ebp - 0x20], eax
movsx eax, word [0x10011088]
xor ecx, eax
mov eax, dword [ebp - 0x24]
movzx eax, al
sub ecx, eax
movzx eax, word [ebp - 8]
sub ecx, dword [0x100110a8]
sub ecx, eax
movzx eax, word [ebp - 8]
add eax, ecx
mov dword [0x100110a8], eax
mov eax, edx
imul eax, eax, 0x5e55
mov dword [0x1001102c], eax
mov eax, dword [ebp - 0x1c]
add eax, 0x6a3
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
add eax, 0x4f0
mov dword [ebp - 0x2c], eax
cmp word [ebp - 0xc], 0
je 0x100044fc
mov ax, word [0x100110b4]
add al, 0x4e
mov byte [ebp - 1], al
mov eax, dword [0x10011020]
mov edi, dword [ebx + 0x3c]
and eax, 0xffffe19b
mov word [0x1001103c], ax
movzx eax, word [0x100110b4]
shl eax, 5
mov esi, dword [edi + ebx + 0xa0]
push ecx
mov dword [ebp - 0x1c], eax
add esi, ebx
call fcn.10001460
mov byte [ebp - 1], al
xor edx, edx
mov al, byte [ebp - 1]
add esp, 4
cmp al, 0x13
mov al, byte [ebp - 1]
setg dl
xor ecx, ecx
test al, al
setg cl
cmp ecx, edx
ja 0x10004554
push ecx
call fcn.10001460
add esp, 4
jmp 0x10004565
movzx eax, word [0x100110b4]
sub eax, 0x2c79d659
mov dword [0x10011064], eax
mov ebx, dword [edi + ebx + 0xa4]
test esi, esi
je 0x10004743
test ebx, ebx
je 0x10004743
mov ax, word [ebp - 0x10]
cmp ax, word [ebp - 0xc]
jne 0x10004597
mov ecx, dword [0x10011058]
mov eax, dword [0x1001105c]
mov dword [0x10011068], ecx
mov eax, dword [ebp - 0x28]
imul eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
mov edi, dword [esi + 4]
or ecx, 0x58
add ecx, eax
mov eax, dword [ebp - 0x2c]
imul eax, dword [ebp - 0x20]
cmp eax, ecx
je 0x10004743
test edi, edi
je 0x10004743
mov eax, dword [ebp - 0x24]
mov byte [ebp - 3], al
mov al, byte [ebp - 4]
mov eax, dword [ebp - 0x30]
movzx eax, ax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x34]
movzx eax, ax
cdq
mov dword [ebp - 0x20], eax
mov eax, edx
mov edx, dword [ebp - 0x20]
add edx, 0xf5
mov dword [ebp - 0x20], edx
adc eax, 0
mov dword [ebp - 0x34], eax
movsx eax, word [0x100110c0]
xor ecx, ecx
cmp dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x34]
push dword [ebp - 0x38]
sete cl
mov byte [0x10011015], 0xea
mov word [0x10011028], cx
sub ebx, edi
mov ecx, dword [esi]
add ecx, dword [ebp - 0x3c]
mov dword [0x10011080], edx
lea edx, [edi - 8]
mov dword [0x10011084], eax
lea eax, [esi + 8]
push eax
shr edx, 1
call fcn.100037d0
mov esi, eax
add esp, 8
test esi, esi
je 0x10004731
mov edi, dword [esi + 4]
test edi, edi
je 0x10004655
mov edx, dword [ebp - 0x20]
test ebx, ebx
jne 0x100045f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [ebp - 2]
mov esi, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
cdq
push edx
push eax
push ecx
push esi
call fcn.1000f900
or eax, edx
jne 0x10004681
mov eax, dword [0x10011098]
or eax, dword [0x1001109c]
jne 0x10004681
lea edi, [eax + 1]
xor ebx, ebx
jmp 0x1000468f
xorps xmm0, xmm0
movlpd qword [ebp - 0x48], xmm0
mov ebx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x48]
mov esi, dword [0x100110a0]
movsx eax, byte [ebp - 1]
sub esi, 0x6f4d
mov ecx, dword [0x100110a4]
sbb ecx, 0
cdq
sub esi, eax
sbb ecx, edx
cmp ebx, ecx
jg 0x10004743
jl 0x100046bf
cmp edi, esi
ja 0x10004743
mov ax, word [ebp - 0x14]
call fcn.100017f0
movzx eax, al
mov dword [0x1001102c], eax
cmp dword [0x1001102c], 0
jle 0x10004717
mov ecx, dword [0x100110b0]
movsx eax, word [0x1001103c]
not ecx
add ecx, eax
je 0x10004743
mov ax, word [ebp - 8]
movzx ecx, byte [ebp - 2]
add cx, ax
movsx eax, byte [0x10011014]
mov word [ebp - 8], cx
mov ecx, dword [ebp - 0x18]
imul ecx, eax
mov eax, dword [ebp - 0x18]
sub eax, ecx
mov dword [ebp - 0x18], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
inc word [0x10011088]
sub eax, dword [0x10011050]
mov dword [ebp - 0x18], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ax, word [0x10011024]
mov ecx, 0xbc3
sub ax, cx
mov word [ebp - 8], ax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret