Function at 0x5648ac
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 0x14
mov eax, 0x5a0630
call fcn.00580367
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0xc]
movzx eax, byte [edi + 2]
sub eax, 0x10
push 0x20
pop ebx
je 0x5648d4
dec eax
jne 0x5648e6
push str.LPDDR4X
jmp 0x5648d9
push 0x5a8f54
lea eax, [esi + 0x20]
push ebx
push eax
call fcn.0057eed3
add esp, 0xc
mov dword [esi + 0x18], 0xa
movzx eax, byte [edi + 3]
and eax, 0xf
cmp eax, 7
je 0x564905
cmp eax, 0xe
jne 0x56491a
push str.Soldered
jmp 0x56490a
push str.LP_DIMM
lea eax, [esi + 0x2e8]
push ebx
push eax
call fcn.0043a290
add esp, 0xc
movzx eax, byte [edi + 4]
or ebx, 0xffffffff
and eax, 0xf
mov dword [ebp + 8], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
cmp eax, 0xc
ja case.default.0x564938
jmp dword [eax*4 + 0x5653a4]
mov dword [ebp + 8], 0x100
jmp case.default.0x564938
mov dword [ebp + 8], 0x200
jmp case.default.0x564938
mov dword [ebp + 8], 0x400
jmp case.default.0x564938
mov dword [ebp + 8], 0x800
jmp case.default.0x564938
mov dword [ebp + 8], 0x1000
jmp case.default.0x564938
mov dword [ebp + 8], 0x2000
jmp case.default.0x564938
mov dword [ebp + 8], 0x4000
jmp case.default.0x564938
mov dword [ebp + 8], 0x8000
jmp case.default.0x564938
mov dword [ebp + 8], 0x3000
jmp case.default.0x564938
mov dword [ebp + 8], 0x6000
jmp case.default.0x564938
mov dword [ebp + 8], 0xc00
jmp case.default.0x564938
mov dword [ebp + 8], 0x1800
jmp case.default.0x564938
mov dword [ebp + 8], 0x4800
movzx ecx, byte [edi + 6]
mov eax, ecx
push 7
shr eax, 4
pop edx
and eax, edx
cmp eax, edx
ja case.default.0x5649c4
jmp dword [eax*4 + 0x5653d8]
mov dword [ebp - 0x10], 1
jmp case.default.0x5649c4
mov dword [ebp - 0x10], 2
jmp case.default.0x5649c4
mov dword [ebp - 0x10], 3
jmp case.default.0x5649c4
mov dword [ebp - 0x10], 4
jmp case.default.0x5649c4
mov dword [ebp - 0x10], 5
jmp case.default.0x5649c4
mov dword [ebp - 0x10], 6
jmp case.default.0x5649c4
mov dword [ebp - 0x10], edx
jmp case.default.0x5649c4
mov dword [ebp - 0x10], 8
shr ecx, 2
and ecx, 3
sub ecx, 0
je 0x564a27
dec ecx
je 0x564a22
dec ecx
jne 0x564a2a
push 4
jmp 0x564a24
push 2
pop ebx
jmp 0x564a2a
xor ebx, ebx
inc ebx
movzx ecx, byte [edi + 0xc]
mov eax, ecx
and eax, edx
sub eax, 0
je 0x564a5b
dec eax
je 0x564a52
dec eax
je 0x564a49
dec eax
jne 0x564a62
mov dword [ebp - 0x20], 0x20
jmp 0x564a62
mov dword [ebp - 0x20], 0x10
jmp 0x564a62
mov dword [ebp - 0x20], 8
jmp 0x564a62
mov dword [ebp - 0x20], 4
shr ecx, 3
and ecx, edx
cmp ecx, edx
ja case.default.0x564a6b
jmp dword [ecx*4 + 0x5653f8]
mov dword [esi + 0x324], 1
jmp case.default.0x564a6b
mov dword [esi + 0x324], 2
jmp case.default.0x564a6b
mov dword [esi + 0x324], 3
jmp case.default.0x564a6b
mov dword [esi + 0x324], 4
jmp case.default.0x564a6b
mov dword [esi + 0x324], 5
jmp case.default.0x564a6b
mov dword [esi + 0x324], 6
jmp case.default.0x564a6b
mov dword [esi + 0x324], edx
jmp case.default.0x564a6b
mov dword [esi + 0x324], 8
movzx ecx, byte [edi + 0xd]
mov eax, ecx
and eax, edx
sub eax, 0
je 0x564afd
dec eax
je 0x564af4
dec eax
je 0x564aeb
dec eax
jne 0x564b04
mov dword [ebp - 0x1c], 0x40
jmp 0x564b04
mov dword [ebp - 0x1c], 0x20
jmp 0x564b04
mov dword [ebp - 0x1c], 0x10
jmp 0x564b04
mov dword [ebp - 0x1c], 8
shr ecx, 5
sub ecx, 0
je 0x564b3c
dec ecx
je 0x564b33
dec ecx
je 0x564b2a
dec ecx
je 0x564b21
dec ecx
jne 0x564b43
mov dword [ebp - 0x14], 8
jmp 0x564b43
mov dword [ebp - 0x14], 4
jmp 0x564b43
mov dword [ebp - 0x14], 3
jmp 0x564b43
mov dword [ebp - 0x14], 2
jmp 0x564b43
mov dword [ebp - 0x14], 1
push dword [ebp + 8]
call fcn.004059c0
pop ecx
test eax, eax
je 0x564bb4
push dword [ebp - 0x1c]
call fcn.004059c0
pop ecx
test eax, eax
je 0x564bb4
push dword [ebp - 0x20]
call fcn.004059c0
pop ecx
test eax, eax
je 0x564bb4
push dword [ebp - 0x10]
call fcn.004059c0
pop ecx
test eax, eax
je 0x564bb4
push dword [ebp - 0x14]
call fcn.004059c0
pop ecx
test eax, eax
je 0x564bb4
push ebx
call fcn.004059c0
pop ecx
test eax, eax
je 0x564bb4
mov eax, dword [ebp + 8]
imul ebx, dword [ebp - 0x20]
cdq
and edx, 7
add eax, edx
sar eax, 3
imul eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x1c]
cdq
idiv ebx
mov dword [esi + 0x2e0], eax
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 [0x5e29c0]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [esp]
call fcn.0041c970
call fcn.0057fee0
fld dword [ebp + 8]
fadd st(0), st(0)
mov dword [esi + 0x334], eax
fmul qword [0x5e2a00]
fdiv qword [0x5e29d8]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [esp]
call fcn.0041c970
call fcn.0057fee0
fild dword [esi + 0x334]
imul eax, eax, 0x64
fadd st(0), st(0)
mov dword [esi + 0x330], eax
call fcn.0057fee0
push eax
push 0x5c91ac
lea eax, [esi + 0x40]
push 0x20
push eax
call fcn.0043a290
add esp, 0x14
test byte [edi + 0x14], 1
push 0xc
pop ebx
je 0x564c9c
push ebx
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
test eax, eax
je 0x564c81
mov ecx, eax
call fcn.00558927
jmp 0x564c83
xor eax, eax
fld dword [0x5a85ac]
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 0x564cdb
push ebx
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x564cc0
mov ecx, eax
call fcn.00558927
jmp 0x564cc2
xor eax, eax
fld dword [0x5a85d0]
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 0x564d1a
push ebx
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x564cff
mov ecx, eax
call fcn.00558927
jmp 0x564d01
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], 8
je 0x564d59
push ebx
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x564d3e
mov ecx, eax
call fcn.00558927
jmp 0x564d40
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], 0x10
je 0x564d98
push ebx
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 4
test eax, eax
je 0x564d7d
mov ecx, eax
call fcn.00558927
jmp 0x564d7f
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], 0x20
je 0x564dd7
push ebx
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 5
test eax, eax
je 0x564dbc
mov ecx, eax
call fcn.00558927
jmp 0x564dbe
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], 0x40
je 0x564e16
push ebx
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 6
test eax, eax
je 0x564dfb
mov ecx, eax
call fcn.00558927
jmp 0x564dfd
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], 0x80
je 0x564e55
push ebx
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 7
test eax, eax
je 0x564e3a
mov ecx, eax
call fcn.00558927
jmp 0x564e3c
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 0x565052
test al, 1
je 0x564e9d
push ebx
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 8
test eax, eax
je 0x564e82
mov ecx, eax
call fcn.00558927
jmp 0x564e84
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], 2
je 0x564edc
push ebx
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 9
test eax, eax
je 0x564ec1
mov ecx, eax
call fcn.00558927
jmp 0x564ec3
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], 4
je 0x564f1b
push ebx
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xa
test eax, eax
je 0x564f00
mov ecx, eax
call fcn.00558927
jmp 0x564f02
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], 8
je 0x564f5a
push ebx
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xb
test eax, eax
je 0x564f3f
mov ecx, eax
call fcn.00558927
jmp 0x564f41
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
test byte [edi + 0x15], 0x10
je 0x564f95
push ebx
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x564f7a
mov ecx, eax
call fcn.00558927
jmp 0x564f7c
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
test byte [edi + 0x15], 0x20
je 0x564fd4
push ebx
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xd
test eax, eax
je 0x564fb9
mov ecx, eax
call fcn.00558927
jmp 0x564fbb
xor eax, eax
fld dword [0x5c141c]
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 0x565013
push ebx
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xe
test eax, eax
je 0x564ff8
mov ecx, eax
call fcn.00558927
jmp 0x564ffa
xor eax, eax
fld dword [0x5c31c8]
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 0x565052
push ebx
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xf
test eax, eax
je 0x565037
mov ecx, eax
call fcn.00558927
jmp 0x565039
xor eax, eax
fld dword [0x5ac9c8]
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 0x565157
test al, 1
je 0x56509a
push ebx
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0x10
test eax, eax
je 0x56507f
mov ecx, eax
call fcn.00558927
jmp 0x565081
xor eax, eax
fld dword [0x5a9ca0]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.0055f860
test byte [edi + 0x16], 4
je 0x5650d9
push ebx
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0x11
test eax, eax
je 0x5650be
mov ecx, eax
call fcn.00558927
jmp 0x5650c0
xor eax, eax
fld dword [0x5c904c]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.0055f860
test byte [edi + 0x16], 0x10
je 0x565118
push ebx
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0x12
test eax, eax
je 0x5650fd
mov ecx, eax
call fcn.00558927
jmp 0x5650ff
xor eax, eax
fld dword [0x5bd358]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.0055f860
test byte [edi + 0x16], 0x40
je 0x565157
push ebx
call fcn.0056cb85
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0x13
test eax, eax
je 0x56513c
mov ecx, eax
call fcn.00558927
jmp 0x56513e
xor eax, eax
fld dword [0x5c9044]
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 - 0x14], 0
mov dword [ebp + 8], eax
movzx eax, byte [edi + 0x18]
fild dword [ebp + 8]
lea ecx, [ebp - 0x18]
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 - 0x18], eax
fmul qword [0x5af468]
faddp st(1)
fstp dword [ebp - 0x1c]
call fcn.00558fcf
jmp 0x5651e6
fldz
fcomp dword [ecx + 4]
fnstsw ax
test ah, 5
jp 0x5651de
fld dword [ebp - 0x1c]
fdiv dword [ecx + 4]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fdivr qword [0x5e29c0]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [ecx + 8]
fild dword [esi + 0x334]
fstp dword [ebp - 0x20]
fld dword [ebp + 8]
fld dword [ebp - 0x20]
fcompp
fnstsw ax
test ah, 5
jp 0x5651de
fld dword [ebp - 0x20]
fstp dword [ecx + 8]
lea ecx, [ebp - 0x18]
call fcn.00558fe6
mov ecx, eax
test ecx, ecx
jne 0x565199
cmp dword [esi + 0x10], 0x200
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 + 0x1a]
mov dword [ebp - 0x20], ecx
fild dword [ebp - 0x20]
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 + 0x1b]
mov dword [ebp - 0x20], ecx
fild dword [ebp - 0x20]
fmulp st(1)
fadd dword [ebp + 8]
fstp dword [eax]
jl 0x56539a
movzx ebx, byte [edi + 0x140]
and ebx, 0x7f
cmp ebx, 0xf
jle 0x565275
push 0xf
pop ebx
xor eax, eax
test ebx, ebx
jle 0x56528c
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 0x565333
mov byte [esi + 0x2b4], 0
movzx ebx, byte [edi + 0x15e]
and ebx, 0x7f
cmp ebx, 0xf
jle 0x565361
push 0xf
pop ebx
xor eax, eax
test ebx, ebx
jle 0x56537b
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