Function at 0x44761b
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x4d10e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xdc], eax
mov eax, dword [esi]
push edi
mov dword [ebp - 0xd0], esi
mov dword [ebp - 0xb0], ebx
and dword [eax + 8], 0
cmp ebx, 4
ja 0x447e8b
push esi
call fcn.0044adfd
pop ecx
test eax, eax
jne 0x447683
push esi
call fcn.00449412
jmp 0x447e95
xor edi, edi
inc edi
push 3
pop edx
test ebx, ebx
jne 0x44769d
mov eax, dword [esi]
mov ebx, edi
cmp dword [eax + 8], edx
cmovge ebx, edx
mov dword [ebp - 0xb0], ebx
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [ebp - 0xbc], eax
cmp eax, edx
jne 0x4476d0
cmp dword [esi + 0x47ec], edx
je 0x4476c6
cmp dword [esi + 0x47e8], 0
jne 0x4476d0
cmp dword [esi + 0x47e4], 0
jne 0x4476d0
mov ecx, edi
mov dword [ebp - 0xc4], ecx
jmp 0x4476dc
xor ecx, ecx
mov dword [ebp - 0xc4], ecx
cmp eax, edx
jne 0x4476ec
cmp ebx, edx
jge 0x4476ec
test ecx, ecx
jne 0x4476ec
mov eax, edi
mov dword [ebp - 0xbc], edi
and dword [ebp - 0xb4], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x14], xmm0
test eax, eax
jle 0x447802
lea eax, [esi + 0x46a0]
lea edi, [ebp - 0x88]
mov dword [ebp - 0xa0], eax
mov eax, dword [esi]
mov eax, dword [eax]
add eax, edx
push eax
call fcn.0044e7b8
pop ecx
mov ecx, dword [ebp - 0xa0]
mov dword [ecx + 0x34], eax
test eax, eax
je 0x44781d
mov eax, dword [esi + 0x4684]
cdq
idiv dword [ecx]
and dword [edi + 0x10], 0
mov dword [ebp - 0x98], eax
mov dword [edi], eax
mov eax, dword [esi + 0x4688]
cdq
idiv dword [ecx + 4]
xor edx, edx
mov ecx, eax
mov dword [ebp - 0xb8], eax
sar ecx, 1
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x98]
mov dword [edi + 0xc], ecx
dec eax
mov ecx, dword [esi]
add eax, dword [ecx]
div dword [ebp - 0x98]
mov ecx, dword [ebp - 0xa0]
xor edx, edx
mov dword [edi + 8], eax
inc edx
mov eax, dword [ecx + 0x28]
mov dword [edi - 4], eax
mov dword [edi - 8], eax
mov eax, dword [ebp - 0xb8]
cmp dword [ebp - 0x98], edx
jne 0x4477ae
cmp eax, edx
jne 0x4477a2
mov eax, 0x447ea7
jmp 0x4477d4
cmp eax, 2
jne 0x4477ae
mov eax, 0x4521cb
jmp 0x4477d4
cmp dword [ebp - 0x98], 2
jne 0x4477cf
cmp eax, edx
jne 0x4477c2
mov eax, 0x451efe
jmp 0x4477d4
cmp eax, 2
jne 0x4477cf
mov eax, dword [esi + 0x4814]
jmp 0x4477d4
mov eax, 0x451ec2
mov dword [edi - 0xc], eax
add ecx, 0x48
mov eax, dword [ebp - 0xb4]
add edi, 0x20
inc eax
mov dword [ebp - 0xa0], ecx
push 3
mov dword [ebp - 0xb4], eax
pop edx
cmp eax, dword [ebp - 0xbc]
jl 0x447714
xor edi, edi
inc edi
mov eax, dword [esi]
push edi
push dword [eax + 4]
push dword [eax]
push ebx
call fcn.0044e7ec
add esp, 0x10
mov dword [ebp - 0xcc], eax
test eax, eax
jne 0x44782f
push esi
call fcn.00449412
mov dword [esp], str.outofmem
jmp 0x447e90
mov eax, dword [esi]
xor ecx, ecx
mov dword [ebp - 0x98], ecx
cmp dword [eax + 4], ecx
jbe 0x4479d8
mov edx, dword [ebp - 0x14]
mov edi, dword [eax]
and dword [ebp - 0x9c], 0
imul edi, ecx
imul edi, ebx
add edi, dword [ebp - 0xcc]
cmp dword [ebp - 0xbc], 0
mov dword [ebp - 0xa4], edi
jle 0x447943
mov edi, dword [ebp - 0xbc]
lea eax, [esi + 0x46bc]
mov dword [ebp - 0xa8], eax
lea ebx, [ebp - 0x7c]
mov esi, eax
mov eax, dword [ebx - 8]
lea ecx, [ebx - 0x10]
sar eax, 1
lea edx, [ebx - 0x14]
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xc8], edx
cmp dword [ebx], eax
jl 0x4478ab
mov eax, dword [edx]
mov edx, ecx
mov dword [ebp - 0xa0], ecx
jmp 0x4478c1
mov eax, ecx
mov dword [ebp - 0xc8], edx
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xa8], eax
mov eax, dword [ecx]
push dword [ebx - 0xc]
push dword [ebx - 4]
push eax
push dword [edx]
push dword [esi + 0x18]
call dword [ebx - 0x18]
mov ecx, dword [ebp - 0x9c]
add esp, 0x14
mov dword [ebp + ecx*4 - 0x14], eax
mov eax, dword [ebx]
inc eax
mov dword [ebx], eax
cmp eax, dword [ebx - 8]
jl 0x447911
mov edx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0xc8]
and dword [ebx], 0
inc dword [ebx + 4]
mov edx, dword [edx]
mov dword [eax], edx
mov eax, dword [ebx + 4]
cmp eax, dword [esi]
jge 0x447911
mov eax, dword [esi + 4]
add eax, edx
mov edx, dword [ebp - 0xa8]
mov dword [edx], eax
inc ecx
add ebx, 0x20
add esi, 0x48
mov dword [ebp - 0x9c], ecx
cmp ecx, edi
jl 0x447884
mov esi, dword [ebp - 0xd0]
mov edi, dword [ebp - 0xa4]
mov ebx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0x14]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x98]
cmp ebx, 3
jl 0x447bea
cmp dword [eax + 8], 3
jne 0x447a32
cmp dword [ebp - 0xc4], 0
je 0x447a1a
and dword [ebp - 0xa4], 0
cmp dword [eax], 0
jbe 0x4479c3
mov ecx, dword [ebp - 0x10]
mov eax, edx
mov edx, dword [ebp - 0xc]
sub eax, ecx
add edi, 2
mov dword [ebp - 0x9c], eax
sub edx, ecx
mov dword [ebp - 0xac], edx
mov edx, dword [ebp - 0xa4]
mov al, byte [ecx + eax]
mov byte [edi - 2], al
mov al, byte [ecx]
mov byte [edi - 1], al
mov eax, dword [ebp - 0xac]
mov al, byte [ecx + eax]
mov byte [edi], al
mov byte [edi + 1], 0xff
add edi, ebx
mov eax, dword [esi]
inc edx
inc ecx
cmp edx, dword [eax]
mov eax, dword [ebp - 0x9c]
jb 0x447990
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x98]
mov eax, dword [esi]
inc ecx
mov dword [ebp - 0x98], ecx
cmp ecx, dword [eax + 4]
jb 0x447845
xor edi, edi
inc edi
push esi
call fcn.00449412
mov eax, dword [esi]
pop ecx
mov ecx, dword [ebp - 0xd4]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [esi]
mov ecx, dword [ebp - 0xd8]
mov eax, dword [eax + 4]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xdc]
test ecx, ecx
je 0x447a0f
mov eax, dword [esi]
push 3
pop edx
cmp dword [eax + 8], edx
cmovge edi, edx
mov dword [ecx], edi
mov eax, dword [ebp - 0xcc]
jmp 0x447e98
push ebx
push dword [eax]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
call dword [esi + 0x4810]
add esp, 0x18
jmp 0x4479ba
cmp dword [eax + 8], 4
jne 0x447bbf
mov ecx, dword [esi + 0x47e8]
test ecx, ecx
jne 0x447b15
and dword [ebp - 0x9c], ecx
cmp dword [eax], ecx
jbe 0x4479bd
mov ecx, dword [ebp - 0x10]
lea eax, [edi + 2]
mov edi, dword [ebp - 0x14]
sub ecx, edi
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xa4], ecx
sub eax, edi
mov ecx, dword [ebp - 0xc]
sub ecx, edi
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xac], ecx
mov al, byte [edi + eax]
mov byte [ebp - 0xc0], al
push dword [ebp - 0xc0]
movzx eax, byte [edi]
push eax
call fcn.004481fe
mov ecx, dword [ebp - 0xa0]
push dword [ebp - 0xc0]
mov byte [ecx - 2], al
mov eax, dword [ebp - 0xa4]
movzx eax, byte [edi + eax]
push eax
call fcn.004481fe
mov ecx, dword [ebp - 0xa0]
push dword [ebp - 0xc0]
mov byte [ecx - 1], al
mov eax, dword [ebp - 0xac]
movzx eax, byte [edi + eax]
push eax
call fcn.004481fe
mov ecx, dword [ebp - 0xa0]
add esp, 0x18
mov byte [ecx], al
mov byte [ecx + 1], 0xff
add ecx, ebx
mov eax, dword [esi]
mov dword [ebp - 0xa0], ecx
mov ecx, dword [ebp - 0x9c]
inc ecx
inc edi
cmp ecx, dword [eax]
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x9c], ecx
jb 0x447a85
jmp 0x4479ba
mov eax, dword [eax]
mov edx, dword [esi + 0x4810]
push ebx
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
cmp ecx, 2
jne 0x447bb8
call edx
mov eax, dword [esi]
xor ecx, ecx
add esp, 0x18
mov dword [ebp - 0x9c], ecx
cmp dword [eax], ecx
jbe 0x4479ba
add edi, 2
mov eax, dword [ebp - 8]
mov al, byte [ecx + eax]
mov byte [ebp - 0xb4], al
mov al, byte [edi - 2]
push dword [ebp - 0xb4]
not al
movzx eax, al
push eax
call fcn.004481fe
push dword [ebp - 0xb4]
mov byte [edi - 2], al
mov al, byte [edi - 1]
not al
movzx eax, al
push eax
call fcn.004481fe
push dword [ebp - 0xb4]
mov byte [edi - 1], al
mov al, byte [edi]
not al
movzx eax, al
push eax
call fcn.004481fe
mov ecx, dword [ebp - 0x9c]
add esp, 0x18
mov byte [edi], al
add edi, ebx
mov eax, dword [esi]
inc ecx
mov dword [ebp - 0x9c], ecx
cmp ecx, dword [eax]
jb 0x447b4c
jmp 0x4479ba
call edx
jmp 0x447a2d
xor ecx, ecx
cmp dword [eax], ecx
jbe 0x4479bd
inc edi
mov eax, dword [ebp - 0x14]
mov al, byte [ecx + eax]
mov byte [edi + 1], al
mov byte [edi], al
mov byte [edi - 1], al
mov byte [edi + 2], 0xff
add edi, ebx
mov eax, dword [esi]
inc ecx
cmp ecx, dword [eax]
jb 0x447bca
jmp 0x4479ba
cmp dword [ebp - 0xc4], 0
je 0x447cce
and dword [ebp - 0x9c], 0
mov eax, dword [eax]
cmp ebx, 1
jne 0x447c6c
test eax, eax
je 0x4479c3
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
sub eax, ebx
sub ecx, ebx
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xac], ecx
sub edi, ebx
movzx eax, byte [ebx + eax]
push eax
movzx eax, byte [ebx]
push eax
movzx eax, byte [ebx + ecx]
push eax
call fcn.004497ad
mov ecx, dword [ebp - 0x9c]
add esp, 0xc
mov byte [ebx + edi], al
inc ecx
mov eax, dword [esi]
inc ebx
mov dword [ebp - 0x9c], ecx
cmp ecx, dword [eax]
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xac]
jb 0x447c28
mov ebx, dword [ebp - 0xb0]
jmp 0x4479ba
test eax, eax
je 0x4479c3
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
sub eax, ebx
sub ecx, ebx
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xac], ecx
movzx eax, byte [ebx + eax]
push eax
movzx eax, byte [ebx]
push eax
movzx eax, byte [ebx + ecx]
push eax
call fcn.004497ad
mov ecx, dword [ebp - 0x9c]
add esp, 0xc
mov byte [edi], al
inc ecx
mov byte [edi + 1], 0xff
lea edi, [edi + 2]
mov eax, dword [esi]
inc ebx
mov dword [ebp - 0x9c], ecx
cmp ecx, dword [eax]
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xac]
jb 0x447c8d
jmp 0x447c61
cmp dword [eax + 8], 4
jne 0x447e33
mov ecx, dword [esi + 0x47e8]
test ecx, ecx
jne 0x447dc3
and dword [ebp - 0x9c], ecx
cmp dword [eax], ecx
jbe 0x4479bd
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
sub edx, ecx
mov dword [ebp - 0xa4], edx
sub eax, ecx
mov edx, dword [ebp - 0xc]
sub edx, ecx
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xac], edx
mov al, byte [eax + ecx]
mov byte [ebp - 0xb8], al
push dword [ebp - 0xb8]
movzx eax, byte [ecx]
push eax
call fcn.004481fe
mov ecx, dword [ebp - 0xa4]
mov bh, al
mov eax, dword [ebp - 0xa0]
push dword [ebp - 0xb8]
movzx ecx, byte [ecx + eax]
push ecx
call fcn.004481fe
mov ecx, dword [ebp - 0xac]
mov bl, al
mov eax, dword [ebp - 0xa0]
push dword [ebp - 0xb8]
movzx ecx, byte [ecx + eax]
push ecx
call fcn.004481fe
movzx ecx, al
push ecx
movzx eax, bl
push eax
movzx eax, bh
push eax
call fcn.004497ad
mov edx, dword [ebp - 0x9c]
add esp, 0x24
mov ebx, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xa0]
mov byte [edi], al
mov byte [edi + 1], 0xff
add edi, ebx
mov eax, dword [esi]
inc edx
inc ecx
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0xa0], ecx
cmp edx, dword [eax]
mov eax, dword [ebp - 0xa8]
jb 0x447d1e
jmp 0x4479ba
cmp ecx, 2
jne 0x447e33
and dword [ebp - 0x9c], 0
cmp dword [eax], 0
jbe 0x4479bd
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
sub eax, ecx
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xa4], eax
movzx eax, byte [eax + ecx]
push eax
mov al, byte [ecx]
not al
movzx eax, al
push eax
call fcn.004481fe
mov edx, dword [ebp - 0x9c]
mov byte [edi], al
mov byte [edi + 1], 0xff
add edi, ebx
mov eax, dword [esi]
inc edx
pop ecx
pop ecx
mov ecx, dword [ebp - 0xa8]
inc ecx
mov dword [ebp - 0x9c], edx
cmp edx, dword [eax]
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], ecx
jb 0x447dec
jmp 0x4479ba
mov eax, dword [eax]
cmp ebx, 1
jne 0x447e66
and dword [ebp - 0xa4], 0
test eax, eax
je 0x4479bd
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xa4]
sub ecx, edi
mov al, byte [ecx + edi]
inc edx
mov byte [edi], al
inc edi
mov eax, dword [esi]
cmp edx, dword [eax]
jb 0x447e54
jmp 0x4479ba
xor ecx, ecx
test eax, eax
je 0x4479bd
mov ebx, dword [ebp - 0x14]
mov al, byte [ecx + ebx]
inc ecx
mov byte [edi], al
lea edi, [edi + 2]
mov byte [edi - 1], 0xff
mov eax, dword [esi]
cmp ecx, dword [eax]
jb 0x447e73
jmp 0x447c61
push str.bad_req_comp
call fcn.0044b069
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047c472
leave
ret