Function at 0x437074
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 [0x5b37bc]
mov dword [esp + 0x10], eax
test eax, eax
je 0x43716f
mov eax, 0x3fa00000
mov dword [0x801d00], eax
mov dword [0x801d04], eax
movsx edx, byte [0x801d08]
test edx, edx
jne 0x43716f
mov byte [0x801d08], 1
xor edx, edx
fld qword [0x58dd08]
fld qword [0x58dd00]
mov dword [esp + 0x38], edx
fild dword [esp + 0x38]
fsub st(1)
fld qword [0x58dd08]
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 0x437119
cmp eax, 0xff
jle 0x43711b
mov eax, 0xff
jmp 0x43711b
xor eax, eax
mov byte [edx + 0x7fa9c0], 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 0x437156
cmp eax, 0xff
jle 0x437158
mov eax, 0xff
jmp 0x437158
xor eax, eax
mov byte [edx + 0x7faac0], al
inc edx
cmp edx, 0x100
jl 0x4370d4
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 0x437286
xor eax, eax
mov dword [esp + 0x58], eax
mov edx, edi
mov eax, dword [esp + 0x9c]
cmp eax, edx
jl 0x437299
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0x50]
cmp eax, edx
jge 0x4372ae
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xa0]
cmp eax, edx
jl 0x4372bf
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 0x4372da
mov edi, 0x64
test eax, eax
jne 0x4372e3
mov eax, 0x64
mov edx, dword [esp + 0x9c]
lea esi, [edx + edx - 0x64]
mov dword [esp + 0x54], esi
test esi, esi
jne 0x4372ff
mov edx, 0x64
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x4c]
test edx, edx
jle 0x437368
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.00468670
add eax, edi
mov dword [ebp*4 + 0x7ba5c0], eax
add esi, 0x100
inc ebp
mov ecx, dword [esp + 0x4c]
cmp ebp, ecx
jl 0x43732a
mov ebx, dword [esp + 0x64]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x94]
test ebx, ebx
jle 0x4373bf
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.00468670
mov ecx, dword [esp + 0x58]
add eax, ecx
mov dword [ebp*4 + 0x7ca6c0], eax
add esi, 0x100
inc ebp
mov ecx, dword [esp + 0x64]
cmp ebp, ecx
jl 0x437387
mov ebx, ecx
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x94]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x43742a
test ebx, ebx
jle 0x4373f7
xor eax, eax
mov edi, dword [eax*4 + 0x7ca6c0]
mov edx, edi
and edx, 0xff
and edi, 0xffffff00
movzx esi, byte [edx + 0x7fa9c0]
or edi, esi
mov dword [eax*4 + 0x7ca6c0], edi
inc eax
cmp eax, ebx
jl 0x4373cd
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x43742a
xor eax, eax
mov esi, dword [esp + 0x4c]
mov edx, dword [eax*4 + 0x7ba5c0]
movzx edi, dl
and edx, 0xffffff00
movzx edi, byte [edi + 0x7faac0]
or edx, edi
mov dword [eax*4 + 0x7ba5c0], edx
inc eax
cmp eax, esi
jl 0x437405
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x48], eax
test eax, eax
jle 0x4376fb
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 + 0x7ba5c0]
sar edx, 8
add edx, ecx
test edx, edx
jge 0x437464
lea edi, [eax + 1]
cmp edx, ebp
jge 0x4376e7
inc eax
cmp eax, esi
jl 0x437451
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x94]
mov dword [esp + 0x2c], ebx
test ebx, ebx
jle 0x4376e0
xor esi, esi
xor eax, eax
mov edx, dword [eax*4 + 0x7ca6c0]
sar edx, 8
add edx, ecx
test edx, edx
jge 0x43749f
lea esi, [eax + 1]
cmp edx, ebp
jge 0x4376d7
inc eax
cmp eax, ebx
jl 0x43748c
mov eax, dword [esp + 0x60]
test eax, eax
jle 0x437515
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.00468670
add eax, edi
mov dword [ebp*4 + 0x7ca6c0], eax
add esi, 0x100
inc ebp
mov ecx, dword [esp + 0x60]
cmp ebp, ecx
jl 0x4374d7
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 0x437548
test ebx, ebx
jle 0x437548
xor eax, eax
mov edx, dword [eax*4 + 0x7ca6c0]
movzx ecx, dl
and edx, 0xffffff00
movzx ecx, byte [ecx + 0x7fa9c0]
or edx, ecx
mov dword [eax*4 + 0x7ca6c0], edx
inc eax
cmp eax, ebx
jl 0x437523
add ebx, ebx
add ebx, ebx
mov eax, edi
imul eax, ebx
push eax
mov edx, dword [esp + 0x24]
push edx
call dword [0x5d0480]
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 [0x5d0480]
add esp, 0x10
movsx ecx, byte [0x5b36f4]
test ecx, ecx
jle 0x4376ae
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 + 0x7b2524], 0x29
mov eax, ebx
imul eax, dword [esp + 0x48]
cdq
idiv ecx
mov esi, dword [esp + 0x1c]
add eax, esi
mov dword [edi*8 + 0x7b2528], eax
lea ebp, [ebx + 1]
mov eax, dword [esp + 0x48]
imul eax, ebp
cdq
idiv ecx
add eax, esi
mov dword [edi*8 + 0x7b252c], eax
mov ecx, dword [esp + 0x40]
mov dword [edi*8 + 0x7b2530], ecx
mov eax, dword [esp + 0x2c]
mov dword [edi*8 + 0x7b2534], eax
mov eax, dword [esp + 0x28]
mov dword [edi*8 + 0x7b2538], eax
mov eax, dword [esp + 0x88]
mov dword [edi*8 + 0x7b253c], eax
mov eax, dword [esp + 0x8c]
mov dword [edi*8 + 0x7b2540], eax
mov eax, dword [esp + 0x90]
mov dword [edi*8 + 0x7b2544], eax
mov eax, dword [esp + 0x94]
mov dword [edi*8 + 0x7b2548], eax
mov eax, dword [esp + 0x98]
mov dword [edi*8 + 0x7b254c], eax
mov eax, dword [esp + 0x9c]
mov dword [edi*8 + 0x7b2550], eax
mov eax, dword [esp + 0xa0]
mov dword [edi*8 + 0x7b2554], eax
mov eax, dword [esp + 0x20]
mov dword [edi*8 + 0x7b2558], eax
mov eax, dword [esp + 0x24]
mov dword [edi*8 + 0x7b255c], eax
push dword [ebx*4 + 0x7b3f20]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [ebx*4 + 0x7b4020]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, ebp
movsx ecx, byte [0x5b36f4]
cmp ebp, ecx
jl 0x4375a6
test ecx, ecx
jle 0x4376cf
xor ebx, ebx
push 0xffffffffffffffff
push dword [ebx*4 + 0x7b4120]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
inc ebx
movsx eax, byte [0x5b36f4]
cmp ebx, eax
jl 0x4376b4
add esp, 0x68
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp + 0x2c], eax
jmp 0x4374ac
xor esi, esi
jmp 0x4374ac
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x94]
mov dword [esp + 0x48], eax
jmp 0x43747c
xor edi, edi
jmp 0x43747c