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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, ecx
xor ecx, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
mov edx, dword [eax]
cmp dword [eax + 0x10], ecx
jle 0x43ce51
push ebx
push esi
push edi
nop
mov eax, dword [eax + 0x18]
mov esi, edx
lea edx, [edx + eax*4]
mov eax, dword [esi]
dec eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x43ce36
mov eax, dword [ebp - 0x1c]
add esi, 4
mov ebx, dword [ebp + 8]
xor edi, edi
mov edx, dword [esi]
mov dword [ebp - 8], edx
mov edx, dword [eax + 8]
add edx, ecx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0xc]
imul eax, edx
sub edx, dword [ebx + 0x10]
add eax, dword [ecx]
mov ecx, dword [ebx + 4]
mov dword [ebx + 0x14], eax
mov eax, edx
cdq
idiv dword [ecx + 0x18]
imul edx, dword [ecx + 0xc]
add edx, dword [ecx]
sub dword [ebp - 0x10], 1
mov ecx, dword [ebp - 8]
mov dword [ebx + 0x18], edx
js 0x43ccf4
nop dword [eax]
mov eax, dword [esi + 4]
add esi, 8
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x2c], esi
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
cdq
and edx, 0xff
lea esi, [edx + eax]
mov eax, ecx
cdq
and edx, 0xff
sar esi, 8
mov dword [ebp - 4], esi
lea ecx, [edx + eax]
sar ecx, 8
cmp esi, ecx
jne 0x43c937
mov ecx, dword [ebp - 0x28]
mov eax, ecx
sub eax, dword [ebp - 8]
imul eax, dword [ebp - 0xc]
add edi, eax
jmp 0x43cce4
mov edx, dword [ebp - 8]
movzx eax, dl
mov edx, 0x100
sub edx, eax
imul edx, dword [ebp - 0xc]
lea eax, [edi + edx]
cdq
and edx, 0xff
add edx, eax
sar edx, 8
test edx, edx
jle 0x43cacf
mov eax, dword [ebx]
mov edi, dword [ebx + 8]
mov esi, dword [eax + 0x10]
mov eax, ecx
sub eax, dword [ebx + 0xc]
imul esi, ecx
add esi, dword [ebx + 0x14]
mov dword [ebp - 8], esi
mov esi, dword [ebx + 4]
cmp edx, 0xff
jl 0x43c9f7
cdq
idiv dword [esi + 0x14]
mov eax, dword [ebx + 0x18]
imul edx, dword [esi + 0x10]
mov esi, dword [ebp - 8]
mov esi, dword [esi]
mov ebx, dword [edx + eax]
mov eax, ebx
shr eax, 8
mov edx, 0x100
and eax, 0xff00ff
and ebx, 0xff00ff
imul eax, edi
imul ebx, edi
shr eax, 8
and eax, 0xff00ff
shr ebx, 8
mov dword [ebp - 0x24], eax
and ebx, 0xff00ff
mov edi, dword [ebp - 0x24]
shr eax, 0x10
sub edx, eax
mov eax, esi
shr esi, 8
and eax, 0xff00ff
and esi, 0xff00ff
imul eax, edx
imul esi, edx
shr eax, 8
shr esi, 8
and eax, 0xff00ff
and esi, 0xff00ff
add ebx, eax
add edi, esi
jmp 0x43ca72
imul edi, edx
cdq
idiv dword [esi + 0x14]
mov eax, dword [ebx + 0x18]
imul edx, dword [esi + 0x10]
sar edi, 8
mov esi, dword [edx + eax]
mov eax, esi
shr eax, 8
mov edx, 0x100
and eax, 0xff00ff
and esi, 0xff00ff
imul eax, edi
imul esi, edi
shr eax, 8
and eax, 0xff00ff
shr esi, 8
mov dword [ebp - 0x24], eax
and esi, 0xff00ff
mov edi, dword [ebp - 0x24]
shr eax, 0x10
sub edx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ebx, eax
shr eax, 8
and ebx, 0xff00ff
and eax, 0xff00ff
imul ebx, edx
imul eax, edx
shr ebx, 8
shr eax, 8
and ebx, 0xff00ff
and eax, 0xff00ff
add ebx, esi
add edi, eax
mov eax, edi
mov esi, 0x100
shr eax, 8
mov edx, ebx
and eax, 0xff00ff
shr edx, 8
sub esi, eax
and edx, 0xff00ff
shl esi, 8
mov eax, edi
shl eax, 8
or esi, eax
mov eax, 0x100
sub eax, edx
mov edx, 0x100
or eax, ebx
mov ebx, dword [ebp + 8]
xor esi, eax
mov eax, edi
shr eax, 8
and esi, 0xff00ff
and eax, 0xff00ff
shl edi, 8
sub edx, eax
mov eax, dword [ebp - 8]
shl edx, 8
or edx, edi
xor esi, edx
mov dword [eax], esi
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
test edx, edx
jle 0x43ccd8
inc ecx
sub esi, ecx
mov dword [ebp - 4], esi
test esi, esi
jle 0x43ccd8
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
mov edi, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 8]
imul edi, ecx
sub ecx, dword [ebx + 0xc]
imul eax, edx
add edi, dword [ebx + 0x14]
mov dword [ebp - 8], edi
sar eax, 8
mov dword [ebp - 0x20], eax
cmp eax, 0xfe
jge 0x43cc06
mov esi, dword [ebx + 4]
mov eax, ecx
cdq
inc ecx
idiv dword [esi + 0x14]
mov esi, dword [esi + 0x10]
mov eax, dword [ebx + 0x18]
imul esi, edx
mov edx, 0x100
mov edi, dword [esi + eax]
mov ebx, edi
mov esi, dword [ebp - 8]
and edi, 0xff00ff
imul edi, dword [ebp - 0x20]
shr ebx, 8
and ebx, 0xff00ff
imul ebx, dword [ebp - 0x20]
mov esi, dword [esi]
shr edi, 8
and edi, 0xff00ff
shr ebx, 8
and ebx, 0xff00ff
mov eax, ebx
shr eax, 0x10
sub edx, eax
mov eax, esi
and eax, 0xff00ff
shr esi, 8
imul eax, edx
and esi, 0xff00ff
imul esi, edx
shr eax, 8
and eax, 0xff00ff
shr esi, 8
add edi, eax
and esi, 0xff00ff
add ebx, esi
mov edx, edi
mov eax, ebx
shr edx, 8
shr eax, 8
mov esi, 0x100
and eax, 0xff00ff
and edx, 0xff00ff
sub esi, eax
mov eax, ebx
shl eax, 8
shl esi, 8
or esi, eax
mov eax, 0x100
sub eax, edx
mov edx, 0x100
or eax, edi
xor esi, eax
mov eax, ebx
shr eax, 8
and esi, 0xff00ff
and eax, 0xff00ff
shl ebx, 8
sub edx, eax
mov eax, dword [ebp - 8]
shl edx, 8
or edx, ebx
mov ebx, dword [ebp + 8]
xor esi, edx
mov dword [eax], esi
add eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 4], eax
test eax, eax
jg 0x43cb15
jmp 0x43ccd5
mov esi, dword [ebx + 4]
mov eax, ecx
cdq
inc ecx
idiv dword [esi + 0x14]
mov esi, dword [esi + 0x10]
mov eax, dword [ebx + 0x18]
imul esi, edx
mov edx, 0x100
mov esi, dword [esi + eax]
mov ebx, esi
shr ebx, 8
and esi, 0xff00ff
and ebx, 0xff00ff
mov eax, ebx
shr eax, 0x10
sub edx, eax
mov eax, dword [edi]
mov edi, eax
shr eax, 8
and eax, 0xff00ff
and edi, 0xff00ff
imul eax, edx
imul edi, edx
shr eax, 8
and eax, 0xff00ff
shr edi, 8
add ebx, eax
and edi, 0xff00ff
add edi, esi
mov eax, ebx
shr eax, 8
mov esi, 0x100
and eax, 0xff00ff
mov edx, edi
sub esi, eax
shr edx, 8
shl esi, 8
mov eax, ebx
shl eax, 8
and edx, 0xff00ff
or esi, eax
mov eax, 0x100
sub eax, edx
mov edx, 0x100
or eax, edi
mov edi, dword [ebp - 8]
xor esi, eax
mov eax, ebx
shr eax, 8
and esi, 0xff00ff
and eax, 0xff00ff
shl ebx, 8
sub edx, eax
mov eax, dword [ebp - 4]
shl edx, 8
dec eax
or edx, ebx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
xor esi, edx
mov dword [edi], esi
add edi, dword [ebp - 0x24]
mov dword [ebp - 8], edi
test eax, eax
jg 0x43cc06
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp + 8]
movzx edi, cl
imul edi, edx
sub dword [ebp - 0x10], 1
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 8], ecx
jns 0x43c8f0
mov eax, edi
cdq
and edx, 0xff
lea edi, [edx + eax]
sar edi, 8
test edi, edi
jle 0x43ce33
mov eax, ecx
mov esi, dword [ebx + 8]
cdq
and edx, 0xff
lea ecx, [edx + eax]
mov eax, dword [ebx]
sar ecx, 8
mov eax, dword [eax + 0x10]
imul eax, ecx
sub ecx, dword [ebx + 0xc]
add eax, dword [ebx + 0x14]
mov dword [ebp - 0x10], eax
mov eax, ecx
mov ecx, dword [ebx + 4]
cdq
idiv dword [ecx + 0x14]
mov eax, dword [ebx + 0x18]
imul edx, dword [ecx + 0x10]
mov ecx, 0x100
cmp edi, 0xff
jl 0x43cd73
mov edi, dword [edx + eax]
mov ebx, edi
mov edx, dword [ebp - 0x10]
shr ebx, 8
and ebx, 0xff00ff
imul ebx, esi
mov edx, dword [edx]
shr ebx, 8
and ebx, 0xff00ff
mov eax, ebx
shr eax, 0x10
sub ecx, eax
jmp 0x43cd9f
imul esi, edi
mov edi, dword [edx + eax]
mov ebx, edi
shr ebx, 8
and ebx, 0xff00ff
sar esi, 8
imul ebx, esi
shr ebx, 8
and ebx, 0xff00ff
mov eax, ebx
shr eax, 0x10
sub ecx, eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
mov eax, edx
and edi, 0xff00ff
and eax, 0xff00ff
shr edx, 8
imul eax, ecx
and edx, 0xff00ff
imul edx, ecx
imul edi, esi
shr eax, 8
and eax, 0xff00ff
shr edx, 8
and edx, 0xff00ff
shr edi, 8
add ebx, edx
and edi, 0xff00ff
add edi, eax
mov edx, 0x100
mov eax, ebx
mov ecx, edi
shr eax, 8
and eax, 0xff00ff
shr ecx, 8
sub edx, eax
and ecx, 0xff00ff
mov eax, ebx
shl edx, 8
shl eax, 8
or edx, eax
mov eax, 0x100
sub eax, ecx
mov ecx, 0x100
or eax, edi
xor edx, eax
mov eax, ebx
shr eax, 8
and edx, 0xff00ff
and eax, 0xff00ff
shl ebx, 8
sub ecx, eax
mov eax, dword [ebp - 0x10]
shl ecx, 8
or ecx, ebx
xor edx, ecx
mov dword [eax], edx
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [ecx + 0x10]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
jl 0x43c890
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4