Function at 0x444874
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x4ad3bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
push edi
mov dword [ebp - 0xc8], eax
mov eax, dword [esi]
xor edi, edi
mov dword [eax + 8], edi
cmp ebx, 4
ja 0x444ff8
mov eax, esi
call fcn.0044402e
test eax, eax
jne 0x4448ce
mov eax, esi
call fcn.0044484e
jmp 0x445003
cmp ebx, edi
je 0x4448da
mov dword [ebp - 0x90], ebx
jmp 0x4448ef
mov eax, dword [esi]
xor ecx, ecx
cmp dword [eax + 8], 3
setge cl
lea ecx, [ecx + ecx + 1]
mov dword [ebp - 0x90], ecx
mov eax, dword [esi]
mov eax, dword [eax + 8]
xor edx, edx
push 3
pop ecx
inc edx
cmp eax, ecx
jne 0x44491e
cmp dword [esi + 0x47ec], ecx
je 0x444916
cmp dword [esi + 0x47e8], edi
jne 0x44491e
cmp dword [esi + 0x47e4], edi
jne 0x44491e
mov dword [ebp - 0xb4], edx
jmp 0x444924
mov dword [ebp - 0xb4], edi
cmp eax, ecx
jne 0x44493e
cmp dword [ebp - 0x90], ecx
jge 0x44493e
mov dword [ebp - 0xac], edx
cmp dword [ebp - 0xb4], edi
je 0x444944
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x88], edi
cmp dword [ebp - 0xac], edi
jle 0x444a4e
lea edi, [ebp - 0x74]
lea ebx, [esi + 0x46a0]
mov eax, dword [esi]
mov eax, dword [eax]
add eax, 3
push eax
call fcn.00440462
pop ecx
mov dword [ebx + 0x34], eax
test eax, eax
je 0x444acf
mov eax, dword [esi + 0x4684]
cdq
idiv dword [ebx]
and dword [edi + 0xc], 0
mov ecx, eax
mov eax, dword [esi + 0x4688]
cdq
idiv dword [ebx + 4]
xor edx, edx
mov dword [edi - 4], ecx
mov dword [ebp - 0x8c], eax
mov dword [edi], eax
sar eax, 1
mov dword [edi + 8], eax
mov eax, dword [esi]
mov eax, dword [eax]
lea eax, [eax + ecx - 1]
div ecx
mov dword [edi + 4], eax
mov eax, dword [ebx + 0x28]
mov dword [edi - 8], eax
mov dword [edi - 0xc], eax
cmp ecx, 1
jne 0x4449f9
cmp dword [ebp - 0x8c], ecx
jne 0x4449e7
mov dword [edi - 0x10], 0x4441ac
jmp 0x444a2b
cmp dword [ebp - 0x8c], 2
jne 0x4449f9
mov dword [edi - 0x10], 0x4441b4
jmp 0x444a2b
cmp ecx, 2
jne 0x444a24
cmp dword [ebp - 0x8c], 1
jne 0x444a10
mov dword [edi - 0x10], 0x4441ee
jmp 0x444a2b
cmp dword [ebp - 0x8c], 2
jne 0x444a24
mov eax, dword [esi + 0x4814]
mov dword [edi - 0x10], eax
jmp 0x444a2b
mov dword [edi - 0x10], 0x4444d1
inc dword [ebp - 0x88]
mov eax, dword [ebp - 0x88]
add edi, 0x20
add ebx, 0x48
cmp eax, dword [ebp - 0xac]
jl 0x444977
xor edx, edx
xor edi, edi
inc edx
mov eax, dword [esi]
push edx
push dword [eax + 4]
push dword [eax]
mov eax, dword [ebp - 0x90]
call fcn.004405b0
add esp, 0xc
mov dword [ebp - 0xbc], eax
cmp eax, edi
je 0x444acf
mov eax, dword [esi]
mov dword [ebp - 0xb0], edi
cmp dword [eax + 4], edi
jbe 0x444fb5
mov edi, dword [eax]
imul edi, dword [ebp - 0xb0]
imul edi, dword [ebp - 0x90]
add edi, dword [ebp - 0xbc]
and dword [ebp - 0x88], 0
cmp dword [ebp - 0xac], 0
jle 0x444b60
lea eax, [esi + 0x46bc]
mov dword [ebp - 0x8c], eax
lea ebx, [ebp - 0x6c]
mov eax, dword [ebx - 8]
sar eax, 1
xor edx, edx
cmp dword [ebx], eax
setge dl
mov eax, edx
test eax, eax
je 0x444ae0
mov ecx, dword [ebx - 0x14]
jmp 0x444ae3
mov eax, esi
call fcn.0044484e
push str.outofmem
jmp 0x444ffd
mov ecx, dword [ebx - 0x10]
test eax, eax
je 0x444aec
mov eax, dword [ebx - 0x10]
jmp 0x444aef
mov eax, dword [ebx - 0x14]
push dword [ebx - 0xc]
push dword [ebx - 4]
push ecx
push eax
mov eax, dword [ebp - 0x8c]
push dword [eax + 0x18]
call dword [ebx - 0x18]
mov ecx, dword [ebp - 0x88]
mov dword [ebp + ecx*4 - 0xa8], eax
mov eax, dword [ebx]
add esp, 0x14
inc eax
mov dword [ebx], eax
cmp eax, dword [ebx - 8]
jl 0x444b3e
and dword [ebx], 0
inc dword [ebx + 4]
mov ecx, dword [ebx + 4]
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebx - 0x10]
mov dword [ebx - 0x14], eax
cmp ecx, dword [edx]
jge 0x444b3e
mov ecx, dword [edx + 4]
add ecx, eax
mov dword [ebx - 0x10], ecx
inc dword [ebp - 0x88]
mov eax, dword [ebp - 0x88]
add dword [ebp - 0x8c], 0x48
add ebx, 0x20
cmp eax, dword [ebp - 0xac]
jl 0x444ab8
cmp dword [ebp - 0x90], 3
mov edx, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
mov eax, dword [esi]
jl 0x444d68
mov ebx, dword [eax + 8]
cmp ebx, 3
jne 0x444c0e
cmp dword [ebp - 0xb4], 0
je 0x444bef
and dword [ebp - 0x88], 0
cmp dword [eax], 0
jbe 0x444f9c
mov ebx, dword [ebp - 0xa0]
add edi, 2
sub edx, ecx
sub ebx, ecx
mov eax, ecx
mov dword [ebp - 0x8c], ebx
jmp 0x444bbd
mov ebx, dword [ebp - 0x8c]
mov cl, byte [edx + eax]
mov byte [edi - 2], cl
mov cl, byte [eax]
mov byte [edi - 1], cl
mov cl, byte [ebx + eax]
mov byte [edi], cl
mov byte [edi + 1], 0xff
add edi, dword [ebp - 0x90]
inc dword [ebp - 0x88]
mov ecx, dword [esi]
mov ebx, dword [ebp - 0x88]
inc eax
cmp ebx, dword [ecx]
jb 0x444bb7
jmp 0x444f9c
push dword [ebp - 0x90]
push dword [eax]
push dword [ebp - 0xa0]
push ecx
push edx
push edi
call dword [esi + 0x4810]
add esp, 0x18
jmp 0x444f9c
cmp ebx, 4
jne 0x444d3c
mov ebx, dword [esi + 0x47e8]
test ebx, ebx
jne 0x444cc2
and dword [ebp - 0x88], ebx
cmp dword [eax], ebx
jbe 0x444f9c
mov eax, dword [ebp - 0x9c]
sub eax, dword [ebp - 0xa8]
sub ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0xa0]
add edi, 2
sub eax, dword [ebp - 0xa8]
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x8c]
mov bl, byte [eax + edx]
mov cl, byte [edx]
mov al, bl
call fcn.0044485d
mov ecx, dword [ebp - 0x94]
mov byte [edi - 2], al
mov cl, byte [ecx + edx]
mov al, bl
call fcn.0044485d
mov ecx, dword [ebp - 0xb8]
mov byte [edi - 1], al
mov cl, byte [ecx + edx]
mov al, bl
call fcn.0044485d
mov byte [edi], al
mov byte [edi + 1], 0xff
add edi, dword [ebp - 0x90]
inc dword [ebp - 0x88]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x88]
inc edx
cmp ecx, dword [eax]
jb 0x444c66
jmp 0x444f9c
push dword [ebp - 0x90]
push dword [eax]
push dword [ebp - 0xa0]
push ecx
push edx
push edi
call dword [esi + 0x4810]
add esp, 0x18
cmp ebx, 2
jne 0x444f9c
mov eax, dword [esi]
xor edx, edx
cmp dword [eax], edx
jbe 0x444f9c
add edi, ebx
mov eax, dword [ebp - 0x9c]
mov bl, byte [edx + eax]
or cl, 0xff
sub cl, byte [edi - 2]
mov al, bl
call fcn.0044485d
or cl, 0xff
sub cl, byte [edi - 1]
mov byte [edi - 2], al
mov al, bl
call fcn.0044485d
or cl, 0xff
sub cl, byte [edi]
mov byte [edi - 1], al
mov al, bl
call fcn.0044485d
mov byte [edi], al
add edi, dword [ebp - 0x90]
mov eax, dword [esi]
inc edx
cmp edx, dword [eax]
jb 0x444cf3
jmp 0x444f9c
xor ecx, ecx
cmp dword [eax], ecx
jbe 0x444f9c
inc edi
mov al, byte [ecx + edx]
mov byte [edi + 1], al
mov byte [edi], al
mov byte [edi - 1], al
mov byte [edi + 2], 0xff
add edi, dword [ebp - 0x90]
mov eax, dword [esi]
inc ecx
cmp ecx, dword [eax]
jb 0x444d47
jmp 0x444f9c
xor ebx, ebx
cmp dword [ebp - 0xb4], ebx
je 0x444e47
cmp dword [ebp - 0x90], 1
mov dword [ebp - 0x88], ebx
jne 0x444de4
cmp dword [eax], ebx
jbe 0x444f9c
mov eax, dword [ebp - 0xa0]
sub eax, ecx
mov dword [ebp - 0x94], edx
sub dword [ebp - 0x94], ecx
mov ebx, ecx
mov dword [ebp - 0x8c], eax
sub edi, ecx
mov eax, dword [ebp - 0x8c]
movzx ecx, byte [ebx + eax]
movzx eax, byte [ebx]
push eax
mov eax, dword [ebp - 0x94]
movzx edx, byte [ebx + eax]
call fcn.00440c4d
inc dword [ebp - 0x88]
mov byte [edi + ebx], al
mov eax, dword [esi]
pop ecx
mov ecx, dword [ebp - 0x88]
inc ebx
cmp ecx, dword [eax]
jb 0x444dab
jmp 0x444f9c
cmp dword [eax], ebx
jbe 0x444f9c
mov eax, dword [ebp - 0xa0]
sub eax, ecx
mov dword [ebp - 0x94], edx
sub dword [ebp - 0x94], ecx
mov ebx, ecx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
movzx ecx, byte [eax + ebx]
movzx eax, byte [ebx]
push eax
mov eax, dword [ebp - 0x94]
movzx edx, byte [eax + ebx]
call fcn.00440c4d
inc dword [ebp - 0x88]
mov byte [edi], al
mov byte [edi + 1], 0xff
mov eax, dword [esi]
pop ecx
mov ecx, dword [ebp - 0x88]
inc ebx
add edi, 2
cmp ecx, dword [eax]
jb 0x444e08
jmp 0x444f9c
mov ecx, dword [eax + 8]
cmp ecx, 4
jne 0x444f65
cmp dword [esi + 0x47e8], ebx
jne 0x444f17
mov dword [ebp - 0x88], ebx
cmp dword [eax], ebx
jbe 0x444f9c
mov ebx, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0x9c]
sub ecx, ebx
mov dword [ebp - 0x8c], ecx
mov ecx, dword [ebp - 0xa8]
sub eax, ebx
sub ecx, ebx
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0x94], ecx
jmp 0x444ea5
mov eax, dword [ebp - 0xb8]
mov dl, byte [eax + ebx]
mov cl, byte [ebx]
mov al, dl
mov byte [ebp - 0x95], dl
call fcn.0044485d
mov ecx, dword [ebp - 0x8c]
mov cl, byte [ecx + ebx]
movzx eax, al
mov dword [ebp - 0xcc], eax
mov al, dl
call fcn.0044485d
mov ecx, dword [ebp - 0x94]
mov cl, byte [ecx + ebx]
movzx eax, al
push eax
mov al, dl
call fcn.0044485d
mov ecx, dword [ebp - 0xcc]
movzx edx, al
call fcn.00440c4d
mov byte [edi], al
mov byte [edi + 1], 0xff
add edi, dword [ebp - 0x90]
inc dword [ebp - 0x88]
mov eax, dword [esi]
pop ecx
mov ecx, dword [ebp - 0x88]
inc ebx
cmp ecx, dword [eax]
jb 0x444e9f
jmp 0x444f9c
cmp ecx, 4
jne 0x444f65
cmp dword [esi + 0x47e8], 2
jne 0x444f65
mov dword [ebp - 0x88], ebx
cmp dword [eax], ebx
jbe 0x444f9c
mov ebx, dword [ebp - 0x9c]
sub ebx, edx
mov al, byte [ebx + edx]
or cl, 0xff
sub cl, byte [edx]
call fcn.0044485d
mov byte [edi], al
mov byte [edi + 1], 0xff
add edi, dword [ebp - 0x90]
inc dword [ebp - 0x88]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x88]
inc edx
cmp ecx, dword [eax]
jb 0x444f37
jmp 0x444f9c
xor ecx, ecx
cmp dword [ebp - 0x90], 1
jne 0x444f85
cmp dword [eax], ebx
jbe 0x444f9c
sub edx, edi
mov al, byte [edx + edi]
mov byte [edi], al
mov eax, dword [esi]
inc ecx
inc edi
cmp ecx, dword [eax]
jb 0x444f76
jmp 0x444f9c
cmp dword [eax], ebx
jbe 0x444f9c
mov al, byte [ecx + edx]
mov byte [edi], al
mov byte [edi + 1], 0xff
mov eax, dword [esi]
add edi, 2
inc ecx
cmp ecx, dword [eax]
jb 0x444f89
inc dword [ebp - 0xb0]
mov eax, dword [esi]
mov ecx, dword [ebp - 0xb0]
cmp ecx, dword [eax + 4]
jb 0x444a7f
xor edi, edi
mov eax, esi
call fcn.0044484e
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc4]
mov dword [ecx], eax
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0xc0]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc8]
cmp eax, edi
je 0x444ff0
mov ecx, dword [esi]
xor edx, edx
cmp dword [ecx + 8], 3
setge dl
lea edx, [edx + edx + 1]
mov dword [eax], edx
mov eax, dword [ebp - 0xbc]
jmp 0x445005
push str.bad_req_comp
call fcn.00440443
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0041c9f1
leave
ret