Function at 0x5601ec
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 0x14
mov eax, 0x59beb0
call fcn.0057ba6f
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0xc]
movzx eax, byte [edi + 2]
sub eax, 0x10
push 0x20
pop ebx
je 0x560214
dec eax
jne 0x560226
push str.LPDDR4X
jmp 0x560219
push 0x5a402c
lea eax, [esi + 0x1c]
push ebx
push eax
call fcn.0057a7c3
add esp, 0xc
mov dword [esi + 0x18], 0xa
movzx eax, byte [edi + 3]
and eax, 0xf
cmp eax, 7
je 0x560245
cmp eax, 0xe
jne 0x56025a
push str.Soldered
jmp 0x56024a
push str.LP_DIMM
lea eax, [esi + 0x2e4]
push ebx
push eax
call fcn.00439b20
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.0x560278
jmp dword [eax*4 + 0x560cdc]
mov dword [ebp + 8], 0x100
jmp case.default.0x560278
mov dword [ebp + 8], 0x200
jmp case.default.0x560278
mov dword [ebp + 8], 0x400
jmp case.default.0x560278
mov dword [ebp + 8], 0x800
jmp case.default.0x560278
mov dword [ebp + 8], 0x1000
jmp case.default.0x560278
mov dword [ebp + 8], 0x2000
jmp case.default.0x560278
mov dword [ebp + 8], 0x4000
jmp case.default.0x560278
mov dword [ebp + 8], 0x8000
jmp case.default.0x560278
mov dword [ebp + 8], 0x3000
jmp case.default.0x560278
mov dword [ebp + 8], 0x6000
jmp case.default.0x560278
mov dword [ebp + 8], 0xc00
jmp case.default.0x560278
mov dword [ebp + 8], 0x1800
jmp case.default.0x560278
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.0x560304
jmp dword [eax*4 + 0x560d10]
mov dword [ebp - 0x10], 1
jmp case.default.0x560304
mov dword [ebp - 0x10], 2
jmp case.default.0x560304
mov dword [ebp - 0x10], 3
jmp case.default.0x560304
mov dword [ebp - 0x10], 4
jmp case.default.0x560304
mov dword [ebp - 0x10], 5
jmp case.default.0x560304
mov dword [ebp - 0x10], 6
jmp case.default.0x560304
mov dword [ebp - 0x10], edx
jmp case.default.0x560304
mov dword [ebp - 0x10], 8
shr ecx, 2
and ecx, 3
sub ecx, 0
je 0x560367
dec ecx
je 0x560362
dec ecx
jne 0x56036a
push 4
jmp 0x560364
push 2
pop ebx
jmp 0x56036a
xor ebx, ebx
inc ebx
movzx ecx, byte [edi + 0xc]
mov eax, ecx
and eax, edx
sub eax, 0
je 0x56039b
dec eax
je 0x560392
dec eax
je 0x560389
dec eax
jne 0x5603a2
mov dword [ebp - 0x20], 0x20
jmp 0x5603a2
mov dword [ebp - 0x20], 0x10
jmp 0x5603a2
mov dword [ebp - 0x20], 8
jmp 0x5603a2
mov dword [ebp - 0x20], 4
shr ecx, 3
and ecx, edx
cmp ecx, edx
ja case.default.0x5603ab
jmp dword [ecx*4 + 0x560d30]
mov dword [esi + 0x320], 1
jmp case.default.0x5603ab
mov dword [esi + 0x320], 2
jmp case.default.0x5603ab
mov dword [esi + 0x320], 3
jmp case.default.0x5603ab
mov dword [esi + 0x320], 4
jmp case.default.0x5603ab
mov dword [esi + 0x320], 5
jmp case.default.0x5603ab
mov dword [esi + 0x320], 6
jmp case.default.0x5603ab
mov dword [esi + 0x320], edx
jmp case.default.0x5603ab
mov dword [esi + 0x320], 8
movzx ecx, byte [edi + 0xd]
mov eax, ecx
and eax, edx
sub eax, 0
je 0x56043d
dec eax
je 0x560434
dec eax
je 0x56042b
dec eax
jne 0x560444
mov dword [ebp - 0x1c], 0x40
jmp 0x560444
mov dword [ebp - 0x1c], 0x20
jmp 0x560444
mov dword [ebp - 0x1c], 0x10
jmp 0x560444
mov dword [ebp - 0x1c], 8
shr ecx, 5
sub ecx, 0
je 0x56047c
dec ecx
je 0x560473
dec ecx
je 0x56046a
dec ecx
je 0x560461
dec ecx
jne 0x560483
mov dword [ebp - 0x14], 8
jmp 0x560483
mov dword [ebp - 0x14], 4
jmp 0x560483
mov dword [ebp - 0x14], 3
jmp 0x560483
mov dword [ebp - 0x14], 2
jmp 0x560483
mov dword [ebp - 0x14], 1
push dword [ebp + 8]
call fcn.0041c390
pop ecx
test eax, eax
je 0x5604f4
push dword [ebp - 0x1c]
call fcn.0041c390
pop ecx
test eax, eax
je 0x5604f4
push dword [ebp - 0x20]
call fcn.0041c390
pop ecx
test eax, eax
je 0x5604f4
push dword [ebp - 0x10]
call fcn.0041c390
pop ecx
test eax, eax
je 0x5604f4
push dword [ebp - 0x14]
call fcn.0041c390
pop ecx
test eax, eax
je 0x5604f4
push ebx
call fcn.0041c390
pop ecx
test eax, eax
je 0x5604f4
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 + 0x2dc], eax
movzx eax, byte [edi + 0xe]
shr eax, 7
mov dword [esi + 0x374], eax
movsx eax, byte [edi + 0x7d]
mov dword [ebp + 8], eax
movzx eax, byte [edi + 0x12]
fild dword [ebp + 8]
push ecx
fmul qword [0x5a1348]
fstp dword [ebp + 8]
fld dword [ebp + 8]
mov dword [ebp + 8], eax
fild dword [ebp + 8]
fmul qword [0x5aa170]
faddp st(1)
fstp dword [ebp + 8]
fld dword [ebp + 8]
fdivr qword [0x5dcff8]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [esp]
call fcn.0041c4a0
call fcn.0057b7d0
fld dword [ebp + 8]
fadd st(0), st(0)
mov dword [esi + 0x330], eax
fmul qword [0x5dd038]
fdiv qword [0x5dd010]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [esp]
call fcn.0041c4a0
call fcn.0057b7d0
fild dword [esi + 0x330]
imul eax, eax, 0x64
fadd st(0), st(0)
mov dword [esi + 0x32c], eax
call fcn.0057b7d0
push eax
push 0x5c3a34
lea eax, [esi + 0x3c]
push 0x20
push eax
call fcn.00439b20
add esp, 0x14
test byte [edi + 0x14], 1
push 0xc
pop ebx
je 0x5605dc
push ebx
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
test eax, eax
je 0x5605c1
mov ecx, eax
call fcn.00554347
jmp 0x5605c3
xor eax, eax
fld dword [0x5a368c]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.0055b1f4
test byte [edi + 0x14], 2
je 0x56061b
push ebx
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x560600
mov ecx, eax
call fcn.00554347
jmp 0x560602
xor eax, eax
fld dword [0x5a36b0]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.0055b1f4
test byte [edi + 0x14], 4
je 0x56065a
push ebx
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x56063f
mov ecx, eax
call fcn.00554347
jmp 0x560641
xor eax, eax
fld dword [0x59f884]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.0055b1f4
test byte [edi + 0x14], 8
je 0x560699
push ebx
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x56067e
mov ecx, eax
call fcn.00554347
jmp 0x560680
xor eax, eax
fld dword [0x5a369c]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.0055b1f4
test byte [edi + 0x14], 0x10
je 0x5606d8
push ebx
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 4
test eax, eax
je 0x5606bd
mov ecx, eax
call fcn.00554347
jmp 0x5606bf
xor eax, eax
fld dword [0x5a3694]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.0055b1f4
test byte [edi + 0x14], 0x20
je 0x560717
push ebx
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 5
test eax, eax
je 0x5606fc
mov ecx, eax
call fcn.00554347
jmp 0x5606fe
xor eax, eax
fld dword [0x5a36c8]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.0055b1f4
test byte [edi + 0x14], 0x40
je 0x560756
push ebx
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 6
test eax, eax
je 0x56073b
mov ecx, eax
call fcn.00554347
jmp 0x56073d
xor eax, eax
fld dword [0x5a36c0]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.0055b1f4
test byte [edi + 0x14], 0x80
je 0x560795
push ebx
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 7
test eax, eax
je 0x56077a
mov ecx, eax
call fcn.00554347
jmp 0x56077c
xor eax, eax
fld dword [0x5a3674]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.0055b1f4
mov al, byte [edi + 0x15]
test al, al
je 0x560992
test al, 1
je 0x5607dd
push ebx
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 8
test eax, eax
je 0x5607c2
mov ecx, eax
call fcn.00554347
jmp 0x5607c4
xor eax, eax
fld dword [0x5a3664]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.0055b1f4
test byte [edi + 0x15], 2
je 0x56081c
push ebx
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 9
test eax, eax
je 0x560801
mov ecx, eax
call fcn.00554347
jmp 0x560803
xor eax, eax
fld dword [0x5a3658]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.0055b1f4
test byte [edi + 0x15], 4
je 0x56085b
push ebx
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xa
test eax, eax
je 0x560840
mov ecx, eax
call fcn.00554347
jmp 0x560842
xor eax, eax
fld dword [0x5a3680]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.0055b1f4
test byte [edi + 0x15], 8
je 0x56089a
push ebx
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xb
test eax, eax
je 0x56087f
mov ecx, eax
call fcn.00554347
jmp 0x560881
xor eax, eax
fld dword [0x5a3668]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.0055b1f4
test byte [edi + 0x15], 0x10
je 0x5608d5
push ebx
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x5608ba
mov ecx, eax
call fcn.00554347
jmp 0x5608bc
xor eax, eax
fld dword [0x5a3650]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.0055b1f4
test byte [edi + 0x15], 0x20
je 0x560914
push ebx
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xd
test eax, eax
je 0x5608f9
mov ecx, eax
call fcn.00554347
jmp 0x5608fb
xor eax, eax
fld dword [0x5bbd9c]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.0055b1f4
test byte [edi + 0x15], 0x40
je 0x560953
push ebx
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xe
test eax, eax
je 0x560938
mov ecx, eax
call fcn.00554347
jmp 0x56093a
xor eax, eax
fld dword [0x5bdb50]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.0055b1f4
test byte [edi + 0x15], 0x80
je 0x560992
push ebx
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xf
test eax, eax
je 0x560977
mov ecx, eax
call fcn.00554347
jmp 0x560979
xor eax, eax
fld dword [0x5a72b4]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.0055b1f4
mov al, byte [edi + 0x16]
test al, al
je 0x560a97
test al, 1
je 0x5609da
push ebx
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0x10
test eax, eax
je 0x5609bf
mov ecx, eax
call fcn.00554347
jmp 0x5609c1
xor eax, eax
fld dword [0x5a4d78]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.0055b1f4
test byte [edi + 0x16], 4
je 0x560a19
push ebx
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0x11
test eax, eax
je 0x5609fe
mov ecx, eax
call fcn.00554347
jmp 0x560a00
xor eax, eax
fld dword [0x5c38d4]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.0055b1f4
test byte [edi + 0x16], 0x10
je 0x560a58
push ebx
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0x12
test eax, eax
je 0x560a3d
mov ecx, eax
call fcn.00554347
jmp 0x560a3f
xor eax, eax
fld dword [0x5b7d58]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.0055b1f4
test byte [edi + 0x16], 0x40
je 0x560a97
push ebx
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0x13
test eax, eax
je 0x560a7c
mov ecx, eax
call fcn.00554347
jmp 0x560a7e
xor eax, eax
fld dword [0x5c38cc]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.0055b1f4
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 [0x5a1348]
fstp dword [ebp + 8]
fld dword [ebp + 8]
mov dword [ebp + 8], eax
fild dword [ebp + 8]
mov eax, dword [esi + 0x338]
mov dword [ebp - 0x18], eax
fmul qword [0x5aa170]
faddp st(1)
fstp dword [ebp - 0x1c]
call fcn.005549ff
jmp 0x560b26
fldz
fcomp dword [ecx + 4]
fnstsw ax
test ah, 5
jp 0x560b1e
fld dword [ebp - 0x1c]
fdiv dword [ecx + 4]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fdivr qword [0x5dcff8]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [ecx + 8]
fild dword [esi + 0x330]
fstp dword [ebp - 0x20]
fld dword [ebp + 8]
fld dword [ebp - 0x20]
fcompp
fnstsw ax
test ah, 5
jp 0x560b1e
fld dword [ebp - 0x20]
fstp dword [ecx + 8]
lea ecx, [ebp - 0x18]
call fcn.0052ef4d
mov ecx, eax
test ecx, ecx
jne 0x560ad9
cmp dword [esi + 0x10], 0x200
movsx eax, byte [edi + 0x7a]
mov dword [ebp + 8], eax
lea eax, [esi + 0x33c]
fild dword [ebp + 8]
fld qword [0x5a1348]
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 [0x5aa170]
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 + 0x344]
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 0x560cd4
movzx ebx, byte [edi + 0x140]
and ebx, 0x7f
cmp ebx, 0xf
jle 0x560bb5
push 0xf
pop ebx
xor eax, eax
test ebx, ebx
jle 0x560bcc
push ebx
lea eax, [esi + 0x5c]
push 0x7f
push eax
call fcn.0057ad60
add esp, 0xc
mov eax, ebx
mov cl, byte [edi + 0x141]
mov byte [eax + esi + 0x5c], cl
lea eax, [esi + 0x9c]
push eax
lea eax, [esi + 0x5c]
push eax
call fcn.00558ab6
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 + 0x364], al
mov cl, byte [edi + 0x144]
mov al, cl
shr al, 4
imul dl
and cl, 0xf
add al, cl
mov byte [esi + 0x365], 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 0x5b95bc
mov dword [esi + 0x2e0], eax
lea eax, [esi + 0x2bc]
push 0x20
push eax
call fcn.00439b20
add esp, 0x18
lea ecx, [esi + 0x29c]
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 0x560c73
mov byte [esi + 0x2b0], 0
movzx ebx, byte [edi + 0x15e]
and ebx, 0x7f
cmp ebx, 0xf
jle 0x560ca1
push 0xf
pop ebx
xor eax, eax
test ebx, ebx
jle 0x560cb8
push ebx
lea eax, [esi + 0x7c]
push 0x7f
push eax
call fcn.0057ad60
add esp, 0xc
mov eax, ebx
mov cl, byte [edi + 0x15f]
mov byte [eax + esi + 0x7c], cl
lea eax, [esi + 0x19c]
push eax
add esi, 0x7c
push esi
call fcn.00558ab6
pop ecx
pop ecx
call fcn.0057bb47
ret 4