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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff5c
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x98], eax
lea esi, [ebp - 0xa4]
lea edi, [ebp - 0x94]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
cmp byte [eax + 0xc0], 0
jne 0x5fe1a9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x58]
je 0x5fe1bc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x5c]
je 0x5fe1bc
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
cdq
xor eax, edx
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x30]
cdq
xor eax, edx
sub eax, edx
cmp ecx, eax
jne 0x5fda70
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov al, byte [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.005fd3fc
jmp 0x5fe1bc
cmp dword [ebp - 0x2c], 0
jne 0x5fdad3
cmp dword [ebp - 0x30], 0
jle 0x5fda95
mov eax, dword [ebp + 0x10]
dec eax
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.005fd33c
jmp 0x5fdab2
cmp dword [ebp - 0x30], 0
jge 0x5fdab2
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
inc ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.005fd33c
cmp byte [ebp + 8], 0
je 0x5fe1bc
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
call fcn.005fcad8
jmp 0x5fe1bc
cmp dword [ebp - 0x30], 0
jne 0x5fdb36
cmp dword [ebp - 0x2c], 0
jle 0x5fdaf8
mov eax, dword [ebp + 0x14]
dec eax
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.005fd068
jmp 0x5fdb15
cmp dword [ebp - 0x2c], 0
jge 0x5fdb15
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 0x14]
inc edx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.005fd068
cmp byte [ebp + 8], 0
je 0x5fe1bc
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
call fcn.005fcad8
jmp 0x5fe1bc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x60]
dec eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
dec eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x2c], 0
jle 0x5fdb83
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jg 0x5fe1bc
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x10]
jl 0x5fe1bc
mov dword [ebp - 0x24], 1
jmp 0x5fdbc3
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x14]
jg 0x5fe1bc
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jl 0x5fe1bc
mov dword [ebp - 0x24], 0xffffffff
neg dword [ebp - 8]
neg dword [ebp + 0x14]
neg dword [ebp - 0x2c]
neg dword [ebp - 0x10]
neg dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x30], 0
jle 0x5fdbea
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x1c]
jg 0x5fe1bc
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x18]
jl 0x5fe1bc
mov dword [ebp - 0x28], 1
jmp 0x5fdc2a
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x1c]
jg 0x5fe1bc
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x18]
jl 0x5fe1bc
mov dword [ebp - 0x28], 0xffffffff
neg dword [ebp - 0xc]
neg dword [ebp + 0x10]
neg dword [ebp - 0x30]
neg dword [ebp - 0x18]
neg dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x30]
jge 0x5fdcbc
mov eax, dword [ebp - 8]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
jmp 0x5fdcd4
lea eax, [ebp - 0x34]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
imul dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
shl eax, 0x10
cdq
idiv dword [ebp - 0x2c]
mov word [ebp - 0x54], ax
mov word [ebp - 0x52], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x45], 1
mov byte [ebp - 0x46], 0
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x8a]
mov edx, dword [0x6fd138]
mov eax, dword [edx + eax*4]
mov eax, dword [eax]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x18]
jge 0x5fdef3
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0xc]
shl eax, 0x10
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
sub eax, 0x10000
mov dword [ebp - 0x3c], eax
movzx eax, word [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x44]
pop edx
mov ecx, edx
cdq
idiv ecx
test edx, edx
jle 0x5fdd62
movzx eax, word [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x44]
pop edx
mov ecx, edx
cdq
idiv ecx
inc eax
mov dword [ebp - 0x44], eax
jmp 0x5fdd6f
movzx ecx, word [ebp - 0x54]
mov eax, dword [ebp - 0x44]
cdq
idiv ecx
mov dword [ebp - 0x44], eax
mov edx, dword [ebp + 0x14]
inc edx
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x44]
call fcn.00434588
mov dword [ebp - 0x34], eax
mov ax, word [ebp - 0x44]
imul word [ebp - 0x54]
mov word [ebp - 0x52], ax
movzx eax, word [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x3c]
pop edx
mov ecx, edx
cdq
idiv ecx
test edx, edx
jle 0x5fddb3
movzx eax, word [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x3c]
pop edx
mov ecx, edx
cdq
idiv ecx
inc eax
mov dword [ebp - 0x3c], eax
jmp 0x5fddc0
movzx ecx, word [ebp - 0x54]
mov eax, dword [ebp - 0x3c]
cdq
idiv ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
sub dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x14]
jle 0x5fdde1
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x34]
jl 0x5fe1bc
mov byte [ebp - 0x46], 1
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x10]
setge al
or al, byte [ebp - 0x46]
je 0x5fdef3
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov ax, word [ebp - 0x52]
sub ax, word [ebp - 0x54]
mov word [ebp - 0x56], ax
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.005d4440
mov dword [ebp - 0x40], eax
cmp byte [ebp - 0x46], 0
je 0x5fde3d
mov ax, word [ebp - 0x34]
sub ax, word [ebp - 0x14]
dec eax
imul word [ebp - 0x54]
sub word [ebp - 0x56], ax
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x5fde46
neg dword [ebp - 0x38]
cmp dword [ebp - 0x24], 0xffffffff
jne 0x5fde52
neg dword [ebp - 0x34]
neg dword [ebp - 0x40]
xor eax, eax
push ebp
push 0x5fdec6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x40]
je 0x5fdeae
mov eax, dword [ebp - 0x24]
neg eax
add dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
imul dword [edx + 0x44]
mov edx, dword [ebp - 0x4c]
add eax, dword [edx]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x54]
lea edx, [edx + eax*4]
movzx eax, word [ebp - 0x56]
shr eax, 8
xor ecx, ecx
mov cl, byte [eax + 0x7243f0]
mov eax, dword [ebp + 0xc]
call dword [ebp - 0x64]
mov ax, word [ebp - 0x54]
sub word [ebp - 0x56], ax
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x40]
jne 0x5fde68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5fdecd
mov ebx, dword [0x6fcd44]
mov ebx, dword [ebx]
call ebx
ret
cmp byte [ebp - 0x45], 0
je 0x5fdf48
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jge 0x5fdf48
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 8]
movzx edx, word [ebp - 0x54]
imul edx
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
test eax, eax
jns 0x5fdf1c
add eax, 0xffff
sar eax, 0x10
add dword [ebp - 0x38], eax
mov ax, word [ebp - 0x44]
mov word [ebp - 0x52], ax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x1c]
jg 0x5fe1bc
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x1c]
jne 0x5fdf48
mov byte [ebp - 0x46], 1
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x47], 0
mov byte [ebp - 0x45], 0
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x1c]
jle 0x5fdffd
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0xc]
shl eax, 0x10
mov dword [ebp - 0x44], eax
movzx eax, word [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x44]
pop edx
mov ecx, edx
cdq
idiv ecx
add eax, dword [ebp - 8]
mov dword [ebp - 0x40], eax
movzx eax, word [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x44]
pop edx
mov ecx, edx
cdq
idiv ecx
test edx, edx
jg 0x5fdf97
dec dword [ebp - 0x40]
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x14]
jge 0x5fdff9
mov eax, dword [ebp - 0x44]
add eax, 0x10000
mov dword [ebp - 0x3c], eax
movzx eax, word [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x3c]
pop edx
mov ecx, edx
cdq
idiv ecx
test edx, edx
jle 0x5fdfd3
movzx eax, word [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x3c]
pop edx
mov ecx, edx
cdq
idiv ecx
add eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0x3c], eax
jmp 0x5fdfe7
movzx eax, word [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x3c]
pop edx
mov ecx, edx
cdq
idiv ecx
add eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x14]
jle 0x5fdff5
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x45], 1
mov byte [ebp - 0x47], 1
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x14]
jle 0x5fe00f
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x47], 1
inc dword [ebp - 0x40]
cmp dword [ebp - 0x28], 0xffffffff
jne 0x5fe01b
neg dword [ebp - 0x38]
cmp dword [ebp - 0x24], 0xffffffff
jne 0x5fe02a
neg dword [ebp - 0x34]
neg dword [ebp - 0x40]
neg dword [ebp - 0x3c]
cmp byte [ebp - 0x46], 0
jne 0x5fe125
xor eax, eax
push ebp
push 0x5fe11e
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [ebp + 8]
or al, byte [ebp - 0x47]
jne 0x5fe068
cmp byte [ebp - 0x45], 0
jne 0x5fe068
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x40]
jge 0x5fe05d
dec dword [ebp - 0x40]
jmp 0x5fe068
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x40]
jle 0x5fe068
inc dword [ebp - 0x40]
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x40]
je 0x5fe106
movzx eax, word [ebp - 0x52]
shr eax, 8
mov byte [ebp - 0x59], al
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
imul dword [edx + 0x44]
mov edx, dword [ebp - 0x4c]
add eax, dword [edx]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x54]
lea eax, [edx + eax*4]
mov dword [ebp - 0x60], eax
mov al, byte [ebp - 0x59]
xor al, 0xff
and eax, 0xff
xor ecx, ecx
mov cl, byte [eax + 0x7243f0]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp + 0xc]
call dword [ebp - 0x64]
mov eax, dword [ebp - 0x20]
shl eax, 2
add dword [ebp - 0x60], eax
xor eax, eax
mov al, byte [ebp - 0x59]
xor ecx, ecx
mov cl, byte [eax + 0x7243f0]
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp + 0xc]
call dword [ebp - 0x64]
mov ax, word [ebp - 0x52]
mov word [ebp - 0x58], ax
mov ax, word [ebp - 0x54]
add word [ebp - 0x52], ax
mov ax, word [ebp - 0x52]
cmp ax, word [ebp - 0x58]
ja 0x5fe0f4
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x40]
jne 0x5fe074
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5fe125
mov ebx, dword [0x6fcd44]
mov ebx, dword [ebx]
call ebx
ret
cmp byte [ebp - 0x45], 0
je 0x5fe1a9
xor eax, eax
push ebp
push 0x5fe1a2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x3c]
je 0x5fe18a
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
imul dword [edx + 0x44]
mov edx, dword [ebp - 0x4c]
add eax, dword [edx]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x54]
lea edx, [edx + eax*4]
movzx eax, word [ebp - 0x52]
shr eax, 8
xor eax, 0xff
xor ecx, ecx
mov cl, byte [eax + 0x7243f0]
mov eax, dword [ebp + 0xc]
call dword [ebp - 0x64]
mov ax, word [ebp - 0x54]
add word [ebp - 0x52], ax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x3c]
jne 0x5fe141
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5fe1a9
mov ebx, dword [0x6fcd44]
mov ebx, dword [ebx]
call ebx
ret
lea edx, [ebp - 0x94]
mov ecx, 0x40000002
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x6c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10