Function at 0x4406d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x595534]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x18], 4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebx]
mov dword [ebp - 0xbc], ebx
mov dword [eax + 8], 0
ja 0x440f19
push ebx
call fcn.00444500
add esp, 4
test eax, eax
jne 0x440742
push ebx
call fcn.004425c0
add esp, 4
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff9ee
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x18]
test ecx, ecx
jne 0x44075c
mov eax, dword [ebx]
cmp dword [eax + 8], 3
setge cl
lea ecx, [ecx*2 + 1]
mov dword [ebp + 0x18], ecx
mov eax, dword [ebx]
push esi
mov edx, dword [eax + 8]
mov dword [ebp - 0xb4], edx
cmp edx, 3
jne 0x44078e
cmp dword [ebx + 0x47ec], edx
je 0x440787
cmp dword [ebx + 0x47e8], 0
jne 0x44078e
cmp dword [ebx + 0x47e4], 0
jne 0x44078e
mov esi, 1
jmp 0x440790
xor esi, esi
mov dword [ebp - 0xb8], esi
cmp edx, 3
jne 0x4407ae
cmp ecx, edx
jge 0x4407ae
test esi, esi
jne 0x4407ae
mov edx, 1
mov dword [ebp - 0xb4], edx
mov dword [ebp - 0x9c], 0
xorps xmm0, xmm0
push edi
movups xmmword [ebp - 0x14], xmm0
test edx, edx
jle 0x4408c7
lea edi, [ebx + 0x46a0]
lea esi, [ebp - 0x84]
mov dword [ebp - 0x98], edi
nop word [eax + eax]
mov eax, dword [eax]
add eax, 3
push eax
call fcn.004485e0
add esp, 4
mov dword [edi + 0x34], eax
test eax, eax
je 0x4408e7
mov eax, dword [ebx + 0x4684]
cdq
idiv dword [edi]
mov dword [esi + 0xc], 0
mov dword [ebp - 0xb0], eax
mov dword [esi - 4], eax
mov eax, dword [ebx + 0x4688]
cdq
idiv dword [edi + 4]
xor edx, edx
mov edi, eax
mov eax, dword [ebx]
mov ecx, edi
mov dword [esi], edi
sar ecx, 1
mov dword [esi + 8], ecx
mov ecx, dword [eax]
mov eax, dword [ebp - 0xb0]
dec eax
add eax, ecx
mov ecx, dword [ebp - 0xb0]
div ecx
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x98]
mov eax, dword [eax + 0x28]
mov dword [esi - 8], eax
mov dword [esi - 0xc], eax
cmp ecx, 1
jne 0x440870
cmp edi, ecx
jne 0x440862
mov dword [esi - 0x10], 0x440f40
jmp 0x44089a
cmp edi, 2
jne 0x440870
mov dword [esi - 0x10], 0x44c7e0
jmp 0x44089a
cmp ecx, 2
jne 0x440893
cmp edi, 1
jne 0x440883
mov dword [esi - 0x10], 0x44c4a0
jmp 0x44089a
cmp edi, 2
jne 0x440893
mov eax, dword [ebx + 0x4814]
mov dword [esi - 0x10], eax
jmp 0x44089a
mov dword [esi - 0x10], 0x44c460
mov eax, dword [ebp - 0x9c]
add esi, 0x20
mov edi, dword [ebp - 0x98]
inc eax
add edi, 0x48
mov dword [ebp - 0x9c], eax
cmp eax, dword [ebp - 0xb4]
mov eax, dword [ebx]
mov dword [ebp - 0x98], edi
jl 0x4407e0
mov eax, dword [ebx]
push 1
push dword [eax + 4]
push dword [eax]
push dword [ebp + 0x18]
call fcn.00448620
mov esi, eax
add esp, 0x10
mov dword [ebp - 0xb0], esi
test esi, esi
jne 0x44090d
push ebx
call fcn.004425c0
push str.outofmem
call fcn.00444840
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff9ee
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
xor ecx, ecx
mov dword [ebp - 0x98], ecx
cmp dword [eax + 4], ecx
jbe 0x440cc4
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp + 0x18]
nop word [eax + eax]
mov esi, dword [eax]
imul esi, ecx
mov dword [ebp - 0x9c], 0
imul esi, edx
add esi, dword [ebp - 0xb0]
cmp dword [ebp - 0xb4], 0
mov dword [ebp - 0xa0], esi
jle 0x4409fd
mov esi, dword [ebp - 0xb4]
lea eax, [ebx + 0x46bc]
mov dword [ebp - 0xa8], eax
lea edi, [ebp - 0x7c]
mov ebx, eax
mov eax, dword [edi - 8]
mov ecx, dword [edi]
sar eax, 1
cmp ecx, eax
jl 0x440982
mov edx, dword [edi - 0x14]
jmp 0x440985
mov edx, dword [edi - 0x10]
cmp ecx, eax
jl 0x44098e
mov eax, dword [edi - 0x10]
jmp 0x440991
mov eax, dword [edi - 0x14]
push dword [edi - 0xc]
push dword [edi - 4]
push edx
push eax
push dword [ebx + 0x18]
call dword [edi - 0x18]
mov ecx, dword [ebp - 0x9c]
add esp, 0x14
mov dword [ebp + ecx*4 - 0x14], eax
mov eax, dword [edi]
inc eax
mov dword [edi], eax
cmp eax, dword [edi - 8]
jl 0x4409d4
inc dword [edi + 4]
mov eax, dword [edi + 4]
mov edx, dword [edi - 0x10]
mov dword [edi], 0
mov dword [edi - 0x14], edx
cmp eax, dword [ebx]
jge 0x4409d4
mov eax, dword [ebx + 4]
add eax, edx
mov dword [edi - 0x10], eax
inc ecx
add edi, 0x20
add ebx, 0x48
mov dword [ebp - 0x9c], ecx
cmp ecx, esi
jl 0x440972
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0xa0]
mov ebx, dword [ebp - 0xbc]
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x98]
mov eax, dword [ebx]
cmp edx, 3
jl 0x440c2a
mov ecx, dword [eax + 8]
cmp ecx, 3
jne 0x440aa2
cmp dword [ebp - 0xb8], 0
je 0x440a87
cmp dword [eax], 0
mov dword [ebp - 0xa0], 0
jbe 0x440ca6
mov ecx, dword [ebp - 0x10]
mov eax, edi
mov edi, dword [ebp - 0xc]
sub eax, ecx
add esi, 2
mov dword [ebp - 0x9c], eax
sub edi, ecx
mov dword [ebp - 0xa8], edi
mov edi, dword [ebp - 0xa0]
mov al, byte [eax + ecx]
lea ecx, [ecx + 1]
mov byte [esi - 2], al
inc edi
mov al, byte [ecx - 1]
mov byte [esi - 1], al
mov eax, dword [ebp - 0xa8]
mov al, byte [eax + ecx - 1]
mov byte [esi], al
mov byte [esi + 1], 0xff
add esi, edx
mov eax, dword [ebx]
cmp edi, dword [eax]
mov eax, dword [ebp - 0x9c]
jb 0x440a51
mov edi, dword [ebp - 0x14]
jmp 0x440ca6
push edx
push dword [eax]
mov eax, dword [ebx + 0x4810]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push edi
push esi
call eax
add esp, 0x18
jmp 0x440ca3
cmp ecx, 4
jne 0x440bfe
mov ecx, dword [ebx + 0x47e8]
test ecx, ecx
jne 0x440b64
mov dword [ebp - 0x9c], ecx
cmp dword [eax], ecx
jbe 0x440ca6
mov ecx, dword [ebp - 0x10]
add esi, 2
mov eax, dword [ebp - 8]
sub ecx, edi
mov dword [ebp - 0xa8], ecx
sub eax, edi
mov ecx, dword [ebp - 0xc]
sub ecx, edi
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xac], ecx
mov al, byte [eax + edi]
mov byte [ebp - 0xc0], al
mov edx, dword [ebp - 0xc0]
movzx eax, byte [edi]
push edx
push eax
call fcn.004412c0
mov byte [esi - 2], al
mov eax, dword [ebp - 0xa8]
push edx
movzx eax, byte [eax + edi]
push eax
call fcn.004412c0
mov byte [esi - 1], al
mov eax, dword [ebp - 0xac]
push edx
movzx eax, byte [eax + edi]
push eax
call fcn.004412c0
mov ecx, dword [ebp - 0x9c]
lea edi, [edi + 1]
mov edx, dword [ebp + 0x18]
inc ecx
mov byte [esi], al
add esp, 0x18
mov byte [esi + 1], 0xff
add esi, edx
mov eax, dword [ebx]
mov dword [ebp - 0x9c], ecx
cmp ecx, dword [eax]
mov eax, dword [ebp - 0xa4]
jb 0x440af1
mov edi, dword [ebp - 0x14]
jmp 0x440ca6
push edx
push dword [eax]
mov eax, dword [ebx + 0x4810]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push edi
push esi
cmp ecx, 2
jne 0x440a98
call eax
mov eax, dword [ebx]
add esp, 0x18
mov dword [ebp - 0xa4], 0
cmp dword [eax], 0
jbe 0x440ca3
mov edi, dword [ebp - 0xa4]
add esi, 2
mov eax, dword [ebp - 8]
mov al, byte [edi + eax]
mov byte [ebp - 0xc4], al
mov al, byte [esi - 2]
mov edx, dword [ebp - 0xc4]
not al
movzx eax, al
push edx
push eax
call fcn.004412c0
mov byte [esi - 2], al
mov al, byte [esi - 1]
not al
movzx eax, al
push edx
push eax
call fcn.004412c0
mov byte [esi - 1], al
mov al, byte [esi]
not al
movzx eax, al
push edx
push eax
call fcn.004412c0
mov edx, dword [ebp + 0x18]
inc edi
mov byte [esi], al
add esp, 0x18
mov eax, dword [ebx]
add esi, edx
cmp edi, dword [eax]
jb 0x440ba1
mov edi, dword [ebp - 0x14]
jmp 0x440ca6
xor ecx, ecx
cmp dword [eax], ecx
jbe 0x440ca6
inc esi
nop dword [eax]
mov al, byte [ecx + edi]
inc ecx
mov byte [esi + 1], al
mov byte [esi], al
mov byte [esi - 1], al
mov byte [esi + 2], 0xff
add esi, edx
mov eax, dword [ebx]
cmp ecx, dword [eax]
jb 0x440c10
jmp 0x440ca6
cmp dword [ebp - 0xb8], 0
je 0x440d7a
mov dword [ebp - 0xa4], 0
cmp edx, 1
jne 0x440d17
cmp dword [eax], 0
jbe 0x440cac
mov edx, dword [ebp - 0x10]
mov ecx, edi
mov eax, dword [ebp - 0xc]
sub ecx, edx
mov edi, dword [ebp - 0xa4]
sub eax, edx
mov dword [ebp - 0xac], eax
sub esi, edx
mov dword [ebp - 0xa0], ecx
nop
movzx eax, byte [edx + eax]
push eax
movzx eax, byte [edx]
push eax
movzx eax, byte [edx + ecx]
push eax
call fcn.004429c0
mov ecx, dword [ebp - 0xa0]
lea edx, [edx + 1]
mov byte [esi + edx - 1], al
inc edi
mov eax, dword [ebx]
add esp, 0xc
cmp edi, dword [eax]
mov eax, dword [ebp - 0xac]
jb 0x440c70
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x98]
mov eax, dword [ebx]
inc ecx
mov dword [ebp - 0x98], ecx
cmp ecx, dword [eax + 4]
jb 0x440930
mov esi, dword [ebp - 0xb0]
push ebx
call fcn.004425c0
mov eax, dword [ebx]
add esp, 4
mov ecx, dword [ebp - 0xcc]
mov edx, dword [ebp - 0xd4]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebx]
mov ecx, dword [ebp - 0xd0]
mov eax, dword [eax + 4]
mov dword [ecx], eax
test edx, edx
je 0x440d04
mov eax, dword [ebx]
xor ecx, ecx
cmp dword [eax + 8], 3
setge cl
lea ecx, [ecx*2 + 1]
mov dword [edx], ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff9ee
mov esp, ebp
pop ebp
ret
cmp dword [eax], 0
jbe 0x440cac
mov edx, dword [ebp - 0x10]
mov ecx, edi
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0xa4]
sub eax, edx
sub ecx, edx
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa0], ecx
nop word [eax + eax]
movzx eax, byte [edx + eax]
push eax
movzx eax, byte [edx]
push eax
movzx eax, byte [edx + ecx]
push eax
call fcn.004429c0
mov ecx, dword [ebp - 0xa0]
lea edx, [edx + 1]
mov byte [esi], al
lea esi, [esi + 2]
mov byte [esi - 1], 0xff
inc edi
mov eax, dword [ebx]
add esp, 0xc
cmp edi, dword [eax]
mov eax, dword [ebp - 0xac]
jb 0x440d40
jmp 0x440ca0
mov ecx, dword [eax + 8]
cmp ecx, 4
jne 0x440ec6
cmp dword [ebx + 0x47e8], 0
jne 0x440e57
cmp dword [eax], 0
mov dword [ebp - 0x9c], 0
jbe 0x440ca6
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
sub ecx, edx
mov dword [ebp - 0xac], ecx
sub eax, edx
mov ecx, edi
mov dword [ebp - 0xa8], eax
sub ecx, edx
mov edi, edx
mov dword [ebp - 0xa0], ecx
nop dword [eax + eax]
mov al, byte [eax + edi]
mov byte [ebp - 0xc8], al
mov edx, dword [ebp - 0xc8]
movzx eax, byte [edi]
push edx
push eax
call fcn.004412c0
add esp, 8
movzx eax, al
push eax
mov eax, dword [ebp - 0xac]
push edx
movzx eax, byte [eax + edi]
push eax
call fcn.004412c0
add esp, 8
movzx eax, al
push eax
mov eax, dword [ebp - 0xa0]
push edx
movzx eax, byte [eax + edi]
push eax
call fcn.004412c0
add esp, 8
movzx eax, al
push eax
call fcn.004429c0
mov ecx, dword [ebp - 0x9c]
lea edi, [edi + 1]
mov edx, dword [ebp + 0x18]
inc ecx
mov byte [esi], al
add esp, 0xc
mov byte [esi + 1], 0xff
add esi, edx
mov eax, dword [ebx]
mov dword [ebp - 0x9c], ecx
cmp ecx, dword [eax]
mov eax, dword [ebp - 0xa8]
jb 0x440dd0
mov edi, dword [ebp - 0x14]
jmp 0x440ca6
cmp ecx, 4
jne 0x440ec6
cmp dword [ebx + 0x47e8], 2
jne 0x440ec6
cmp dword [eax], 0
mov dword [ebp - 0x9c], 0
jbe 0x440ca6
mov eax, dword [ebp - 8]
mov edx, edi
sub eax, edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0xa4], eax
movzx eax, byte [edx + eax]
push eax
mov al, byte [edx]
not al
movzx eax, al
push eax
call fcn.004412c0
mov ecx, dword [ebp - 0x9c]
lea edx, [edx + 1]
mov byte [esi], al
inc ecx
mov byte [esi + 1], 0xff
add esp, 8
mov eax, dword [ebx]
add esi, edi
mov dword [ebp - 0x9c], ecx
cmp ecx, dword [eax]
mov eax, dword [ebp - 0xa4]
jb 0x440e88
jmp 0x440ca0
xor ecx, ecx
cmp edx, 1
jne 0x440ef5
cmp dword [eax], ecx
jbe 0x440ca6
mov edx, edi
sub edx, esi
nop dword [eax]
mov al, byte [edx + esi]
lea esi, [esi + 1]
mov byte [esi - 1], al
inc ecx
mov eax, dword [ebx]
cmp ecx, dword [eax]
jb 0x440ee0
jmp 0x440ca3
cmp dword [eax], ecx
jbe 0x440ca6
nop dword [eax]
mov al, byte [ecx + edi]
lea esi, [esi + 2]
mov byte [esi - 2], al
inc ecx
mov byte [esi - 1], 0xff
mov eax, dword [ebx]
cmp ecx, dword [eax]
jb 0x440f00
jmp 0x440ca6
push str.bad_req_comp
call fcn.00444840
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004ff9ee
mov esp, ebp
pop ebp
ret