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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push esi
xor esi, esi
mov ecx, 0x1945
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x7c], 0xb5
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 2
mov dword [ebp - 0x3c], 0x195f
mov dword [ebp - 0x48], 0x7064
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], 0x2bfe
mov dword [ebp - 0x4c], 0x2041
mov eax, 0x92f11385
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x401fb0
cmp dword [ebp + 8], esi
je 0x4025fb
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4025fb
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov eax, dword [ebx + 0x19c]
xor eax, dword [ebx + 0x2c0]
lea edi, [ebx + 0x2c0]
cmp ecx, eax
jl 0x4025f9
call fcn.004034e0
mov dword [ebx + 0x2c8], eax
mov eax, dword [edi]
xor dword [ebx + 0x74], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebx + 0x74]
mov dword [eax + 0x1ac], edi
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
mov edi, dword [ebp + 0x10]
mov ecx, eax
mov dword [edi + 0x130], ecx
inc esi
mov eax, esi
and eax, 0x80000003
jns 0x402035
dec eax
or eax, 0xfffffffc
inc eax
jne 0x402038
inc esi
cmp esi, 0x3626
jl 0x402026
imul ecx, ebx
xor esi, esi
mov dword [edi + 0x1a4], ecx
test ecx, ecx
je 0x402099
mov ebx, dword [ebp + 8]
mov eax, dword [edi + 0x1ac]
inc esi
mov al, byte [eax]
xor byte [esi + ebx - 1], al
movzx ecx, byte [esi + ebx - 1]
mov eax, dword [edi + 0x1ac]
mov dl, byte [eax + 1]
xor dl, cl
mov byte [esi + ebx - 1], dl
mov eax, dword [edi + 0x1ac]
mov cl, byte [eax + 2]
xor cl, dl
mov byte [esi + ebx - 1], cl
mov eax, dword [edi + 0x1ac]
mov al, byte [eax + 3]
xor al, cl
mov byte [esi + ebx - 1], al
cmp esi, dword [edi + 0x1a4]
jb 0x402052
mov eax, dword [edi + 0x74]
mov dword [ebp - 0x10], 0
dec eax
je 0x40223c
xor ebx, ebx
mov dword [ebp - 0x84], 0x47
xor esi, esi
jmp 0x4020c0
mov edx, dword [ebp - 0x18]
cmp edx, 0x6993
jge 0x4020f6
mov ecx, 0x6992
sub ecx, edx
mov eax, 0x24924925
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
mov edx, dword [ebp - 0x18]
shr ecx, 2
add edx, 7
lea eax, [ecx*8]
sub eax, ecx
add edx, eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x74]
lea esp, [esp]
inc eax
cmp eax, 0x6f73
jl 0x402100
mov dword [ebp - 0x74], eax
mov eax, dword [edi + 0x74]
dec eax
push eax
push 1
push edi
call fcn.00403300
mov edx, dword [ebp - 0x10]
mov cl, al
add esp, 0xc
mov byte [ebp - 1], cl
xor eax, eax
cmp cl, byte [eax + edi + 0x1b8]
je 0x402135
inc eax
cmp eax, edx
jbe 0x402125
jmp 0x402139
mov byte [ebp - 1], 0
cmp esi, 0x6ee0
jge 0x402164
inc esi
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, esi
lea eax, [eax + eax*2]
sub ecx, eax
jne 0x40215c
add esi, 5
cmp esi, 0x6ee0
jl 0x402141
cmp ebx, 0x2429
jge 0x4021a8
lea esp, [esp]
inc ebx
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, ebx
sub eax, ecx
jne 0x402197
add ebx, ebx
jmp 0x4021a0
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
add ebx, eax
cmp ebx, 0x2429
jl 0x402170
mov edx, dword [ebp - 0x14]
cmp edx, 0x659f
jge 0x4021d3
mov ecx, 0x659e
sub ecx, edx
mov eax, 0xcccccccd
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
mov edx, dword [ebp - 0x14]
lea edx, [edx + eax*2]
add edx, 0xa
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x7c]
mov eax, 0x480c
mov edx, 0x3f
cmp ecx, edx
cmovl ecx, edx
dec eax
jne 0x4021e0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x7c], ecx
mov edi, edi
inc eax
cmp eax, 0x2606
jl 0x4021f0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov al, byte [ebp - 1]
test al, al
je 0x402210
mov byte [edi + edx + 0x1b8], al
inc edx
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 8]
mov eax, 0x2eeb
jmp 0x402220
cmp ecx, 0x47
cmovg ecx, dword [ebp - 0x84]
dec eax
jne 0x402220
mov eax, dword [edi + 0x74]
dec eax
mov dword [ebp - 8], ecx
cmp edx, eax
jb 0x4020c0
mov ecx, 0x71
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402241
xorps xmm0, xmm0
mov dword [ebp - 0x70], 0x187f18c6
mov dword [ebp - 0x6c], 0x9f731052
mov dword [ebp - 0x68], 0x50ce7618
movq qword [ebp - 0x64], xmm0
mov dword [ebp - 0x5c], ecx
mov word [ebp - 0x58], cx
mov byte [ebp - 0x56], cl
xor ebx, ebx
nop
inc ebx
mov eax, 0x66666667
imul ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*4]
add ecx, ecx
mov eax, ebx
sub eax, ecx
jne 0x40229e
inc ebx
cmp ebx, 0x5218
jl 0x402280
xorps xmm0, xmm0
movq qword [ebp - 0x24], xmm0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], 0x8ae23eae
mov dword [ebp - 0x34], 0x7a6e6d2
movq xmm0, qword [ebp - 0x38]
movq qword [edi + 0xdc], xmm0
mov dword [ebp - 0x30], 0x635114cb
mov dword [ebp - 0x2c], 0x24e26e94
movq xmm0, qword [ebp - 0x30]
movq qword [edi + 0xe4], xmm0
mov dword [ebp - 0x28], 0x4b7fd693
movq xmm0, qword [ebp - 0x28]
movq qword [edi + 0xec], xmm0
mov dword [edi + 0xf4], eax
mov word [edi + 0xf8], 0
xor eax, eax
lea esp, [esp]
xor byte [ebp + eax - 0x70], 0x93
inc eax
cmp eax, 0xc
jb 0x402310
mov ebx, 0x7bf0
mov eax, 0x487ede05
imul ebx
sar edx, 6
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402320
mov edi, 0x67c4
jmp 0x402340
mov eax, 0x51eb851f
imul edi
sar edx, 3
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402340
mov edi, dword [ebp + 0x10]
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp dword [edi + 0x74], ecx
jbe 0x402516
mov ebx, edi
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x402388
lea ecx, [ecx]
mov eax, 0xa0a0a0a1
imul esi
add edx, esi
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x402370
mov dword [ebp - 0x3c], esi
movzx esi, byte [ecx + ebx + 0x1b8]
imul esi, dword [ebx + 0x130]
add esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x48]
mov dword [ebx + 0xfc], esi
test ecx, ecx
je 0x4023bf
mov eax, 0x964fda6d
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4023a7
mov dword [ebp - 0x48], ecx
movq xmm0, qword [esi]
mov edi, dword [esi + 0x18]
mov bx, word [esi + 0x1c]
mov eax, dword [ebp - 0x68]
movq qword [ebp - 0x88], xmm0
movq xmm0, qword [esi + 8]
movq qword [ebp - 0x80], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x78], xmm0
movq xmm0, qword [ebp - 0x70]
movq qword [esi], xmm0
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x54]
inc eax
cmp eax, 0x1303
jl 0x4023f8
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0xfc]
call eax
movq xmm0, qword [ebp - 0x88]
mov eax, dword [ebp - 0x50]
movq qword [esi], xmm0
movq xmm0, qword [ebp - 0x80]
movq qword [esi + 8], xmm0
movq xmm0, qword [ebp - 0x78]
movq qword [esi + 0x10], xmm0
mov dword [esi + 0x18], edi
mov word [esi + 0x1c], bx
inc eax
cmp eax, 5
jl 0x402438
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 0x50], eax
cmp dword [ebx + 0x130], edi
jbe 0x402497
mov edi, edi
mov eax, dword [ebx + 0x1ac]
inc edi
mov al, byte [eax + 3]
xor byte [edi + esi - 1], al
movzx ecx, byte [edi + esi - 1]
mov eax, dword [ebx + 0x1ac]
mov dl, byte [eax + 2]
xor dl, cl
mov byte [edi + esi - 1], dl
mov eax, dword [ebx + 0x1ac]
mov cl, byte [eax + 1]
xor cl, dl
mov byte [edi + esi - 1], cl
mov eax, dword [ebx + 0x1ac]
mov al, byte [eax]
xor al, cl
mov byte [edi + esi - 1], al
cmp edi, dword [ebx + 0x130]
jb 0x402450
mov esi, dword [ebp - 0x40]
cmp esi, 0x7ad1
jge 0x4024bf
mov ecx, 0x7ad0
sub ecx, esi
mov eax, 0xcccccccd
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
lea esi, [esi + eax*2]
add esi, 0xa
mov dword [ebp - 0x40], esi
mov eax, 0x41f9
dec eax
jne 0x4024c4
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x4024e6
mov edi, edi
mov eax, 0x3e0f83e1
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4024d0
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x402506
lea ecx, [ecx]
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4024f0
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 8]
inc ecx
mov dword [ebp - 8], ecx
cmp ecx, dword [ebx + 0x74]
jb 0x402366
mov ebx, 0x6343
jmp 0x402520
mov eax, 0x63e7063f
imul ebx
sar edx, 6
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402520
mov edi, 0x5d86
jmp 0x402540
mov eax, 0x78787879
imul edi
sar edx, 4
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x402540
call fcn.004034e0
mov edi, dword [ebp + 0x10]
mov esi, eax
mov dword [edi + 0x24], esi
xor ebx, ebx
inc ebx
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, ebx
sub eax, ecx
jne 0x402587
add ebx, ebx
cmp ebx, 0x374a
jl 0x402562
lea eax, [esi - 2]
push eax
push dword [edi + 0x2c8]
call fcn.00401170
push 0x6a7c1cc
lea ebx, [edi + 0xdc]
push ebx
call fcn.00401e80
add esp, 0x10
mov ecx, 0x72b8
mov edx, 0x23
mov eax, 0x24
cmp eax, 0x23
cmovl eax, edx
dec ecx
jne 0x4025c1
mov eax, dword [ebp + 0xc]
cdq
and edx, 0xff
lea esi, [edx + eax]
sar esi, 8
test esi, esi
je 0x4025f9
mov edi, dword [ebp + 8]
push ebx
push 0x100
push edi
call fcn.004031d0
add esp, 0xc
add edi, 0x100
dec esi
jne 0x4025e1
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret