Function at 0x437284
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x68
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
mov ebp, dword [esp + 0x94]
movsx eax, byte [0x5b27c0]
mov dword [esp + 0x10], eax
test eax, eax
je 0x43737f
mov eax, 0x3fa00000
mov dword [0x800e58], eax
mov dword [0x800e5c], eax
movsx edx, byte [0x800e60]
test edx, edx
jne 0x43737f
mov byte [0x800e60], 1
xor edx, edx
fld qword [0x58cce8]
fld qword [0x58cce0]
mov dword [esp + 0x38], edx
fild dword [esp + 0x38]
fsub st(1)
fld qword [0x58cce8]
fmul st(1)
fadd st(2)
fnstcw word [esp]
movzx eax, word [esp]
or eax, 0xc00
mov dword [esp + 8], eax
fldcw word [esp + 8]
fistp dword [esp + 0x30]
fldcw word [esp]
mov eax, dword [esp + 0x30]
test eax, eax
jl 0x437329
cmp eax, 0xff
jle 0x43732b
mov eax, 0xff
jmp 0x43732b
xor eax, eax
mov byte [edx + 0x7f9b00], al
fmul st(2)
fadd st(1)
fnstcw word [esp]
movzx eax, word [esp]
or eax, 0xc00
mov dword [esp + 8], eax
fldcw word [esp + 8]
fistp dword [esp + 0x30]
fldcw word [esp]
mov eax, dword [esp + 0x30]
test eax, eax
jl 0x437366
cmp eax, 0xff
jle 0x437368
mov eax, 0xff
jmp 0x437368
xor eax, eax
mov byte [edx + 0x7f9c00], al
inc edx
cmp edx, 0x100
jl 0x4372e4
fstp st(0)
fstp st(0)
mov eax, 0x51eb851f
mov ebx, dword [esp + 0x28]
imul ebx
sar edx, 5
mov eax, ebx
sar eax, 0x1f
sub edx, eax
mov dword [esp + 0x44], edx
lea eax, [edx + edx]
add eax, eax
sub eax, edx
lea esi, [edx + eax*8]
add esi, esi
add esi, esi
neg esi
add esi, ebx
mov ecx, dword [esp + 0x88]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov dword [esp + 0x40], edx
lea eax, [edx + edx]
add eax, eax
sub eax, edx
lea eax, [edx + eax*8]
add eax, eax
add eax, eax
neg eax
add eax, ecx
mov dword [esp + 0x18], eax
mov ebp, dword [esp + 0x9c]
mov eax, 0x51eb851f
imul ebp
sar edx, 5
mov eax, ebp
sar eax, 0x1f
sub edx, eax
mov dword [esp + 0x64], edx
mov edi, dword [esp + 0xa0]
mov eax, 0x51eb851f
imul edi
sar edx, 5
sar edi, 0x1f
sub edx, edi
mov dword [esp + 0x4c], edx
lea edi, [ebp + ebp]
mov eax, 0x51eb851f
imul edi
sar edx, 5
sar edi, 0x1f
sub edx, edi
mov dword [esp + 0x60], edx
mov eax, dword [esp + 0x90]
sub eax, ecx
mov dword [esp + 0x50], eax
mov edi, dword [esp + 0x8c]
sub edi, ebx
mov dword [esp + 0x5c], edi
shl esi, 8
mov eax, 0x51eb851f
imul esi
mov ecx, edx
sar ecx, 5
sar esi, 0x1f
sub ecx, esi
mov dword [esp + 0x58], ecx
mov ebx, dword [esp + 0x18]
shl ebx, 8
mov eax, 0x51eb851f
imul ebx
sar edx, 5
sar ebx, 0x1f
sub edx, ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], edx
cmp ebp, edi
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x94]
mov ebx, dword [esp + 0x64]
jge 0x437496
xor eax, eax
mov dword [esp + 0x58], eax
mov edx, edi
mov eax, dword [esp + 0x9c]
cmp eax, edx
jl 0x4374a9
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0x50]
cmp eax, edx
jge 0x4374be
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xa0]
cmp eax, edx
jl 0x4374cf
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xa0]
lea eax, [eax - 0x64]
mov edi, dword [esp + 0x9c]
add edi, 0xffffff9c
jne 0x4374ea
mov edi, 0x64
test eax, eax
jne 0x4374f3
mov eax, 0x64
mov edx, dword [esp + 0x9c]
lea esi, [edx + edx - 0x64]
mov dword [esp + 0x54], esi
test esi, esi
jne 0x43750f
mov edx, 0x64
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x4c]
test edx, edx
jle 0x437578
xor esi, esi
mov dword [esp + 0x1c], esi
cdq
mov dword [esp + 0x64], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ecx
mov ebx, edx
mov ebp, esi
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x50]
imul esi
push ebx
mov ecx, dword [esp + 0x4c]
push ecx
push edx
push eax
call fcn.00467db0
add eax, edi
mov dword [ebp*4 + 0x7b9700], eax
add esi, 0x100
inc ebp
mov ecx, dword [esp + 0x4c]
cmp ebp, ecx
jl 0x43753a
mov ebx, dword [esp + 0x64]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x94]
test ebx, ebx
jle 0x4375cf
xor esi, esi
mov dword [esp + 0x48], esi
mov eax, edi
cdq
mov esi, dword [esp + 0xc]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x44], ecx
mov ebx, edx
mov ebp, dword [esp + 0x48]
mov eax, dword [esp + 0x5c]
imul esi
push ebx
push edi
push edx
push eax
call fcn.00467db0
mov ecx, dword [esp + 0x58]
add eax, ecx
mov dword [ebp*4 + 0x7c9800], eax
add esi, 0x100
inc ebp
mov ecx, dword [esp + 0x64]
cmp ebp, ecx
jl 0x437597
mov ebx, ecx
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x94]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x43763a
test ebx, ebx
jle 0x437607
xor eax, eax
mov edi, dword [eax*4 + 0x7c9800]
mov edx, edi
and edx, 0xff
and edi, 0xffffff00
movzx esi, byte [edx + 0x7f9b00]
or edi, esi
mov dword [eax*4 + 0x7c9800], edi
inc eax
cmp eax, ebx
jl 0x4375dd
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x43763a
xor eax, eax
mov esi, dword [esp + 0x4c]
mov edx, dword [eax*4 + 0x7b9700]
movzx edi, dl
and edx, 0xffffff00
movzx edi, byte [edi + 0x7f9c00]
or edx, edi
mov dword [eax*4 + 0x7b9700], edx
inc eax
cmp eax, esi
jl 0x437615
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x48], eax
test eax, eax
jle 0x43790b
xor edi, edi
xor eax, eax
mov dword [esp + 0x44], ecx
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x40]
mov ebp, dword [esp + 0x98]
mov edx, dword [eax*4 + 0x7b9700]
sar edx, 8
add edx, ecx
test edx, edx
jge 0x437674
lea edi, [eax + 1]
cmp edx, ebp
jge 0x4378f7
inc eax
cmp eax, esi
jl 0x437661
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x94]
mov dword [esp + 0x2c], ebx
test ebx, ebx
jle 0x4378f0
xor esi, esi
xor eax, eax
mov edx, dword [eax*4 + 0x7c9800]
sar edx, 8
add edx, ecx
test edx, edx
jge 0x4376af
lea esi, [eax + 1]
cmp edx, ebp
jge 0x4378e7
inc eax
cmp eax, ebx
jl 0x43769c
mov eax, dword [esp + 0x60]
test eax, eax
jle 0x437725
xor ecx, ecx
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x54]
cdq
mov dword [esp + 0x40], esi
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], edi
mov ebx, edx
mov ebp, ecx
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
imul esi
push ebx
mov ecx, dword [esp + 0x58]
push ecx
push edx
push eax
call fcn.00467db0
add eax, edi
mov dword [ebp*4 + 0x7c9800], eax
add esi, 0x100
inc ebp
mov ecx, dword [esp + 0x60]
cmp ebp, ecx
jl 0x4376e7
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x64]
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x94]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x437758
test ebx, ebx
jle 0x437758
xor eax, eax
mov edx, dword [eax*4 + 0x7c9800]
movzx ecx, dl
and edx, 0xffffff00
movzx ecx, byte [ecx + 0x7f9b00]
or edx, ecx
mov dword [eax*4 + 0x7c9800], edx
inc eax
cmp eax, ebx
jl 0x437733
add ebx, ebx
add ebx, ebx
mov eax, edi
imul eax, ebx
push eax
mov edx, dword [esp + 0x24]
push edx
call dword [0x5cf480]
mov ecx, dword [esp + 0x50]
mov edx, ecx
imul edx, ebx
add edx, dword [esp + 0x28]
mov eax, dword [esp + 0x54]
imul eax, ebx
neg ecx
imul ecx, ebx
add eax, ecx
push eax
push edx
call dword [0x5cf480]
add esp, 0x10
movsx ecx, byte [0x5b26f4]
test ecx, ecx
jle 0x4378be
xor ebx, ebx
mov eax, dword [esp + 0x48]
sub eax, edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x1c], edi
lea ebp, [ebx + ebx]
add ebp, ebp
sub ebp, ebx
lea edi, [ebx + ebp*4]
mov dword [edi*8 + 0x7b1664], 0x29
mov eax, ebx
imul eax, dword [esp + 0x48]
cdq
idiv ecx
mov esi, dword [esp + 0x1c]
add eax, esi
mov dword [edi*8 + 0x7b1668], eax
lea ebp, [ebx + 1]
mov eax, dword [esp + 0x48]
imul eax, ebp
cdq
idiv ecx
add eax, esi
mov dword [edi*8 + 0x7b166c], eax
mov ecx, dword [esp + 0x40]
mov dword [edi*8 + 0x7b1670], ecx
mov eax, dword [esp + 0x2c]
mov dword [edi*8 + 0x7b1674], eax
mov eax, dword [esp + 0x28]
mov dword [edi*8 + 0x7b1678], eax
mov eax, dword [esp + 0x88]
mov dword [edi*8 + 0x7b167c], eax
mov eax, dword [esp + 0x8c]
mov dword [edi*8 + 0x7b1680], eax
mov eax, dword [esp + 0x90]
mov dword [edi*8 + 0x7b1684], eax
mov eax, dword [esp + 0x94]
mov dword [edi*8 + 0x7b1688], eax
mov eax, dword [esp + 0x98]
mov dword [edi*8 + 0x7b168c], eax
mov eax, dword [esp + 0x9c]
mov dword [edi*8 + 0x7b1690], eax
mov eax, dword [esp + 0xa0]
mov dword [edi*8 + 0x7b1694], eax
mov eax, dword [esp + 0x20]
mov dword [edi*8 + 0x7b1698], eax
mov eax, dword [esp + 0x24]
mov dword [edi*8 + 0x7b169c], eax
push dword [ebx*4 + 0x7b3060]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [ebx*4 + 0x7b3160]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, ebp
movsx ecx, byte [0x5b26f4]
cmp ebp, ecx
jl 0x4377b6
test ecx, ecx
jle 0x4378df
xor ebx, ebx
push 0xffffffffffffffff
push dword [ebx*4 + 0x7b3260]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
inc ebx
movsx eax, byte [0x5b26f4]
cmp ebx, eax
jl 0x4378c4
add esp, 0x68
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp + 0x2c], eax
jmp 0x4376bc
xor esi, esi
jmp 0x4376bc
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x94]
mov dword [esp + 0x48], eax
jmp 0x43768c
xor edi, edi
jmp 0x43768c