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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
push ebx
push esi
push edi
mov esi, 0x42c544
mov dword [ebp - 0x54], ecx
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x50], 0x16279e1f
push 0xc
pop eax
movsd dword es:[edi], dword [esi]
xor ebx, ebx
mov dword [ebp - 0x4c], 0x55098f7e
mov word [ebp - 0x48], 0xd628
mov byte [ebp - 0x46], 0x47
movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x45], al
mov dword [ebp - 0x44], 0x20163be6
mov dword [ebp - 0x40], 0xf6a5a297
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x3c], 0x7384f675
mov dword [ebp - 0x38], 0xee959a4d
mov dword [ebp - 0x34], 0x8e06c81
movsw word es:[edi], word [esi]
mov esi, 0x42cee0
mov dword [ebp - 0x30], 0xba56e9bd
lea edi, [ebp - 0x74]
mov dword [ebp - 0x2c], 0xecc6e1b8
mov dword [ebp - 0x28], 0x40df6011
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
cmp byte [ebp - 0x74], 0x41
jne 0x40528d
mov al, 0x41
test al, al
je 0x40528d
cmp byte [ebp + ebx - 0x74], 0
je 0x40528d
call fcn.004045e1
mov al, byte [ebx + 0x42d415]
inc ebx
cmp al, byte [ebp + ebx - 0x74]
je 0x405270
call fcn.0040488c
movzx eax, byte [ebp + ebx - 0x74]
movzx ecx, byte [ebx + str.ActivityError]
sub ecx, eax
cmp ecx, 0x2146
jae 0x4052cc
mov esi, dword [0x434130]
mov ecx, dword [0x43409c]
xor esi, 0x4aa859ed
mov edx, esi
mov dword [ebp - 8], esi
mov dword [0x434130], esi
call fcn.004047d2
jmp 0x4052e1
mov esi, dword [0x43409c]
and esi, 0xc88060ab
mov dword [ebp - 8], esi
mov dword [0x434130], esi
and dword [ebp - 0xc], 0
xor eax, eax
mov byte [ebp + eax - 0x184], al
inc eax
cmp eax, 0x100
jb 0x4052e7
mov esi, dword [ebp - 0xc]
xor edi, edi
xor edx, edx
mov bl, byte [ebp + edi - 0x184]
push 0xd
mov eax, edi
pop ecx
div ecx
movzx ecx, bl
movzx eax, byte [ebp + edx - 0x1c]
add eax, esi
add ecx, eax
movzx esi, cl
mov al, byte [ebp + esi - 0x184]
mov byte [ebp + edi - 0x184], al
inc edi
mov byte [ebp + esi - 0x184], bl
cmp edi, 0x100
jb 0x4052fb
and dword [ebp - 0xc], 0
xor ebx, ebx
mov esi, dword [ebp - 8]
xor edi, edi
or esi, 0x7bd10c45
mov dword [0x43409c], esi
mov esi, dword [ebp - 0xc]
lea eax, [ebx + 1]
movzx ebx, al
mov cl, byte [ebp + ebx - 0x184]
movzx edx, cl
lea eax, [edx + esi]
movzx esi, al
mov al, byte [ebp + esi - 0x184]
mov byte [ebp + ebx - 0x184], al
mov byte [ebp + esi - 0x184], cl
movzx eax, byte [ebp + ebx - 0x184]
add eax, edx
movzx eax, al
mov al, byte [ebp + eax - 0x184]
xor al, byte [ebp + edi - 0x50]
mov byte [ebp + edi - 0x1b4], al
inc edi
cmp edi, 0x2c
jb 0x405352
lea eax, [ebp - 0x5c]
mov byte [ebp - 0x188], 0
push eax
push dword [ebp - 0x54]
xor ecx, ecx
mov dword [ebp - 0x5c], 0x208
lea edx, [ebp - 0x1b4]
inc ecx
call fcn.0040a2e6
call eax
test eax, eax
jne 0x40558c
imul eax, dword [0x43409c], 0x2b72abc9
lea edi, [ebp - 0x78]
mov esi, 0x42ceec
mov dword [ebp - 0x24], 0xbc2c694f
mov dword [ebp - 0x20], 0xf92f78b5
mov dword [ebp - 0x1c], 0xa6cd1c4c
mov dword [ebp - 0x18], 0x449bfae2
movsd dword es:[edi], dword [esi]
mov dword [ebp - 8], eax
mov dword [0x43409c], eax
mov dword [ebp - 0x14], 0xfa9959d3
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], 0xa9923ef4
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor edi, edi
xor eax, eax
mov byte [ebp + eax - 0x184], al
inc eax
cmp eax, 0x100
jb 0x40541b
xor esi, esi
xor edx, edx
mov bl, byte [ebp + esi - 0x184]
push 0xc
mov eax, esi
pop ecx
div ecx
movzx ecx, bl
movzx eax, byte [ebp + edx - 0x78]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [ebp + edi - 0x184]
mov byte [ebp + esi - 0x184], al
inc esi
mov byte [ebp + edi - 0x184], bl
cmp esi, 0x100
jb 0x40542c
mov ebx, dword [ebp - 0x58]
xor esi, esi
mov edi, dword [ebp - 8]
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
lea eax, [edx + 1]
movzx edx, al
mov dword [ebp - 0x64], edx
mov al, byte [ebp + edx - 0x184]
mov byte [ebp - 1], al
movzx eax, al
mov dword [ebp - 0x58], eax
add eax, esi
movzx eax, al
mov esi, edi
mov dword [ebp - 0x68], eax
mov al, byte [ebp + eax - 0x184]
mov byte [ebp + edx - 0x184], al
xor eax, eax
xor esi, 0x10f1e96b
mov dword [0x434130], esi
inc eax
cmp byte [eax + 0x42d3c0], 0
jne 0x4054b7
mov dword [ebp - 0x60], eax
cmp ebx, eax
jae 0x40550a
call fcn.0040488c
cmp ebx, 0x4e9
jne 0x4054f0
mov eax, esi
mov edx, esi
or eax, 0xc42dc892
mov ecx, eax
mov dword [ebp - 8], eax
mov dword [0x43409c], eax
call fcn.004047d2
mov edi, dword [ebp - 8]
mov esi, edi
or esi, 0xd061ff04
inc ebx
cmp ebx, dword [ebp - 0x60]
jb 0x4054c8
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x64]
mov dword [0x434130], esi
mov esi, dword [ebp - 0x68]
mov al, byte [ebp - 1]
mov byte [ebp + esi - 0x184], al
movzx eax, byte [ebp + edx - 0x184]
add eax, dword [ebp - 0x58]
movzx eax, al
mov al, byte [ebp + eax - 0x184]
xor al, byte [ebp + ecx - 0x24]
mov byte [ebp + ecx - 0x84], al
inc ecx
mov dword [ebp - 0xc], ecx
cmp ecx, 0x18
jb 0x405478
lea ecx, [ebp - 0x84]
mov byte [ebp - 0x6c], 0
call fcn.0040b628
mov esi, eax
mov ecx, esi
call fcn.0040b8f4
add eax, eax
push eax
push esi
push dword [ebp - 0x54]
call fcn.0040b543
mov ecx, esi
call fcn.0040b8f4
push eax
push 0
push esi
call fcn.0040b587
sub dword [0x434130], 0xe67a10a
add esp, 0x18
mov ecx, esi
call fcn.0040a2d2
pop edi
pop esi
pop ebx
leave
ret