Function at 0x408c55
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f8
push esi
push edi
push 0x17
pop eax
mov dword [ebp - 0x5c], ecx
lea edi, [ebp - 0x8c]
push 6
pop ecx
mov esi, 0x42d788
mov dword [ebp - 0x60], edx
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x50], 0xe4c037d0
mov dword [ebp - 0x4c], 0x800996e1
mov dword [ebp - 0x48], 0x28fcc844
mov dword [ebp - 0x44], 0x77d9f6d9
mov dword [ebp - 0x40], 0xb8ba5a8b
mov dword [ebp - 0x3c], 0x6eda5135
mov dword [ebp - 0x38], 0x7593fbf6
mov dword [ebp - 0x34], 0xae53d383
mov dword [ebp - 0x30], 0x88a0b7f6
mov dword [ebp - 0x2c], 0xc995530
mov dword [ebp - 0x28], 0x5ec492d6
mov byte [ebp - 0x24], 0xd2
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x23], al
mov dword [ebp - 0x22], 0xf2ef63aa
mov dword [ebp - 0x1e], 0xae8dcf2
mov dword [ebp - 0x1a], 0x92c2f04b
mov dword [ebp - 0x16], 0x8f339842
mov word [ebp - 0x12], 0xe582
call fcn.00407bd9
mov cl, byte [str.Assert]
lea edi, [ebp - 0x70]
mov esi, 0x42d7a0
xor eax, eax
mov dword [ebp - 8], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp cl, byte [ebp - 0x70]
jne 0x408d2e
test cl, cl
je 0x408d2b
cmp byte [ebp + eax - 0x70], 0
je 0x408d2b
mov cl, byte [eax + 0x434209]
inc eax
cmp cl, byte [ebp + eax - 0x70]
je 0x408d13
mov dword [ebp - 8], eax
call fcn.00407d6d
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov esi, dword [0x4341e4]
cmp eax, edi
jae 0x408d7a
cmp eax, 0x1d8e
jne 0x408d5f
push ecx
add esi, 0x689d04c3
push ecx
mov dword [0x4341e4], esi
call fcn.004077f4
pop ecx
pop ecx
or esi, 0x14ebf7bf
mov edx, 0x42d7e0
mov ecx, esi
call fcn.0040717c
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
jmp 0x408d3f
and dword [ebp - 8], 0
sub esi, 0x69e0cfd0
mov dword [ebp - 0xc], esi
xor eax, eax
mov byte [ebp + eax - 0x18c], al
inc eax
cmp eax, 0x100
jb 0x408d89
xor edi, edi
push str.ext_ms_win_advapi32_eventlog_l1_1_0.dll
mov edx, 0x42cdf0
mov ecx, 0x42c120
call fcn.0040815b
cmp byte [str.ext_ms_win_advapi32_eventlog_l1_1_0.dll], 0
pop ecx
je 0x408dcc
mov eax, str.ext_ms_win_advapi32_eventlog_l1_1_0.dll
add esi, 0xc3080eb
inc eax
cmp byte [eax], 0
jne 0x408dbd
mov dword [ebp - 0xc], esi
xor edx, edx
mov cl, byte [ebp + edi - 0x18c]
mov eax, edi
mov byte [ebp - 1], cl
div dword [ebp - 0x10]
movzx ecx, cl
movzx eax, byte [ebp + edx - 0x8c]
add eax, dword [ebp - 8]
add ecx, eax
movzx ecx, cl
mov dword [ebp - 8], ecx
mov al, byte [ebp + ecx - 0x18c]
mov byte [ebp + edi - 0x18c], al
inc edi
mov al, byte [ebp - 1]
mov byte [ebp + ecx - 0x18c], al
cmp edi, 0x100
jb 0x408d9a
and dword [ebp - 0x58], 0
and dword [ebp - 8], 0
call fcn.004072b2
and dword [ebp - 0x10], 0
lea edi, [ebp - 0x6c]
mov edx, dword [ebp - 8]
mov esi, 0x42c254
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [ebp - 0x60]
lea eax, [edx + 1]
mov edx, dword [ebp - 0xc]
movzx esi, al
xor edx, 0xd1ebe966
mov dword [ebp - 0xc], edx
mov dword [0x4341e4], edx
mov dword [ebp - 8], esi
mov cl, byte [ebp + esi - 0x18c]
movzx eax, cl
mov dword [ebp - 0x54], eax
add eax, dword [ebp - 0x58]
movzx edx, al
mov dword [ebp - 0x58], edx
mov al, byte [ebp + edx - 0x18c]
mov byte [ebp + esi - 0x18c], al
xor esi, esi
mov al, byte [0x43416c]
mov byte [ebp + edx - 0x18c], cl
cmp al, byte [ebp - 0x6c]
jne 0x408ee2
test al, al
je 0x408ede
cmp byte [ebp + esi - 0x6c], 0
je 0x408ede
call fcn.00407ec8
mov al, byte [esi + 0x43416d]
inc esi
cmp al, byte [ebp + esi - 0x6c]
je 0x408e89
jmp 0x408ede
mov edx, dword [ebp - 0xc]
cmp edi, 0x1977
jne 0x408eb9
add edx, 0x1120c75f
or edx, 0x56cba9fa
mov ecx, 0x42d840
mov dword [ebp - 0xc], edx
mov dword [0x4341e4], edx
mov edx, str.SrchCollatorProperties
push 0x43416c
call fcn.0040815b
pop ecx
inc edi
cmp edi, esi
jb 0x408ea8
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx eax, byte [ebp + edx - 0x18c]
add eax, dword [ebp - 0x54]
movzx eax, al
mov al, byte [ebp + eax - 0x18c]
xor al, byte [ebp + ecx - 0x50]
mov byte [ebp + ecx - 0x1f8], al
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, 0x40
jb 0x408e37
push 0x1a
pop eax
push 6
pop ecx
mov esi, str.EventThrottleBlockPeriodMs
mov dword [ebp - 0x54], eax
lea edi, [ebp - 0x8c]
mov byte [ebp - 0x26], al
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x1b8], 0
mov dword [ebp - 0x38], 0x964e89b6
mov dword [ebp - 0x34], 0xda66bead
movsw word es:[edi], word [esi]
mov dword [ebp - 0x30], 0x77083d69
mov dword [ebp - 0x2c], 0x84d37a30
mov word [ebp - 0x28], 0x24f1
movsb byte es:[edi], byte [esi]
xor edi, edi
mov dword [ebp - 0x25], 0xdd54cc6f
mov dword [ebp - 0x21], 0x6aede3c8
xor eax, eax
mov dword [ebp - 0x1d], 0x2e9168a9
mov dword [ebp - 0x19], 0xc062b513
mov word [ebp - 0x15], 0x38d3
mov byte [ebp + eax - 0x18c], al
inc eax
cmp eax, 0x100
jb 0x408f80
xor esi, esi
xor edx, edx
mov cl, byte [ebp + esi - 0x18c]
mov eax, esi
mov byte [ebp - 1], cl
div dword [ebp - 0x54]
movzx ecx, cl
movzx eax, byte [ebp + edx - 0x8c]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [ebp + edi - 0x18c]
mov byte [ebp + esi - 0x18c], al
inc esi
mov al, byte [ebp - 1]
mov byte [ebp + edi - 0x18c], al
cmp esi, 0x100
jb 0x408f91
mov esi, dword [ebp - 0xc]
xor edx, edx
xor eax, eax
xor edi, edi
mov dword [ebp - 0x10], edi
inc eax
movzx ecx, al
mov dword [ebp - 0x58], ecx
mov al, byte [ebp + ecx - 0x18c]
mov byte [ebp - 1], al
movzx eax, al
mov dword [ebp - 0x54], eax
add eax, edx
cmp byte [0x43416c], 0
movzx edx, al
mov dword [ebp - 8], edx
je 0x409020
mov eax, 0x43416c
add esi, 0xe5ae459
inc eax
cmp byte [eax], 0
jne 0x40900e
mov dword [0x4341e4], esi
mov al, byte [ebp + edx - 0x18c]
mov byte [ebp + ecx - 0x18c], al
mov al, byte [ebp - 1]
mov byte [ebp + edx - 0x18c], al
mov edx, 0x42d890
movzx eax, byte [ebp + ecx - 0x18c]
mov ecx, esi
add eax, dword [ebp - 0x54]
movzx eax, al
mov al, byte [ebp + eax - 0x18c]
mov byte [ebp - 1], al
call fcn.0040717c
cmp byte [str.Assert], 0
je 0x409084
mov edi, str.Assert
call fcn.004072b2
sub esi, 0x4a0496cb
inc edi
cmp byte [edi], 0
jne 0x40906a
mov edi, dword [ebp - 0x10]
mov dword [0x4341e4], esi
mov al, byte [ebp + edi - 0x38]
xor al, byte [ebp - 1]
mov edx, dword [ebp - 8]
mov byte [ebp + edi - 0x1b4], al
inc edi
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x10], edi
cmp edi, 0x25
jb 0x408fe1
mov ecx, dword [ebp - 0x60]
xor eax, eax
mov esi, dword [ebp - 0x5c]
mov byte [ebp - 0x18f], 0
test ecx, ecx
je 0x4090c7
cmp byte [eax + esi], 0x5f
jne 0x4090c2
mov byte [eax + esi], 0x3d
inc eax
cmp eax, ecx
jb 0x4090b8
mov ecx, esi
call fcn.0040b8e6
mov edx, eax
call fcn.0041b5fe
lea ecx, [ebp - 0x1b4]
mov edx, eax
push ecx
lea ecx, [ebp - 0x1f8]
push ecx
mov ecx, esi
call fcn.0041b107
pop ecx
pop ecx
pop edi
mov byte [eax + esi], 0
pop esi
leave
ret