Function at 0x4377d4
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 [0x5b57c0]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4378cf
mov eax, 0x3fa00000
mov dword [0x808c20], eax
mov dword [0x808c24], eax
movsx edx, byte [0x808c28]
test edx, edx
jne 0x4378cf
mov byte [0x808c28], 1
xor edx, edx
fld qword [0x58fd50]
fld qword [0x58fd48]
mov dword [esp + 0x38], edx
fild dword [esp + 0x38]
fsub st(1)
fld qword [0x58fd50]
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 0x437879
cmp eax, 0xff
jle 0x43787b
mov eax, 0xff
jmp 0x43787b
xor eax, eax
mov byte [edx + 0x7fd740], 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 0x4378b6
cmp eax, 0xff
jle 0x4378b8
mov eax, 0xff
jmp 0x4378b8
xor eax, eax
mov byte [edx + 0x7fd840], al
inc edx
cmp edx, 0x100
jl 0x437834
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 0x4379e6
xor eax, eax
mov dword [esp + 0x58], eax
mov edx, edi
mov eax, dword [esp + 0x9c]
cmp eax, edx
jl 0x4379f9
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0x50]
cmp eax, edx
jge 0x437a0e
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xa0]
cmp eax, edx
jl 0x437a1f
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 0x437a3a
mov edi, 0x64
test eax, eax
jne 0x437a43
mov eax, 0x64
mov edx, dword [esp + 0x9c]
lea esi, [edx + edx - 0x64]
mov dword [esp + 0x54], esi
test esi, esi
jne 0x437a5f
mov edx, 0x64
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x4c]
test edx, edx
jle 0x437ac8
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.0046a6d0
add eax, edi
mov dword [ebp*4 + 0x7bd340], eax
add esi, 0x100
inc ebp
mov ecx, dword [esp + 0x4c]
cmp ebp, ecx
jl 0x437a8a
mov ebx, dword [esp + 0x64]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x94]
test ebx, ebx
jle 0x437b1f
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.0046a6d0
mov ecx, dword [esp + 0x58]
add eax, ecx
mov dword [ebp*4 + 0x7cd440], eax
add esi, 0x100
inc ebp
mov ecx, dword [esp + 0x64]
cmp ebp, ecx
jl 0x437ae7
mov ebx, ecx
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x94]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x437b8a
test ebx, ebx
jle 0x437b57
xor eax, eax
mov edi, dword [eax*4 + 0x7cd440]
mov edx, edi
and edx, 0xff
and edi, 0xffffff00
movzx esi, byte [edx + 0x7fd740]
or edi, esi
mov dword [eax*4 + 0x7cd440], edi
inc eax
cmp eax, ebx
jl 0x437b2d
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x437b8a
xor eax, eax
mov esi, dword [esp + 0x4c]
mov edx, dword [eax*4 + 0x7bd340]
movzx edi, dl
and edx, 0xffffff00
movzx edi, byte [edi + 0x7fd840]
or edx, edi
mov dword [eax*4 + 0x7bd340], edx
inc eax
cmp eax, esi
jl 0x437b65
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x48], eax
test eax, eax
jle 0x437e5b
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 + 0x7bd340]
sar edx, 8
add edx, ecx
test edx, edx
jge 0x437bc4
lea edi, [eax + 1]
cmp edx, ebp
jge 0x437e47
inc eax
cmp eax, esi
jl 0x437bb1
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x94]
mov dword [esp + 0x2c], ebx
test ebx, ebx
jle 0x437e40
xor esi, esi
xor eax, eax
mov edx, dword [eax*4 + 0x7cd440]
sar edx, 8
add edx, ecx
test edx, edx
jge 0x437bff
lea esi, [eax + 1]
cmp edx, ebp
jge 0x437e37
inc eax
cmp eax, ebx
jl 0x437bec
mov eax, dword [esp + 0x60]
test eax, eax
jle 0x437c75
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.0046a6d0
add eax, edi
mov dword [ebp*4 + 0x7cd440], eax
add esi, 0x100
inc ebp
mov ecx, dword [esp + 0x60]
cmp ebp, ecx
jl 0x437c37
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 0x437ca8
test ebx, ebx
jle 0x437ca8
xor eax, eax
mov edx, dword [eax*4 + 0x7cd440]
movzx ecx, dl
and edx, 0xffffff00
movzx ecx, byte [ecx + 0x7fd740]
or edx, ecx
mov dword [eax*4 + 0x7cd440], edx
inc eax
cmp eax, ebx
jl 0x437c83
add ebx, ebx
add ebx, ebx
mov eax, edi
imul eax, ebx
push eax
mov edx, dword [esp + 0x24]
push edx
call dword [0x5d2480]
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 [0x5d2480]
add esp, 0x10
movsx ecx, byte [0x5b56f4]
test ecx, ecx
jle 0x437e0e
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 + 0x7b52a4], 0x29
mov eax, ebx
imul eax, dword [esp + 0x48]
cdq
idiv ecx
mov esi, dword [esp + 0x1c]
add eax, esi
mov dword [edi*8 + 0x7b52a8], eax
lea ebp, [ebx + 1]
mov eax, dword [esp + 0x48]
imul eax, ebp
cdq
idiv ecx
add eax, esi
mov dword [edi*8 + 0x7b52ac], eax
mov ecx, dword [esp + 0x40]
mov dword [edi*8 + 0x7b52b0], ecx
mov eax, dword [esp + 0x2c]
mov dword [edi*8 + 0x7b52b4], eax
mov eax, dword [esp + 0x28]
mov dword [edi*8 + 0x7b52b8], eax
mov eax, dword [esp + 0x88]
mov dword [edi*8 + 0x7b52bc], eax
mov eax, dword [esp + 0x8c]
mov dword [edi*8 + 0x7b52c0], eax
mov eax, dword [esp + 0x90]
mov dword [edi*8 + 0x7b52c4], eax
mov eax, dword [esp + 0x94]
mov dword [edi*8 + 0x7b52c8], eax
mov eax, dword [esp + 0x98]
mov dword [edi*8 + 0x7b52cc], eax
mov eax, dword [esp + 0x9c]
mov dword [edi*8 + 0x7b52d0], eax
mov eax, dword [esp + 0xa0]
mov dword [edi*8 + 0x7b52d4], eax
mov eax, dword [esp + 0x20]
mov dword [edi*8 + 0x7b52d8], eax
mov eax, dword [esp + 0x24]
mov dword [edi*8 + 0x7b52dc], eax
push dword [ebx*4 + 0x7b6ca0]
call dword [0x58d25c]
push 0xffffffffffffffff
push dword [ebx*4 + 0x7b6da0]
call dword [0x58d258]
mov ebx, ebp
movsx ecx, byte [0x5b56f4]
cmp ebp, ecx
jl 0x437d06
test ecx, ecx
jle 0x437e2f
xor ebx, ebx
push 0xffffffffffffffff
push dword [ebx*4 + 0x7b6ea0]
call dword [0x58d258]
inc ebx
movsx eax, byte [0x5b56f4]
cmp ebx, eax
jl 0x437e14
add esp, 0x68
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [esp + 0x2c], eax
jmp 0x437c0c
xor esi, esi
jmp 0x437c0c
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x94]
mov dword [esp + 0x48], eax
jmp 0x437bdc
xor edi, edi
jmp 0x437bdc