Function at 0x437a88
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 [0x5b67c4]
mov dword [esp + 0x10], eax
test eax, eax
je 0x437b83
mov eax, 0x3fa00000
mov dword [0x809b4c], eax
mov dword [0x809b50], eax
movsx edx, byte [0x809b54]
test edx, edx
jne 0x437b83
mov byte [0x809b54], 1
xor edx, edx
fld qword [0x590d90]
fld qword [0x590d88]
mov dword [esp + 0x38], edx
fild dword [esp + 0x38]
fsub st(1)
fld qword [0x590d90]
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 0x437b2d
cmp eax, 0xff
jle 0x437b2f
mov eax, 0xff
jmp 0x437b2f
xor eax, eax
mov byte [edx + 0x7fe640], 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 0x437b6a
cmp eax, 0xff
jle 0x437b6c
mov eax, 0xff
jmp 0x437b6c
xor eax, eax
mov byte [edx + 0x7fe740], al
inc edx
cmp edx, 0x100
jl 0x437ae8
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 0x437c9a
xor eax, eax
mov dword [esp + 0x58], eax
mov edx, edi
mov eax, dword [esp + 0x9c]
cmp eax, edx
jl 0x437cad
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0x50]
cmp eax, edx
jge 0x437cc2
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xa0]
cmp eax, edx
jl 0x437cd3
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 0x437cee
mov edi, 0x64
test eax, eax
jne 0x437cf7
mov eax, 0x64
mov edx, dword [esp + 0x9c]
lea esi, [edx + edx - 0x64]
mov dword [esp + 0x54], esi
test esi, esi
jne 0x437d13
mov edx, 0x64
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x4c]
test edx, edx
jle 0x437d7c
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.0046bec0
add eax, edi
mov dword [ebp*4 + 0x7be240], eax
add esi, 0x100
inc ebp
mov ecx, dword [esp + 0x4c]
cmp ebp, ecx
jl 0x437d3e
mov ebx, dword [esp + 0x64]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x94]
test ebx, ebx
jle 0x437dd3
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.0046bec0
mov ecx, dword [esp + 0x58]
add eax, ecx
mov dword [ebp*4 + 0x7ce340], eax
add esi, 0x100
inc ebp
mov ecx, dword [esp + 0x64]
cmp ebp, ecx
jl 0x437d9b
mov ebx, ecx
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x94]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x437e3e
test ebx, ebx
jle 0x437e0b
xor eax, eax
mov edi, dword [eax*4 + 0x7ce340]
mov edx, edi
and edx, 0xff
and edi, 0xffffff00
movzx esi, byte [edx + 0x7fe640]
or edi, esi
mov dword [eax*4 + 0x7ce340], edi
inc eax
cmp eax, ebx
jl 0x437de1
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x437e3e
xor eax, eax
mov esi, dword [esp + 0x4c]
mov edx, dword [eax*4 + 0x7be240]
movzx edi, dl
and edx, 0xffffff00
movzx edi, byte [edi + 0x7fe740]
or edx, edi
mov dword [eax*4 + 0x7be240], edx
inc eax
cmp eax, esi
jl 0x437e19
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x48], eax
test eax, eax
jle 0x43810f
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 + 0x7be240]
sar edx, 8
add edx, ecx
test edx, edx
jge 0x437e78
lea edi, [eax + 1]
cmp edx, ebp
jge 0x4380fb
inc eax
cmp eax, esi
jl 0x437e65
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x94]
mov dword [esp + 0x2c], ebx
test ebx, ebx
jle 0x4380f4
xor esi, esi
xor eax, eax
mov edx, dword [eax*4 + 0x7ce340]
sar edx, 8
add edx, ecx
test edx, edx
jge 0x437eb3
lea esi, [eax + 1]
cmp edx, ebp
jge 0x4380eb
inc eax
cmp eax, ebx
jl 0x437ea0
mov eax, dword [esp + 0x60]
test eax, eax
jle 0x437f29
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.0046bec0
add eax, edi
mov dword [ebp*4 + 0x7ce340], eax
add esi, 0x100
inc ebp
mov ecx, dword [esp + 0x60]
cmp ebp, ecx
jl 0x437eeb
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 0x437f5c
test ebx, ebx
jle 0x437f5c
xor eax, eax
mov edx, dword [eax*4 + 0x7ce340]
movzx ecx, dl
and edx, 0xffffff00
movzx ecx, byte [ecx + 0x7fe640]
or edx, ecx
mov dword [eax*4 + 0x7ce340], edx
inc eax
cmp eax, ebx
jl 0x437f37
add ebx, ebx
add ebx, ebx
mov eax, edi
imul eax, ebx
push eax
mov edx, dword [esp + 0x24]
push edx
call dword [0x5d3480]
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 [0x5d3480]
add esp, 0x10
movsx ecx, byte [0x5b66f8]
test ecx, ecx
jle 0x4380c2
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 + 0x7b61a4], 0x29
mov eax, ebx
imul eax, dword [esp + 0x48]
cdq
idiv ecx
mov esi, dword [esp + 0x1c]
add eax, esi
mov dword [edi*8 + 0x7b61a8], eax
lea ebp, [ebx + 1]
mov eax, dword [esp + 0x48]
imul eax, ebp
cdq
idiv ecx
add eax, esi
mov dword [edi*8 + 0x7b61ac], eax
mov ecx, dword [esp + 0x40]
mov dword [edi*8 + 0x7b61b0], ecx
mov eax, dword [esp + 0x2c]
mov dword [edi*8 + 0x7b61b4], eax
mov eax, dword [esp + 0x28]
mov dword [edi*8 + 0x7b61b8], eax
mov eax, dword [esp + 0x88]
mov dword [edi*8 + 0x7b61bc], eax
mov eax, dword [esp + 0x8c]
mov dword [edi*8 + 0x7b61c0], eax
mov eax, dword [esp + 0x90]
mov dword [edi*8 + 0x7b61c4], eax
mov eax, dword [esp + 0x94]
mov dword [edi*8 + 0x7b61c8], eax
mov eax, dword [esp + 0x98]
mov dword [edi*8 + 0x7b61cc], eax
mov eax, dword [esp + 0x9c]
mov dword [edi*8 + 0x7b61d0], eax
mov eax, dword [esp + 0xa0]
mov dword [edi*8 + 0x7b61d4], eax
mov eax, dword [esp + 0x20]
mov dword [edi*8 + 0x7b61d8], eax
mov eax, dword [esp + 0x24]
mov dword [edi*8 + 0x7b61dc], eax
push dword [ebx*4 + 0x7b7ba0]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [ebx*4 + 0x7b7ca0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, ebp
movsx ecx, byte [0x5b66f8]
cmp ebp, ecx
jl 0x437fba
test ecx, ecx
jle 0x4380e3
xor ebx, ebx
push 0xffffffffffffffff
push dword [ebx*4 + 0x7b7da0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
inc ebx
movsx eax, byte [0x5b66f8]
cmp ebx, eax
jl 0x4380c8
add esp, 0x68
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp + 0x2c], eax
jmp 0x437ec0
xor esi, esi
jmp 0x437ec0
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x94]
mov dword [esp + 0x48], eax
jmp 0x437e90
xor edi, edi
jmp 0x437e90