Function at 0x563ca4
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 0x10
mov eax, 0x5a054d
call fcn.00580367
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0xc]
mov al, byte [edi + 2]
sub al, 0x10
cmp al, 1
lea eax, [esi + 0x20]
ja 0x563cdd
push 0x5a8f54
push 0x20
pop ebx
push ebx
push eax
call fcn.0057eed3
add esp, 0xc
mov dword [esi + 0x1c], 1
jmp 0x563cf0
push 0x5a4e80
push 0x20
push eax
call fcn.0057eed3
add esp, 0xc
push 0x20
pop ebx
fld dword [0x5a8614]
mov dword [esi + 0x18], 0xa
fstp dword [esi + 0x36c]
movzx eax, byte [edi + 3]
and eax, 0xf
dec eax
cmp eax, 0xc
ja case.0x563d14.7
jmp dword [eax*4 + 0x564810]
push str.RDIMM
lea eax, [esi + 0x2e8]
push ebx
push eax
call fcn.0043a290
fld dword [0x5c91a8]
mov dword [esi + 0x308], 0x20001
jmp 0x563e13
push str.UDIMM
lea eax, [esi + 0x2e8]
push ebx
push eax
call fcn.0043a290
fld dword [0x5c91a8]
mov dword [esi + 0x308], 0x20002
jmp 0x563e13
push str.SO_DIMM
jmp 0x563df6
push str.LRDIMM
lea eax, [esi + 0x2e8]
push ebx
push eax
call fcn.0043a290
fld dword [0x5c91a8]
mov dword [esi + 0x308], 0x20004
jmp 0x563e13
push str.Mini_RDIMM
lea eax, [esi + 0x2e8]
push ebx
push eax
call fcn.0043a290
mov dword [esi + 0x308], 0x20001
jmp 0x563e19
push str.Mini_UDIMM
lea eax, [esi + 0x2e8]
push ebx
push eax
call fcn.0043a290
fld dword [0x5ac928]
jmp 0x563d5a
push str.72b_SO_RDIMM
lea eax, [esi + 0x2e8]
push ebx
push eax
call fcn.0043a290
jmp 0x563e19
push str.72b_SO_DIMM
jmp 0x563df6
push str.16b_SO_DIMM
jmp 0x563df6
push 0x5c915c
lea eax, [esi + 0x2e8]
push ebx
push eax
call fcn.0043a290
fld dword [0x5c9158]
mov dword [esi + 0x308], 0x20003
fstp dword [esi + 0x30c]
add esp, 0xc
or eax, 0xffffffff
mov dword [ebp + 8], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], eax
movzx eax, byte [edi + 4]
and eax, 0xf
cmp eax, 9
ja case.default.0x563e37
jmp dword [eax*4 + 0x564844]
mov dword [ebp + 8], 0x100
jmp case.default.0x563e37
mov dword [ebp + 8], 0x200
jmp case.default.0x563e37
mov dword [ebp + 8], 0x400
jmp case.default.0x563e37
mov dword [ebp + 8], 0x800
jmp case.default.0x563e37
mov dword [ebp + 8], 0x1000
jmp case.default.0x563e37
mov dword [ebp + 8], 0x2000
jmp case.default.0x563e37
mov dword [ebp + 8], 0x4000
jmp case.default.0x563e37
mov dword [ebp + 8], 0x8000
jmp case.default.0x563e37
mov dword [ebp + 8], 0x3000
jmp case.default.0x563e37
mov dword [ebp + 8], 0x6000
movzx eax, byte [edi + 6]
push 7
pop edx
shr eax, 4
and eax, edx
push 8
pop ebx
cmp eax, edx
ja case.default.0x563ea9
jmp dword [eax*4 + 0x56486c]
mov dword [ebp - 0x10], 1
jmp case.default.0x563ea9
mov dword [ebp - 0x10], 2
jmp case.default.0x563ea9
mov dword [ebp - 0x10], 3
jmp case.default.0x563ea9
mov dword [ebp - 0x10], 4
jmp case.default.0x563ea9
mov dword [ebp - 0x10], 5
jmp case.default.0x563ea9
mov dword [ebp - 0x10], 6
jmp case.default.0x563ea9
mov dword [ebp - 0x10], edx
jmp case.default.0x563ea9
mov dword [ebp - 0x10], ebx
movzx ecx, byte [edi + 0xc]
mov eax, ecx
and eax, edx
sub eax, 0
je 0x563f1b
dec eax
je 0x563f16
dec eax
je 0x563f0d
dec eax
jne 0x563f22
mov dword [ebp - 0x1c], 0x20
jmp 0x563f22
mov dword [ebp - 0x1c], 0x10
jmp 0x563f22
mov dword [ebp - 0x1c], ebx
jmp 0x563f22
mov dword [ebp - 0x1c], 4
shr ecx, 3
and ecx, edx
cmp ecx, edx
ja case.default.0x563f2b
jmp dword [ecx*4 + 0x56488c]
mov dword [esi + 0x324], 1
jmp case.default.0x563f2b
mov dword [esi + 0x324], 2
jmp case.default.0x563f2b
mov dword [esi + 0x324], 3
jmp case.default.0x563f2b
mov dword [esi + 0x324], 4
jmp case.default.0x563f2b
mov dword [esi + 0x324], 5
jmp case.default.0x563f2b
mov dword [esi + 0x324], 6
jmp case.default.0x563f2b
mov dword [esi + 0x324], edx
jmp case.default.0x563f2b
mov dword [esi + 0x324], ebx
mov ebx, dword [esi + 0x324]
push ebx
call fcn.004059c0
pop ecx
test eax, eax
je 0x563fb9
push dword [ebp - 0x10]
call fcn.004059c0
pop ecx
test eax, eax
je 0x563fb9
mov al, byte [edi + 6]
and al, 3
cmp al, 2
jne 0x563fb9
imul ebx, dword [ebp - 0x10]
mov dword [esi + 0x324], ebx
movzx eax, byte [edi + 0xd]
and eax, 7
sub eax, 0
je 0x563fe9
dec eax
je 0x563fe0
dec eax
je 0x563fd7
dec eax
jne 0x563ff0
mov dword [ebp - 0x18], 0x40
jmp 0x563ff0
mov dword [ebp - 0x18], 0x20
jmp 0x563ff0
mov dword [ebp - 0x18], 0x10
jmp 0x563ff0
mov dword [ebp - 0x18], 8
push dword [ebp + 8]
call fcn.004059c0
pop ecx
test eax, eax
je 0x564049
push dword [ebp - 0x18]
call fcn.004059c0
pop ecx
test eax, eax
je 0x564049
push dword [ebp - 0x1c]
call fcn.004059c0
pop ecx
test eax, eax
je 0x564049
mov ebx, dword [esi + 0x324]
push ebx
call fcn.004059c0
pop ecx
test eax, eax
je 0x564049
mov eax, dword [ebp - 0x18]
cdq
idiv dword [ebp - 0x1c]
mov ecx, eax
mov eax, dword [ebp + 8]
cdq
and edx, 7
add eax, edx
sar eax, 3
imul ecx, eax
imul ecx, ebx
mov dword [esi + 0x2e0], ecx
movzx eax, byte [edi + 0xe]
shr eax, 7
mov dword [esi + 0x378], eax
movsx eax, byte [edi + 0x7d]
mov dword [ebp + 8], eax
movzx eax, byte [edi + 0x12]
fild dword [ebp + 8]
push ecx
fmul qword [0x5a8ca8]
fstp dword [ebp + 8]
fld dword [ebp + 8]
mov dword [ebp + 8], eax
fild dword [ebp + 8]
fmul qword [0x5af468]
faddp st(1)
fstp dword [ebp + 8]
fld dword [ebp + 8]
fdivr qword [0x5c9150]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fdiv qword [0x5e29d8]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [esp]
call fcn.00437df0
mov ecx, eax
imul eax, eax, 0x64
cdq
push 3
pop ebx
idiv ebx
mov dword [esi + 0x334], eax
mov eax, ecx
imul eax, eax, 0x640
cdq
idiv ebx
mov dword [esi + 0x330], eax
mov eax, ecx
imul eax, eax, 0xc8
cdq
mov ecx, ebx
idiv ecx
push eax
push 0x5c8ff4
lea eax, [esi + 0x40]
push 0x20
push eax
call fcn.0043a290
add esp, 0x14
test byte [edi + 0x14], 1
je 0x564125
push 0xc
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
test eax, eax
je 0x56410a
mov ecx, eax
call fcn.00558927
jmp 0x56410c
xor eax, eax
fld dword [0x5a85c8]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.0055f860
test byte [edi + 0x14], 2
je 0x564165
push 0xc
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x56414a
mov ecx, eax
call fcn.00558927
jmp 0x56414c
xor eax, eax
fld dword [0x5a48a4]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.0055f860
test byte [edi + 0x14], 4
je 0x5641a5
push 0xc
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x56418a
mov ecx, eax
call fcn.00558927
jmp 0x56418c
xor eax, eax
fld dword [0x5a85bc]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.0055f860
test byte [edi + 0x14], 8
je 0x5641e1
push 0xc
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x5641c6
mov ecx, eax
call fcn.00558927
jmp 0x5641c8
xor eax, eax
fld dword [0x5a85b4]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.0055f860
test byte [edi + 0x14], 0x10
je 0x564221
push 0xc
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 4
test eax, eax
je 0x564206
mov ecx, eax
call fcn.00558927
jmp 0x564208
xor eax, eax
fld dword [0x5a85e8]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.0055f860
test byte [edi + 0x14], 0x20
je 0x564261
push 0xc
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 5
test eax, eax
je 0x564246
mov ecx, eax
call fcn.00558927
jmp 0x564248
xor eax, eax
fld dword [0x5a85e0]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.0055f860
test byte [edi + 0x14], 0x40
je 0x5642a1
push 0xc
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 6
test eax, eax
je 0x564286
mov ecx, eax
call fcn.00558927
jmp 0x564288
xor eax, eax
fld dword [0x5a859c]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.0055f860
test byte [edi + 0x14], 0x80
je 0x5642e1
push 0xc
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 7
test eax, eax
je 0x5642c6
mov ecx, eax
call fcn.00558927
jmp 0x5642c8
xor eax, eax
fld dword [0x5a8594]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.0055f860
mov al, byte [edi + 0x15]
test al, al
je 0x5644e8
test al, 1
je 0x56432a
push 0xc
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 8
test eax, eax
je 0x56430f
mov ecx, eax
call fcn.00558927
jmp 0x564311
xor eax, eax
fld dword [0x5a858c]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.0055f860
test byte [edi + 0x15], 2
je 0x56436a
push 0xc
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 9
test eax, eax
je 0x56434f
mov ecx, eax
call fcn.00558927
jmp 0x564351
xor eax, eax
fld dword [0x5a8584]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.0055f860
test byte [edi + 0x15], 4
je 0x5643aa
push 0xc
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xa
test eax, eax
je 0x56438f
mov ecx, eax
call fcn.00558927
jmp 0x564391
xor eax, eax
fld dword [0x5a857c]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.0055f860
test byte [edi + 0x15], 8
je 0x5643ea
push 0xc
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xb
test eax, eax
je 0x5643cf
mov ecx, eax
call fcn.00558927
jmp 0x5643d1
xor eax, eax
fld dword [0x5a8578]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.0055f860
test byte [edi + 0x15], 0x10
je 0x564428
push 0xc
pop ebx
push ebx
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x56440d
mov ecx, eax
call fcn.00558927
jmp 0x56440f
xor eax, eax
fld dword [0x5a85a8]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.0055f860
test byte [edi + 0x15], 0x20
je 0x564468
push 0xc
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xd
test eax, eax
je 0x56444d
mov ecx, eax
call fcn.00558927
jmp 0x56444f
xor eax, eax
fld dword [0x5a85a0]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.0055f860
test byte [edi + 0x15], 0x40
je 0x5644a8
push 0xc
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xe
test eax, eax
je 0x56448d
mov ecx, eax
call fcn.00558927
jmp 0x56448f
xor eax, eax
fld dword [0x5a8590]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.0055f860
test byte [edi + 0x15], 0x80
je 0x5644e8
push 0xc
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xf
test eax, eax
je 0x5644cd
mov ecx, eax
call fcn.00558927
jmp 0x5644cf
xor eax, eax
fld dword [0x5a8588]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.0055f860
mov al, byte [edi + 0x16]
test al, al
je 0x56456d
test al, 1
je 0x56452d
push 0xc
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0x10
test eax, eax
je 0x564512
mov ecx, eax
call fcn.00558927
jmp 0x564514
xor eax, eax
fld dword [0x5a8574]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.0055f860
test byte [edi + 0x16], 2
je 0x56456d
push 0xc
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0x11
test eax, eax
je 0x564552
mov ecx, eax
call fcn.00558927
jmp 0x564554
xor eax, eax
fld dword [0x5a8570]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.0055f860
movsx eax, byte [edi + 0x7b]
and dword [ebp - 0x10], 0
mov dword [ebp + 8], eax
movzx eax, byte [edi + 0x18]
fild dword [ebp + 8]
lea ecx, [ebp - 0x14]
fmul qword [0x5a8ca8]
fstp dword [ebp + 8]
fld dword [ebp + 8]
mov dword [ebp + 8], eax
fild dword [ebp + 8]
mov eax, dword [esi + 0x33c]
mov dword [ebp - 0x14], eax
fmul qword [0x5af468]
faddp st(1)
fstp dword [ebp - 0x18]
call fcn.00558fcf
jmp 0x564618
fldz
fcomp dword [ebx + 4]
fnstsw ax
test ah, 5
jp 0x564610
fld dword [ebx + 4]
push ecx
fmul qword [0x5c9148]
fdiv dword [ebp - 0x18]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [esp]
call fcn.00437df0
mov dword [ebp + 8], eax
fild dword [ebp + 8]
pop ecx
fmul qword [0x5e29d8]
fdiv qword [0x5b37f0]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [ebx + 8]
fild dword [esi + 0x334]
fstp dword [ebp - 0x1c]
fld dword [ebp + 8]
fld dword [ebp - 0x1c]
fcompp
fnstsw ax
test ah, 5
jp 0x564610
fld dword [ebp - 0x1c]
fstp dword [ebx + 8]
lea ecx, [ebp - 0x14]
call fcn.00558fe6
mov ebx, eax
test ebx, ebx
jne 0x5645af
movsx eax, byte [edi + 0x7a]
mov dword [ebp + 8], eax
lea eax, [esi + 0x340]
fild dword [ebp + 8]
fld qword [0x5a8ca8]
fmul st(1), st(0)
fxch st(1)
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [eax]
movzx ecx, byte [edi + 0x19]
mov dword [ebp - 0x1c], ecx
fild dword [ebp - 0x1c]
fld qword [0x5af468]
fmul st(1), st(0)
fld dword [ebp + 8]
faddp st(2)
fxch st(1)
fstp dword [eax]
movsx eax, byte [edi + 0x79]
mov dword [ebp + 8], eax
lea eax, [esi + 0x348]
fild dword [ebp + 8]
fmulp st(2)
fxch st(1)
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [eax]
movzx ecx, byte [edi + 0x1a]
mov dword [ebp - 0x1c], ecx
fild dword [ebp - 0x1c]
fmul st(1)
fadd dword [ebp + 8]
fstp dword [eax]
movzx eax, byte [edi + 0x1b]
movzx ecx, byte [edi + 0x1c]
and eax, 0xf
shl eax, 8
add eax, ecx
mov dword [ebp + 8], eax
fild dword [ebp + 8]
fmul st(1)
fstp dword [esi + 0x34c]
movzx eax, byte [edi + 0x1b]
movzx ecx, byte [edi + 0x1d]
shr eax, 4
shl eax, 8
add eax, ecx
cmp dword [esi + 0x10], 0x200
mov dword [ebp + 8], eax
fimul dword [ebp + 8]
fstp dword [esi + 0x350]
jl 0x564806
movzx ebx, byte [edi + 0x140]
and ebx, 0x7f
cmp ebx, 0xf
jle 0x5646e1
push 0xf
pop ebx
xor eax, eax
test ebx, ebx
jle 0x5646f8
push ebx
lea eax, [esi + 0x60]
push 0x7f
push eax
call fcn.0057f470
add esp, 0xc
mov eax, ebx
mov cl, byte [edi + 0x141]
mov byte [eax + esi + 0x60], cl
lea eax, [esi + 0xa0]
push eax
lea eax, [esi + 0x60]
push eax
call fcn.0055d096
mov cl, byte [edi + 0x143]
mov al, cl
shr al, 4
mov dl, 0xa
imul dl
and cl, 0xf
add al, cl
mov byte [esi + 0x368], al
mov cl, byte [edi + 0x144]
mov al, cl
shr al, 4
imul dl
and cl, 0xf
add al, cl
mov byte [esi + 0x369], al
movzx eax, byte [edi + 0x145]
movzx ecx, byte [edi + 0x146]
shl eax, 8
add eax, ecx
movzx ecx, byte [edi + 0x147]
shl eax, 8
add eax, ecx
movzx ecx, byte [edi + 0x148]
shl eax, 8
add eax, ecx
push eax
push 0x5bec28
mov dword [esi + 0x2e4], eax
lea eax, [esi + 0x2c0]
push 0x20
push eax
call fcn.0043a290
add esp, 0x18
lea ecx, [esi + 0x2a0]
lea eax, [edi + 0x149]
mov dword [ebp + 8], 0x14
mov dl, byte [eax]
cmp dl, 0xff
sete bl
dec bl
and bl, dl
inc eax
mov byte [ecx], bl
inc ecx
dec dword [ebp + 8]
jne 0x56479f
mov byte [esi + 0x2b4], 0
movzx ebx, byte [edi + 0x15e]
and ebx, 0x7f
cmp ebx, 0xf
jle 0x5647cd
push 0xf
pop ebx
xor eax, eax
test ebx, ebx
jle 0x5647e7
push ebx
lea eax, [esi + 0x80]
push 0x7f
push eax
call fcn.0057f470
add esp, 0xc
mov eax, ebx
mov cl, byte [edi + 0x15f]
mov byte [eax + esi + 0x80], cl
lea eax, [esi + 0x1a0]
push eax
sub esi, 0xffffff80
push esi
call fcn.0055d096
pop ecx
pop ecx
call fcn.0058043f
ret 4