Function at 0x4428b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x556f54]
push esi
push edi
mov edi, dword [ebp + 0x18]
xor esi, esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], eax
movzx ecx, byte [edi + 0x1e]
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x442acf
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
add edx, ecx
mov ecx, dword [edi]
add ebx, ecx
test byte [edi + 0x18], 0x40
mov dword [ebp - 0x10], ecx
jne 0x442901
mov eax, dword [ebp + 8]
inc edx
mov ecx, dword [eax + 8]
mov eax, dword [eax]
shl ecx, 7
inc ebx
mov esi, dword [ecx + eax + 0x40]
mov eax, dword [ebp + 0xc]
cmp edx, dword [eax + 8]
ja 0x442ace
cmp ebx, dword [eax + 0xc]
ja 0x442ace
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x442936
mov eax, dword [ebx + 0x1c]
imul eax, dword [ebx + 0x18]
shl eax, 2
push eax
push 0
push ecx
call fcn.004fdf60
add esp, 0xc
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push 0
push 4
push 0
push 0
push dword [ebx + 0xc]
call dword [sym.imp.GDI32.dll_ExtTextOutA]
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x1c]
cdq
dec ecx
xor eax, edx
sub eax, edx
imul eax, ecx
add eax, dword [ebx + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
mov ecx, edx
imul ecx, dword [ebp + 0x14]
mov eax, dword [eax]
lea ebx, [edx + 1]
add ecx, dword [ebp + 0x10]
test byte [edi + 0x18], 0x20
lea eax, [eax + ecx*4]
lea ebx, [eax + ebx*4]
mov dword [ebp - 8], eax
movzx eax, byte [edi + 0x1c]
mov dword [ebp - 0xc], ebx
jne 0x442a55
movzx edx, byte [edi + 0x1d]
xor ecx, ecx
add edx, 2
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x10], ecx
jle 0x442ace
nop dword [eax]
mov eax, dword [edi + 0x10]
mov edi, dword [ebp - 8]
movzx ecx, byte [ecx + eax]
mov eax, dword [ebp + 8]
add ecx, edx
xor edx, edx
imul ecx, dword [eax + 8]
mov eax, dword [eax]
add ecx, dword [ebp - 0x24]
lea eax, [eax + ecx*4]
mov ecx, ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
sub eax, ebx
sub edi, ebx
mov dword [ebp - 0x28], edi
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
cmp dword [eax + ecx], 0
je 0x442a12
test esi, 0xff000000
je 0x4429f5
mov dword [ecx], esi
mov eax, dword [edi + 0x10]
mov edi, dword [ebp - 0x2c]
movzx eax, byte [edx + eax]
mov eax, dword [edi + eax*4]
mov edi, dword [ebp + 0x18]
test eax, 0xff000000
je 0x442a0f
mov dword [ebx + ecx], eax
mov eax, dword [ebp - 0x18]
inc edx
add ecx, 4
cmp edx, dword [ebp - 0x20]
jl 0x4429e5
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x30]
add eax, dword [ecx + 0x14]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
inc ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax + 8]
shl eax, 2
add dword [ebp - 8], eax
add ebx, eax
mov dword [ebp - 0xc], ebx
cmp ecx, dword [ebp - 0x10]
jl 0x4429b0
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
movzx ecx, byte [edi + 0x1d]
imul ecx, dword [edx + 8]
add ecx, eax
cmp dword [ebp - 0x10], 0
mov eax, dword [edx]
mov edx, dword [eax + ecx*4 - 8]
jle 0x442ace
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov eax, ebx
sub edi, ebx
mov ebx, ecx
sub ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp dword [eax + edi], 0
je 0x442a9b
test esi, 0xff000000
je 0x442a90
mov dword [eax], esi
test edx, 0xff000000
je 0x442a9b
mov dword [eax + ebx], edx
add eax, 4
sub ecx, 1
jne 0x442a80
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
add eax, dword [ecx + 0x14]
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
shl eax, 2
add ecx, eax
add ebx, eax
sub dword [ebp - 0x10], 1
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
jne 0x442a71
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret