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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c491c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1adc
call fcn.004a9710
mov eax, dword [0x508e4c]
xor eax, ebp
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x1ae0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
push edi
lea edi, [ebx + 0x84]
mov dword [esp + 0x18], eax
mov eax, dword [edi]
test eax, eax
mov dword [esp + 0x30], edi
je 0x46b7c2
push eax
call fcn.004a8eb3
add esp, 4
mov dword [edi], 0
mov ecx, dword [esp + 0x18]
lea eax, [ebx + 0x88]
push eax
push edi
push ecx
mov dword [esp + 0x2c], eax
call fcn.00448660
add esp, 0xc
test al, al
je 0x46b831
mov al, byte [ebp + 0xc]
test al, al
jne 0x46b81e
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
xor ecx, ecx
test eax, eax
jle 0x46bd00
mov eax, dword [edi]
lea esi, [ecx + eax]
mov al, cl
mov dl, 0x21
imul dl
mov dl, al
mov eax, dword [esp + 0x20]
add dl, byte [eax]
mov bl, byte [esi]
add dl, 0x7a
xor bl, dl
mov byte [esi], bl
mov edx, dword [eax]
inc ecx
cmp ecx, edx
jl 0x46b7f6
jmp 0x46bd00
mov eax, dword [edi]
movzx ecx, byte [eax + 3]
mov dword [ebx + 0xf4], ecx
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x46b838
xor al, al
jmp 0x46bd02
push 0
push 0
push 0x10001
push 0x400
call fcn.00475510
mov dword [esp + 0x20], eax
call fcn.00475040
push eax
call fcn.00474f40
mov edi, eax
mov eax, dword [esi + 0x18]
add esp, 0x14
cmp eax, 0x10
mov dword [esp + 0x38], edi
jb 0x46b870
mov esi, dword [esi + 4]
jmp 0x46b873
add esi, 4
mov edx, dword [esp + 0x10]
push esi
push 0
push 0
push 0
push 0
push edx
push edi
call fcn.00475000
lea eax, [esp + 0x44]
push eax
push 0
push 0x73
push edi
call fcn.00474e80
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx]
push edx
call fcn.004a7d19
mov edx, dword [esp + 0x58]
mov dword [ebx + 0xec], eax
mov ecx, dword [edx]
mov dword [ebx + 0xf0], ecx
mov ecx, dword [edx]
mov esi, dword [edx + 4]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0xf0]
add esp, 0x30
xor ecx, ecx
test eax, eax
jle 0x46b90e
xor esi, esi
lea ebx, [ebx]
mov eax, dword [ebx + 0xec]
movzx edi, byte [ecx + eax]
lea edx, [ecx + eax]
mov eax, dword [ebx + 0xf0]
lea eax, [esi + eax + 0x3f]
and eax, 0xff
xor eax, edi
mov byte [edx], al
mov eax, dword [ebx + 0xf0]
inc ecx
add esi, 0x21
cmp ecx, eax
jl 0x46b8e0
xor esi, esi
mov dword [esp + 0x10c0], 0xf
mov dword [esp + 0x10bc], esi
mov byte [esp + 0x10ac], 0
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
push edx
push ecx
lea ecx, [esp + 0x10b0]
mov dword [esp + 0x1afc], esi
call fcn.004016c0
lea edx, [esp + 0x10a8]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.0046b360
add esp, 8
push 0xffffffffffffffff
push esi
push eax
lea ecx, [esp + 0x10b4]
mov byte [esp + 0x1b00], 1
call fcn.00401250
cmp dword [esp + 0x54], 0x10
mov byte [esp + 0x1af4], 0
jb 0x46b994
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004a8222
add esp, 4
mov edx, dword [esp + 0x10]
mov byte [esp + 0x12e0], 0
xor eax, eax
mov ecx, 0x1ff
lea edi, [esp + 0x12e1]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
stosb byte es:[edi], al
call fcn.004747a0
mov ebx, eax
mov eax, dword [esp + 0x10c0]
xor edx, edx
sub ebx, 0x2a
div ebx
add esp, 4
lea ecx, [esp + 0x58]
mov dword [esp + 0x14], 0
mov esi, edx
mov edi, eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], edi
call fcn.00472240
mov dword [esp + 0x10dc], 0xf
mov dword [esp + 0x10d8], 0
mov byte [esp + 0x10c8], 0
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
add ecx, 0x30
push 0x20
push ecx
lea ecx, [esp + 0x10cc]
mov byte [esp + 0x1afc], 3
call fcn.004016c0
cmp dword [esp + 0x10dc], 0x10
mov eax, dword [esp + 0x10c8]
jae 0x46ba40
lea eax, [esp + 0x10c8]
push eax
lea ecx, [esp + 0x5c]
call fcn.00472530
mov edx, dword [esp + 0x10]
push edx
call fcn.004747a0
mov dword [esp + 0x1c], eax
xor eax, eax
add esp, 4
cmp edi, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], eax
jle 0x46bb64
mov dword [esp + 0x24], eax
cmp dword [esp + 0x10c0], 0x10
mov edx, dword [esp + 0x10ac]
jae 0x46ba89
lea edx, [esp + 0x10ac]
mov esi, dword [esp + 0x24]
add esi, edx
mov ecx, ebx
mov edx, ecx
shr ecx, 2
lea edi, [esp + 0x10e0]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
cdq
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x30
idiv ecx
lea eax, [esp + 0x12e0]
test edx, edx
jne 0x46bad6
mov edx, dword [esp + 0x10]
push 4
push edx
push eax
lea ecx, [esp + 0x10ec]
push ecx
push ebx
call fcn.004747c0
add esp, 0x14
mov esi, eax
jmp 0x46bb03
mov ecx, ebx
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x10e0]
lea edi, [esp + 0x12e0]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x60]
call fcn.00472280
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
lea eax, [esi + edi]
push eax
push ecx
mov dword [esp + 0x14], eax
call fcn.004ab52a
mov ecx, esi
mov edx, ecx
shr ecx, 2
add edi, eax
lea esi, [esp + 0x12e8]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov ecx, edx
mov edx, dword [esp + 0x2c]
and ecx, 3
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
add esp, 8
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
inc eax
add edx, ebx
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], edx
jl 0x46ba71
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x46bc43
mov ecx, dword [esp + 0x10c0]
imul ebx, eax
cmp ecx, 0x10
mov edx, dword [esp + 0x10ac]
jae 0x46bb89
lea edx, [esp + 0x10ac]
mov ecx, esi
lea esi, [edx + ebx]
mov edx, ecx
shr ecx, 2
lea edi, [esp + 0x10e0]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cdq
mov ecx, 0x30
idiv ecx
test edx, edx
jne 0x46bbd7
mov edx, dword [esp + 0x10]
push 4
push edx
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x12e8]
push eax
lea ecx, [esp + 0x10ec]
push ecx
push edx
call fcn.004747c0
add esp, 0x14
mov esi, eax
jmp 0x46bc0d
mov ecx, dword [esp + 0x2c]
mov eax, ecx
shr ecx, 2
lea esi, [esp + 0x10e0]
lea edi, [esp + 0x12e0]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
push esi
lea ecx, [esp + 0x12e4]
push ecx
lea ecx, [esp + 0x60]
call fcn.00472280
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
lea ebx, [esi + edi]
push ebx
push edx
call fcn.004ab52a
mov ecx, esi
add edi, eax
mov dword [esp + 0x1c], eax
mov eax, ecx
shr ecx, 2
lea esi, [esp + 0x12e8]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 8
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0xc], ebx
mov edi, dword [esp + 0x30]
mov eax, dword [edi]
push eax
call fcn.004a8eb3
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
push eax
mov dword [esi], eax
call fcn.004a7d19
mov ecx, dword [esi]
mov esi, dword [esp + 0x1c]
mov edx, ecx
mov dword [edi], eax
shr ecx, 2
mov edi, eax
mov eax, dword [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004a9fb9
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00474f10
mov edx, dword [esp + 0x20]
push edx
call fcn.00474650
mov eax, dword [esp + 0x10f0]
mov esi, 0x10
add esp, 0x14
cmp eax, esi
jb 0x46bcb8
mov eax, dword [esp + 0x10c8]
push eax
call fcn.004a8222
add esp, 4
lea ecx, [esp + 0x58]
mov dword [esp + 0x10dc], 0xf
mov dword [esp + 0x10d8], 0
mov byte [esp + 0x10c8], 0
mov byte [esp + 0x1af4], 0
call fcn.0046ee20
cmp dword [esp + 0x10c0], esi
jb 0x46bd00
mov ecx, dword [esp + 0x10ac]
push ecx
call fcn.004a8222
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x1aec]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1ae4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8ea5
mov esp, ebp
pop ebp
ret 0xc