Function at 0x423240
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e8
push ebx
mov ebx, ecx
mov eax, dword [ebx + 4]
test eax, eax
jne 0x42325a
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
movzx edi, word [ebx + 0x16]
cmp edi, 8
ja 0x4234e1
mov ecx, dword [ebx + 0x28]
add eax, 0x28
mov esi, ecx
neg esi
sbb esi, esi
xor edx, edx
and esi, eax
mov dword [ebp - 0x14], esi
test ecx, ecx
je 0x4232b1
movzx eax, byte [esi + edx*4 + 1]
imul ecx, eax, 0x259
movzx eax, byte [esi + edx*4 + 2]
imul eax, eax, 0x132
add ecx, eax
movzx eax, byte [esi + edx*4]
imul eax, eax, 0x75
add ecx, eax
shr ecx, 0xa
mov byte [esi + edx*4], cl
inc edx
cmp edx, dword [ebx + 0x28]
jb 0x423280
movzx edi, word [ebx + 0x16]
mov eax, dword [ebx + 0x14c]
test eax, eax
js 0x4232c5
movzx eax, byte [esi + eax*4]
mov dword [ebx + 0x14c], eax
cmp di, 8
jne 0x42332e
mov edx, dword [ebx + 0x34]
xor ecx, ecx
cmp dword [ebx + 0x1c], ecx
jbe 0x4232e5
movzx eax, byte [ecx + edx]
mov al, byte [esi + eax*4]
mov byte [ecx + edx], al
inc ecx
cmp ecx, dword [ebx + 0x1c]
jb 0x4232d5
mov esi, dword [ebx + 4]
test esi, esi
je 0x42332e
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x42332e
mov dword [ebp - 4], 0
add esi, 0x29
nop dword [eax]
mov ecx, dword [ebx + 0x28]
lea esi, [esi + 4]
xor edx, edx
dec ecx
mov eax, 0xff
div ecx
mov edx, dword [ebp - 4]
movzx ecx, dl
inc edx
movzx eax, al
imul eax, ecx
mov dword [ebp - 4], edx
mov byte [esi - 3], al
mov byte [esi - 4], al
mov byte [esi - 5], al
cmp edx, dword [ebx + 0x28]
jb 0x423300
movzx eax, word [ebx + 0x16]
cmp eax, 4
je 0x423340
cmp eax, 1
jne 0x423654
push 0
lea ecx, [ebp - 0x1e8]
mov dword [ebp - method.CxImage.virtual_0], vtable.CxImage.0
call fcn.00414f80
cmp dword [ebp - 0x1e4], 0
jne 0x423370
lea esi, [ebx + 0x30]
mov ecx, 0x62
lea edi, [ebp - 0x1b8]
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
lea ecx, [ebp - 0x1e8]
push 8
push dword [ebx + 0x10]
push dword [ebx + 0xc]
call fcn.00415380
lea ecx, [ebp - 0x1e8]
test eax, eax
je 0x42353a
call fcn.004178d0
push ebx
lea ecx, [ebp - 0x1e8]
call fcn.0043b950
push ebx
lea ecx, [ebp - 0x1e8]
call fcn.0041ecf0
mov eax, dword [ebx + 0x10]
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
test eax, eax
jle 0x423624
mov ecx, dword [ebp - 0x1b8]
mov esi, dword [ebp - 0x1c0]
mov edi, dword [ebp - 0x1d8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x1e4]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x423412
test edx, edx
je 0x423406
cmp edx, edi
jae 0x423412
mov eax, dword [ebp - 0x18]
imul eax, edx
lea edi, [eax + esi*4]
mov eax, dword [ebp - 8]
add edi, dword [ecx]
add edi, ecx
jmp 0x423414
mov eax, dword [ecx]
lea edi, [eax + esi*4]
mov eax, dword [ebp - 8]
add edi, ecx
jmp 0x423414
xor edi, edi
mov esi, dword [ebx + 4]
test esi, esi
je 0x423445
test edx, edx
je 0x423438
cmp edx, eax
jae 0x423445
mov ecx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x28]
imul ecx, edx
add ecx, esi
lea edx, [ecx + eax*4]
mov eax, dword [ebp - 8]
add edx, dword [esi]
jmp 0x423447
mov eax, dword [ebx + 0x28]
lea edx, [esi + eax*4]
mov eax, dword [ebp - 8]
add edx, dword [esi]
jmp 0x423447
xor edx, edx
xor esi, esi
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
cmp dword [ebx + 0xc], esi
jle 0x4234c4
cmp word [ebx + 0x16], 4
jne 0x423482
mov eax, esi
and eax, 0x80000001
jns 0x423469
dec eax
or eax, 0xfffffffe
inc eax
mov cl, 1
sub cl, al
mov eax, esi
shl cl, 2
sar eax, 1
movzx ecx, cl
movzx edx, byte [eax + edx]
mov eax, 0xf
jmp 0x4234a6
mov ecx, esi
and ecx, 0x80000007
jns 0x423491
dec ecx
or ecx, 0xfffffff8
inc ecx
mov al, 7
sub al, cl
movzx ecx, al
mov eax, esi
sar eax, 3
movzx edx, byte [eax + edx]
mov eax, 1
shl eax, cl
and edx, eax
mov eax, dword [ebp - 0x14]
sar edx, cl
mov al, byte [eax + edx*4]
mov edx, dword [ebp - 4]
mov byte [esi + edi], al
inc esi
cmp esi, dword [ebx + 0xc]
jl 0x423454
mov eax, dword [ebx + 0x10]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
inc edx
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
cmp edx, eax
jl 0x4233e8
jmp 0x423624
mov esi, dword [ebx + 0x34]
lea ecx, [ebp - 0x1e8]
push 0
mov dword [ebp - 4], esi
mov dword [ebp - method.CxImage.virtual_0], vtable.CxImage.0
call fcn.00414f80
cmp dword [ebp - 0x1e4], 0
jne 0x42351a
lea esi, [ebx + 0x30]
mov ecx, 0x62
lea edi, [ebp - 0x1b8]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 4]
push dword [ebx + 0x40]
lea ecx, [ebp - 0x1e8]
push 8
push dword [ebx + 0x10]
push dword [ebx + 0xc]
call fcn.00415380
lea ecx, [ebp - 0x1e8]
test eax, eax
jne 0x42355d
mov dword [ebp - method.CxImage.virtual_0], vtable.CxImage.0
call fcn.004150f0
lea ecx, [ebp - 0x1e8]
call fcn.00415030
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004178d0
push ebx
lea ecx, [ebp - 0x1e8]
call fcn.0043b950
push ebx
lea ecx, [ebp - 0x1e8]
call fcn.0041ecf0
mov edx, dword [ebp - 0x1e4]
test edx, edx
je 0x423591
mov eax, dword [ebp - 0x1c0]
lea ecx, [edx + eax*4]
add ecx, dword [edx]
jmp 0x423593
xor ecx, ecx
mov eax, dword [ebx + 0xc]
mov dword [ebp - 8], ecx
lea edx, [eax + eax*2]
xor eax, eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x10], eax
jle 0x423624
nop dword [eax]
test edx, edx
jle 0x42360c
mov edi, ecx
mov eax, 0xaaaaaaab
lea ecx, [edx - 1]
add esi, 2
mul ecx
shr edx, 1
inc edx
nop word [eax + eax]
movzx eax, byte [esi - 1]
lea esi, [esi + 3]
imul ecx, eax, 0x259
lea edi, [edi + 1]
movzx eax, byte [esi - 5]
imul eax, eax, 0x75
add ecx, eax
movzx eax, byte [esi - 3]
imul eax, eax, 0x132
add ecx, eax
shr ecx, 0xa
mov byte [edi - 1], cl
sub edx, 1
jne 0x4235d0
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
add esi, dword [ebx + 0x30]
inc eax
add ecx, dword [ebp - 0x1b8]
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
cmp eax, dword [ebx + 0x10]
jl 0x4235b0
push 1
lea eax, [ebp - 0x1e8]
mov ecx, ebx
push eax
call fcn.004156a0
lea ecx, [ebp - 0x1e8]
mov dword [ebp - method.CxImage.virtual_0], vtable.CxImage.0
call fcn.004150f0
lea ecx, [ebp - 0x1e8]
call fcn.00415030
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret