Function at 0x100044d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, esp
mov dword [esi + 0x28], ebp
mov ebx, dword [ebp + 8]
mov dword [esi + 0x2c], esp
mov dword [esi + 0x38], 0xffffffff
lea eax, [esi + 0x30]
mov dword [esi + 0x34], 0x1000d870
mov ecx, dword fs:[0]
mov dword [esi + 0x30], ecx
mov dword fs:[0], eax
push dword [ebp + 0xc]
call fcn.10016850
add esp, 4
mov edi, eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov ebx, dword [ebx + eax + 0x20]
mov edx, ebx
neg edx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + eax + 0x24]
mov eax, 0
sbb eax, ecx
setl al
cmp edi, ebx
mov edx, 0
sbb edx, ecx
setl dl
mov dword [esi + 0x1c], edi
sub ebx, edi
mov edi, dword [ebp + 8]
sbb ecx, 0
test al, dl
mov eax, 0
cmove ecx, eax
mov dword [esi + 4], ecx
cmove ebx, eax
lea ecx, [esi + 0x20]
push edi
call fcn.1000d2d0
cmp byte [esi + 0x24], 0
je 0x100046f9
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov ecx, 0x1c0
and ecx, dword [edi + eax + 0x14]
cmp ecx, 0x40
jne 0x10004703
mov dword [esi + 0x10], ebx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + eax + 0x38]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [esi + 0x38], 1
push 0
push dword [esi + 0x1c]
push dword [ebp + 0xc]
call eax
mov edi, dword [esi + 0x10]
xor eax, dword [esi + 0x1c]
mov ebx, 4
or eax, edx
jne 0x1000485c
mov ecx, dword [esi + 4]
jmp 0x100045d2
add edi, 0xffffffff
mov ecx, dword [esi + 4]
adc ecx, 0xffffffff
cmp eax, 0xffffffff
je 0x1000485c
cmp edi, 1
mov dword [esi + 4], ecx
mov eax, ecx
sbb eax, 0
jl 0x1000485a
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov edx, dword [ecx + eax + 0x38]
mov al, byte [ecx + eax + 0x40]
mov byte [esi + 0x18], al
movzx eax, al
mov dword [esi + 0x14], eax
mov dword [esi], edx
mov eax, dword [edx + 0x20]
mov eax, dword [eax]
mov dword [esi + 8], eax
mov ecx, 0x6bd6bd59
nop dword [eax + eax]
cmp ecx, 0xd45e8636
je 0x1000463d
cmp ecx, 0x66e07745
je 0x10004650
cmp ecx, 0x6bd6bd59
jne 0x10004610
cmp dword [esi + 8], 0
mov ecx, 0xd45e8636
mov eax, 0x66e07745
cmove ecx, eax
xor eax, eax
jmp 0x10004610
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax]
mov ecx, 0x66e07745
jmp 0x10004610
mov dword [esi + 8], eax
sar eax, 0x1f
mov dword [esi + 0xc], eax
mov edx, 0x9e529921
nop
cmp edx, 0x15932b9a
jg 0x100046a0
cmp edx, 0x9e529921
je 0x100046b5
cmp edx, 0xc54ec1c5
jne 0x10004660
mov ecx, dword [esi]
mov eax, dword [ecx + 0x30]
add dword [eax], 0xffffffff
mov eax, dword [ecx + 0x20]
mov ecx, dword [eax]
lea edx, [ecx + 1]
mov dword [eax], edx
movzx eax, byte [esi + 0x18]
mov byte [ecx], al
mov edx, 0x574afd92
mov eax, dword [esi + 0x14]
jmp 0x10004660
cmp edx, 0x15932b9b
je 0x100046d1
cmp edx, 0x574afd92
jne 0x10004660
jmp 0x100045c0
xor ecx, ecx
cmp ecx, dword [esi + 8]
mov ecx, 0
sbb ecx, dword [esi + 0xc]
mov edx, 0x15932b9b
mov ecx, 0xc54ec1c5
cmovl edx, ecx
jmp 0x10004660
mov ecx, dword [esi]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
mov dword [esi + 0x38], 1
push dword [esi + 0x14]
mov dword [esi + 0x10], edi
call eax
mov edx, 0x574afd92
mov ebx, 4
mov edi, dword [esi + 0x10]
jmp 0x10004660
mov ebx, 4
jmp 0x10004884
mov eax, dword [esi + 4]
nop word cs:[eax + eax]
cmp ebx, 1
mov dword [esi + 4], eax
sbb eax, 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov dword [esi + 0x10], ebx
jl 0x10004587
mov edi, dword [ecx + eax + 0x38]
mov al, byte [ecx + eax + 0x40]
mov byte [esi + 0x14], al
movzx eax, al
mov dword [esi], eax
mov eax, dword [edi + 0x20]
mov eax, dword [eax]
mov dword [esi + 8], eax
mov ecx, 0x6bd6bd59
nop word [eax + eax]
cmp ecx, 0xd45e8636
je 0x1000477d
cmp ecx, 0x66e07745
je 0x10004790
cmp ecx, 0x6bd6bd59
jne 0x10004750
cmp dword [esi + 8], 0
mov ecx, 0xd45e8636
mov eax, 0x66e07745
cmove ecx, eax
xor eax, eax
jmp 0x10004750
mov eax, dword [edi + 0x30]
mov eax, dword [eax]
mov ecx, 0x66e07745
jmp 0x10004750
mov dword [esi + 8], eax
sar eax, 0x1f
mov dword [esi + 0xc], eax
mov edx, 0x9e529921
nop
cmp edx, 0x15932b9a
jg 0x100047e0
cmp edx, 0x9e529921
je 0x100047f2
cmp edx, 0xc54ec1c5
jne 0x100047a0
mov eax, dword [edi + 0x30]
add dword [eax], 0xffffffff
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
lea edx, [ecx + 1]
mov dword [eax], edx
movzx eax, byte [esi + 0x14]
mov byte [ecx], al
mov edx, 0x574afd92
mov eax, dword [esi]
jmp 0x100047a0
cmp edx, 0x15932b9b
je 0x1000480e
cmp edx, 0x574afd92
jne 0x100047a0
jmp 0x10004840
xor ecx, ecx
cmp ecx, dword [esi + 8]
mov ecx, 0
sbb ecx, dword [esi + 0xc]
mov edx, 0x15932b9b
mov ecx, 0xc54ec1c5
cmovl edx, ecx
jmp 0x100047a0
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
mov dword [esi + 0x38], 1
mov ecx, edi
push dword [esi]
mov dword [esi + 0x18], edi
call eax
mov edx, 0x574afd92
mov edi, dword [esi + 0x18]
mov ebx, dword [esi + 0x10]
jmp 0x100047a0
cmp eax, 0xffffffff
je 0x10004853
add ebx, 0xffffffff
mov eax, dword [esi + 4]
adc eax, 0xffffffff
jmp 0x10004710
mov ebx, 4
jmp 0x1000485c
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 0x24], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 0x20], 0
mov edi, dword [ebp + 8]
mov dword [esi + 0x38], 0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
or ebx, dword [edi + ecx + 0xc]
xor eax, eax
cmp dword [edi + ecx + 0x38], 0
sete al
shl eax, 2
or eax, ebx
add ecx, edi
mov dword [esi + 0x38], 0
push 0
push eax
call fcn.1000bb50
lea ecx, [esi + 0x20]
call fcn.1000d3e0
mov eax, dword [esi + 0x30]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret