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

Disassembly:
sub esp, 0x430
push ebx
push ebp
push esi
xor eax, eax
mov esi, ecx
push edi
mov dword [esp + 0x19], eax
mov ecx, 0x102
lea edi, [esp + 0x34]
mov byte [esp + 0x1d], al
rep stosd dword es:[edi], eax
xor bl, bl
xor ecx, ecx
mov byte [esp + 0x18], bl
mov dword [esp + 0x18], ecx
mov word [esp + 0x1c], cx
mov ecx, esi
stosw word es:[edi], ax
call fcn.0042dc00
cmp eax, 0x81
jne 0x42eaf8
mov ecx, esi
call fcn.0042db60
cmp eax, 0x40
jg 0x42eaf8
mov ecx, dword [esi + 0x18]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x1c]
push 2
push eax
mov byte [esp + 0x24], 5
mov byte [esp + 0x25], 0xd
call fcn.0042e420
test eax, eax
jne 0x42eadf
cmp dword [esp + 0x28], 2
jb 0x42eadf
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x18]
push 3
push edx
call fcn.0042e360
test eax, eax
jne 0x42eadf
cmp dword [esp + 0x10], 3
jb 0x42eadf
cmp byte [esp + 0x20], 0x71
jne 0x42eadf
mov eax, dword [esp + 0x21]
lea ecx, [esp + 0x10]
and eax, 0xffff
push ecx
mov ecx, dword [esi + 0x18]
lea edx, [esp + 0x38]
lea edi, [eax*4 + 1]
push edi
push edx
call fcn.0042e360
test eax, eax
jne 0x42eadf
mov ebp, dword [esp + 0x10]
cmp ebp, edi
jb 0x42eadf
cmp byte [esp + edi + 0x33], 0xd
je 0x42edb4
mov dword [esi + 0x250], 0xf
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x430
ret 4
mov ecx, esi
call fcn.0042dc00
cmp eax, 0x81
jne 0x42ecdf
mov ecx, esi
call fcn.0042db60
cmp eax, 0x40
jle 0x42ecdf
mov byte [esp + 0x18], 5
cmp bl, 0xa
mov byte [esp + 0x19], 0xd
jae 0x42ec94
lea eax, [esp + 0x28]
lea ecx, [esp + 0x18]
push eax
push 2
push ecx
mov ecx, dword [esi + 0x18]
call fcn.0042e420
test eax, eax
jne 0x42ecc6
cmp dword [esp + 0x28], 2
jb 0x42ecc6
mov ecx, dword [esi + 0x18]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push 3
push eax
call fcn.0042e360
test eax, eax
jne 0x42ecc6
cmp dword [esp + 0x10], 3
jb 0x42ecc6
cmp byte [esp + 0x20], 0x71
jne 0x42ecc6
mov ecx, dword [esp + 0x21]
lea edx, [esp + 0x10]
and ecx, 0xffff
push edx
lea eax, [esp + 0x38]
lea edi, [ecx*4 + 1]
mov ecx, dword [esi + 0x18]
push edi
push eax
call fcn.0042e360
test eax, eax
jne 0x42ecc6
cmp dword [esp + 0x10], edi
jb 0x42ecc6
cmp byte [esp + edi + 0x33], 0xd
jne 0x42ecc6
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x18]
push 4
push edx
call fcn.0042e360
test eax, eax
jne 0x42ecad
cmp dword [esp + 0x14], 4
jb 0x42ecad
xor edi, edi
cmp word [esp + 0x22], di
jne 0x42ecad
mov ebp, dword [esp + 0x10]
mov word [esi + 0x1c], di
cmp ebp, edi
jbe 0x42ec32
mov ax, word [esi + 0x1c]
xor ecx, ecx
mov cl, ah
xor edx, edx
mov dl, byte [esp + edi + 0x34]
and ecx, 0xff
xor ecx, edx
xor edx, edx
mov dh, al
mov ax, word [esi + ecx*2 + 0x1e]
xor ax, dx
inc edi
cmp edi, ebp
mov word [esi + 0x1c], ax
jb 0x42ec07
mov ax, word [esi + 0x1c]
mov edx, dword [esp + 0x20]
xor ecx, ecx
and edx, 0xff
mov cl, ah
and ecx, 0xff
xor ecx, edx
xor edx, edx
mov dh, al
mov ax, word [esi + ecx*2 + 0x1e]
xor ecx, ecx
xor ax, dx
mov edx, dword [esp + 0x21]
mov cl, ah
and edx, 0xff
and ecx, 0xff
mov word [esi + 0x1c], ax
xor ecx, edx
xor edx, edx
mov dh, al
mov ax, word [esi + ecx*2 + 0x1e]
xor ax, dx
mov word [esi + 0x1c], ax
je 0x42edb4
inc bl
mov byte [esp + 0x18], 6
jmp 0x42eb1f
mov dword [esi + 0x250], 0xc9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x430
ret 4
mov dword [esi + 0x250], 0x65
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x430
ret 4
mov dword [esi + 0x250], 0x64
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x430
ret 4
mov byte [esp + 0x18], 0x44
mov byte [esp + 0x1d], 0xd
mov dword [esi + 0x250], 0x64
mov edi, 0x100
lea ebp, [esp + 0x1c]
mov ebx, 4
mov eax, edi
xor edx, edx
mov ecx, 0xa
div ecx
push edx
lea edx, [esp + 0x30]
push 0x4ae060
push edx
call fcn.0043da3f
mov al, byte [esp + 0x38]
add esp, 0xc
mov byte [ebp], al
mov eax, 0xcccccccd
mul edi
shr edx, 3
dec ebp
dec ebx
mov edi, edx
jne 0x42ed01
lea ecx, [esp + 0x28]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x18]
push 6
push edx
call fcn.0042e420
test eax, eax
jne 0x42eadf
cmp dword [esp + 0x28], 6
jb 0x42eadf
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push 2
push ecx
mov ecx, dword [esi + 0x18]
call fcn.0042e360
test eax, eax
jne 0x42eadf
mov ebp, dword [esp + 0x10]
cmp ebp, 2
jb 0x42eadf
cmp byte [esp + 0x21], 2
jne 0x42eda8
mov ecx, dword [esi + 0x18]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x38]
push 0x400
push eax
call fcn.0042e360
mov ebp, dword [esp + 0x10]
cmp ebp, 0x400
jb 0x42eadf
mov edi, dword [esp + 0x444]
mov ebx, 0
shr ebp, 1
mov dword [esp + 0x10], ebp
mov ecx, ebx
mov dword [esp + 0x14], ebx
je 0x42ee06
lea eax, [esp + 0x36]
mov ebp, dword [esp + 0x14]
xor edx, edx
mov dx, word [eax - 2]
add ecx, 2
mov dword [edi + ebp*4], edx
mov ebp, dword [esp + 0x14]
xor edx, edx
mov dx, word [eax]
add eax, 4
mov dword [edi + ebp*4 + 0x400], edx
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc ebp
cmp ecx, edx
mov dword [esp + 0x14], ebp
jb 0x42edd2
mov ecx, esi
call fcn.0042db60
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jae 0x42ee4e
mov eax, dword [esp + 0x34]
and eax, 0xffff
mov dword [edi + ecx*4], eax
mov ecx, dword [esp + 0x36]
mov edx, dword [esp + 0x14]
and ecx, 0xffff
mov dword [edi + edx*4 + 0x400], ecx
mov ebp, dword [esp + 0x14]
inc ebp
mov ecx, esi
mov dword [esp + 0x14], ebp
call fcn.0042db60
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jb 0x42ee15
mov dword [esi + 0x250], ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x430
ret 4