Function at 0x42ec80
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xdc
mov ebx, dword [esp + 0xf8]
test ebx, ebx
je 0x42f1bd
mov ebp, dword [ebx + 0xc]
test ebp, ebp
je 0x42f1bd
mov edi, dword [ebx + 0x10]
mov dword [esp + 0x38], edi
mov eax, dword [ebx + 0x14]
cmp edi, eax
jb 0x42f1bd
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x34], ecx
sub edi, eax
cmp edi, ecx
jb 0x42f1bd
lea esi, [ebp + eax]
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0xf4]
mov edx, dword [esi + 0x8c]
test edx, edx
je 0x42f1bd
mov edx, dword [edx + 4]
cmp edx, 6
je 0x42ecfa
mov esi, edx
and esi, 0xfffffffd
cmp esi, 8
jne 0x42eeb0
mov edi, dword [esp + 0xf4]
mov edx, dword [edi + 4]
mov dword [esp + 0x3c], edx
mov esi, dword [edi + 8]
cmp edx, esi
je 0x42f190
cmp ecx, 7
jbe 0x42eea0
mov edx, dword [esp + 0x30]
add edx, 8
mov dword [esp + 0x44], edx
add eax, 8
mov dword [ebx + 0x14], eax
lea eax, [ecx - 8]
mov dword [esp + 0x34], eax
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0xf4]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x34]
cmp ecx, eax
jb 0x42eea0
sub ecx, eax
mov dword [esp + 0x48], ecx
mov dword [ebx + 0x18], ecx
mov dword [esp + 0x82], 0
mov dword [esp + 0x8a], 0
lea edx, [esp + 0x86]
lea edi, [esp + 0x84]
lea ecx, [esp + 0x82]
sub ecx, edi
add ecx, 0xc
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xf4]
lea ecx, [eax + 0x24]
cmp esi, 4
jae 0x42f1d0
test esi, esi
je 0x42edc2
mov al, byte [eax + 0x24]
mov byte [esp + 0x4c], al
mov byte [esp + 0x82], al
test esi, 2
jne 0x42f395
xor eax, eax
mov edi, dword [esp + 0x30]
lea esi, [esi]
nop
lea esi, [edx + eax]
mov cl, byte [esi]
xor cl, byte [edi + eax]
mov byte [esi], cl
inc eax
cmp eax, 8
jne 0x42edd0
lea edx, [esp + 0xa2]
mov eax, dword [ebx]
mov dword [esp + 0xa2], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0xa6], eax
mov al, byte [ebx + 8]
mov byte [esp + 0xaa], al
mov ax, word [ebx + 9]
mov word [esp + 0xab], ax
mov eax, dword [esp + 0x48]
rol ax, 8
mov word [esp + 0xad], ax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x24], eax
mov esi, dword [esp + 0x44]
mov ecx, esi
sub ecx, ebp
mov eax, dword [esp + 0x38]
sub eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0xd
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], eax
lea eax, [esp + 0x82]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xf4]
add eax, 0x8c
mov dword [esp], eax
call fcn.00440180
test eax, eax
je 0x42f1b0
cmp eax, 0xffff9d00
jne 0x42eea5
lea esi, [esi]
lea esi, [esi]
nop
mov eax, 0xffff8e80
add esp, 0xdc
pop ebx
pop esi
pop edi
pop ebp
ret
cmp edx, 2
jne 0x42f1bd
mov eax, dword [esp + 0xf4]
mov esi, dword [eax + 0xcc]
mov ebp, dword [eax + 4]
cmp esi, 1
jle 0x42f210
lea eax, [ebp + ebp]
mov edx, ebp
cmp ecx, eax
jb 0x42eea0
mov eax, dword [esp + 0xf4]
mov eax, dword [eax + 0xc]
lea eax, [edx + eax + 1]
cmp ecx, eax
jb 0x42eea0
mov eax, ecx
xor edx, edx
div ebp
mov dword [esp + 0x38], edx
test edx, edx
jne 0x42eea0
mov eax, dword [esp + 0xf4]
add eax, 0x24
dec esi
jg 0x42f260
lea edx, [esp + 0x5c]
mov dword [esp + 0x18], edx
mov edi, dword [esp + 0x30]
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0x34]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0xf4]
add eax, 0x8c
mov dword [esp], eax
call fcn.0043fe40
test eax, eax
jne 0x42eea5
mov eax, dword [ebx + 0x18]
cmp eax, dword [esp + 0x5c]
jne 0x42f1bd
movzx edi, byte [edi + eax - 1]
and edi, 0xff
mov esi, dword [esp + 0xf4]
mov edx, dword [esi + 0xc]
lea edx, [edi + edx + 1]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004403c0
mov dword [esp + 0x40], eax
and edi, eax
lea edx, [edi + 1]
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0xf4]
mov ecx, dword [eax + 0xcc]
test ecx, ecx
jle 0x42f1bd
mov eax, dword [ebx + 0x18]
mov esi, eax
sub esi, edx
mov dword [esp + 0x34], esi
mov ecx, eax
cmp eax, 0x100
jbe 0x42efba
mov ecx, 0x100
mov ebp, eax
sub ebp, ecx
cmp ebp, eax
jae 0x42f007
lea esi, [esi]
lea esi, [esi]
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.004403c0
mov esi, eax
mov eax, dword [esp + 0x30]
add eax, ebp
mov al, byte [eax]
mov dword [esp + 4], edi
and eax, 0xff
mov dword [esp], eax
call fcn.004403e0
and esi, eax
add dword [esp + 0x38], esi
inc ebp
cmp ebp, dword [ebx + 0x18]
jb 0x42efd0
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x38]
mov dword [esp], edx
call fcn.004403e0
mov edx, dword [esp + 0x40]
and edx, eax
mov esi, edx
and esi, 1
mov dword [esp], esi
call fcn.004403a0
mov edx, eax
mov ebp, dword [ebx + 0x18]
mov dword [esp + 0x62], 0
xor eax, eax
mov dword [esp + 0x66], 0
mov dword [esp + 0x7e], 0
lea edi, [esp + 0x68]
mov ecx, 6
rep stosd dword es:[edi], eax
mov dword [esp + 0x82], 0
mov dword [esp + 0x86], 0
mov dword [esp + 0x9e], 0
lea edi, [esp + 0x88]
mov ecx, 6
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0xf4]
sub ebp, dword [edi + 0xc]
mov eax, dword [esp + 0x3c]
and edx, eax
mov eax, ebp
sub eax, edx
mov dword [ebx + 0x18], eax
mov edx, dword [ebx]
mov dword [esp + 0xa2], edx
mov edx, dword [ebx + 4]
mov dword [esp + 0xa6], edx
mov dl, byte [ebx + 8]
mov byte [esp + 0xaa], dl
mov dx, word [ebx + 9]
mov word [esp + 0xab], dx
mov edx, eax
rol dx, 8
mov word [esp + 0xad], dx
mov edx, dword [edi + 0xcc]
test edx, edx
jle 0x42f1bd
mov edx, ebp
cmp ebp, 0x100
jb 0x42f300
sub edx, 0x100
lea edi, [esp + 0x62]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xd
lea eax, [esp + 0xa2]
mov dword [esp + 4], eax
mov edx, dword [esp + 0xf4]
lea eax, [edx + 0x40]
mov dword [esp], eax
call fcn.00440680
test eax, eax
je 0x42f30a
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xf4]
mov edx, dword [eax + 0xc]
mov dword [esp + 4], edx
lea edx, [esp + 0x82]
mov dword [esp], edx
call fcn.0042b3a0
mov eax, dword [esp + 0xf4]
mov edx, dword [eax + 0xc]
mov dword [esp + 4], edx
mov dword [esp], edi
call fcn.0042b3a0
mov eax, dword [esp + 0x30]
jmp 0x42eea5
mov eax, dword [esp + 0x30]
mov dword [esp + 0x44], eax
mov dword [esp + 0x30], ebx
jmp 0x42ed37
mov eax, dword [esp + 0x5c]
cmp dword [ebx + 0x18], eax
je 0x42f24d
mov eax, 0xffff9400
add esp, 0xdc
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0xf4]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x82], eax
mov eax, dword [ecx + esi - 4]
mov dword [esp + esi + 0x7e], eax
mov edi, edx
and edi, 0xfffffffc
lea eax, [esp + 0x82]
sub eax, edi
sub ecx, eax
mov dword [esp + 0x4c], ecx
lea ecx, [esi + eax]
shr ecx, 2
mov esi, dword [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
jmp 0x42edc2
mov eax, ebp
xor edx, edx
jmp 0x42eed8
mov eax, dword [esp + 0xf4]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0042b3a0
mov eax, dword [esp + 0xf4]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.0042b3a0
test esi, esi
je 0x42eea0
xor eax, eax
add esp, 0xdc
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ebp, 4
jae 0x42f2c0
test ebp, ebp
je 0x42f2a0
mov edi, dword [esp + 0x30]
mov dl, byte [edi]
mov byte [esp + 0x34], dl
mov edi, dword [esp + 0xf4]
mov byte [edi + 0x24], dl
test ebp, 2
je 0x42f2f2
mov ecx, dword [esp + 0x30]
mov dx, word [ecx + ebp - 2]
mov word [eax + ebp - 2], dx
mov ecx, dword [ebx + 0x18]
lea esi, [esi]
lea esi, [esi]
add dword [esp + 0x30], ebp
add dword [ebx + 0x14], ebp
sub ecx, ebp
mov dword [esp + 0x34], ecx
mov dword [ebx + 0x18], ecx
jmp 0x42ef0d
mov esi, dword [esp + 0x30]
mov edx, dword [esi]
mov ecx, dword [esp + 0xf4]
mov dword [ecx + 0x24], edx
mov edx, dword [esi + ebp - 4]
mov dword [eax + ebp - 4], edx
mov ecx, dword [esp + 0xf4]
lea edi, [ecx + 0x28]
and edi, 0xfffffffc
mov ecx, eax
sub ecx, edi
sub esi, ecx
add ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x18]
jmp 0x42f2a0
mov edx, 0x100
jmp 0x42f0f1
mov edx, dword [esp + 0xf4]
mov eax, dword [edx + 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebp
mov edx, dword [esp + 0x34]
mov dword [esp + 0xc], edx
mov eax, dword [ebx + 0x18]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
lea ebx, [esp + 0x82]
mov dword [esp], ebx
call fcn.00440600
mov eax, dword [esp + 0xf4]
mov eax, dword [eax + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.00440340
test eax, eax
je 0x42f219
mov eax, dword [esp + 0xf4]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0042b3a0
mov eax, dword [esp + 0xf4]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.0042b3a0
jmp 0x42eea0
mov ax, word [ecx + esi - 2]
mov word [esp + esi + 0x80], ax
jmp 0x42edc2