Function at 0x100120db
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 0x14
mov eax, 0x101725f7
call fcn.1003f70b
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0xc]
movzx eax, byte [edi + 2]
sub eax, 0x10
push 0x20
pop ebx
je 0x10012103
dec eax
jne 0x10012115
push str.LPDDR4X
jmp 0x10012108
push str.LPDDR4
lea eax, [esi + 0x20]
push ebx
push eax
call fcn.1003dc98
add esp, 0xc
mov dword [esi + 0x18], 0xa
movzx eax, byte [edi + 3]
and eax, 0xf
cmp eax, 7
je 0x10012134
cmp eax, 0xe
jne 0x10012149
push str.Soldered
jmp 0x10012139
push str.LP_DIMM
lea eax, [esi + 0x2e8]
push ebx
push eax
call fcn.1013b440
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.0x10012167
jmp dword [eax*4 + 0x10012bd3]
mov dword [ebp + 8], 0x100
jmp case.default.0x10012167
mov dword [ebp + 8], 0x200
jmp case.default.0x10012167
mov dword [ebp + 8], 0x400
jmp case.default.0x10012167
mov dword [ebp + 8], 0x800
jmp case.default.0x10012167
mov dword [ebp + 8], 0x1000
jmp case.default.0x10012167
mov dword [ebp + 8], 0x2000
jmp case.default.0x10012167
mov dword [ebp + 8], 0x4000
jmp case.default.0x10012167
mov dword [ebp + 8], 0x8000
jmp case.default.0x10012167
mov dword [ebp + 8], 0x3000
jmp case.default.0x10012167
mov dword [ebp + 8], 0x6000
jmp case.default.0x10012167
mov dword [ebp + 8], 0xc00
jmp case.default.0x10012167
mov dword [ebp + 8], 0x1800
jmp case.default.0x10012167
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.0x100121f3
jmp dword [eax*4 + 0x10012c07]
mov dword [ebp - 0x10], 1
jmp case.default.0x100121f3
mov dword [ebp - 0x10], 2
jmp case.default.0x100121f3
mov dword [ebp - 0x10], 3
jmp case.default.0x100121f3
mov dword [ebp - 0x10], 4
jmp case.default.0x100121f3
mov dword [ebp - 0x10], 5
jmp case.default.0x100121f3
mov dword [ebp - 0x10], 6
jmp case.default.0x100121f3
mov dword [ebp - 0x10], edx
jmp case.default.0x100121f3
mov dword [ebp - 0x10], 8
shr ecx, 2
and ecx, 3
sub ecx, 0
je 0x10012256
dec ecx
je 0x10012251
dec ecx
jne 0x10012259
push 4
jmp 0x10012253
push 2
pop ebx
jmp 0x10012259
xor ebx, ebx
inc ebx
movzx ecx, byte [edi + 0xc]
mov eax, ecx
and eax, edx
sub eax, 0
je 0x1001228a
dec eax
je 0x10012281
dec eax
je 0x10012278
dec eax
jne 0x10012291
mov dword [ebp - 0x20], 0x20
jmp 0x10012291
mov dword [ebp - 0x20], 0x10
jmp 0x10012291
mov dword [ebp - 0x20], 8
jmp 0x10012291
mov dword [ebp - 0x20], 4
shr ecx, 3
and ecx, edx
cmp ecx, edx
ja case.default.0x1001229a
jmp dword [ecx*4 + 0x10012c27]
mov dword [esi + 0x324], 1
jmp case.default.0x1001229a
mov dword [esi + 0x324], 2
jmp case.default.0x1001229a
mov dword [esi + 0x324], 3
jmp case.default.0x1001229a
mov dword [esi + 0x324], 4
jmp case.default.0x1001229a
mov dword [esi + 0x324], 5
jmp case.default.0x1001229a
mov dword [esi + 0x324], 6
jmp case.default.0x1001229a
mov dword [esi + 0x324], edx
jmp case.default.0x1001229a
mov dword [esi + 0x324], 8
movzx ecx, byte [edi + 0xd]
mov eax, ecx
and eax, edx
sub eax, 0
je 0x1001232c
dec eax
je 0x10012323
dec eax
je 0x1001231a
dec eax
jne 0x10012333
mov dword [ebp - 0x1c], 0x40
jmp 0x10012333
mov dword [ebp - 0x1c], 0x20
jmp 0x10012333
mov dword [ebp - 0x1c], 0x10
jmp 0x10012333
mov dword [ebp - 0x1c], 8
shr ecx, 5
sub ecx, 0
je 0x1001236b
dec ecx
je 0x10012362
dec ecx
je 0x10012359
dec ecx
je 0x10012350
dec ecx
jne 0x10012372
mov dword [ebp - 0x14], 8
jmp 0x10012372
mov dword [ebp - 0x14], 4
jmp 0x10012372
mov dword [ebp - 0x14], 3
jmp 0x10012372
mov dword [ebp - 0x14], 2
jmp 0x10012372
mov dword [ebp - 0x14], 1
push dword [ebp + 8]
call fcn.10002430
pop ecx
test eax, eax
je 0x100123e3
push dword [ebp - 0x1c]
call fcn.10002430
pop ecx
test eax, eax
je 0x100123e3
push dword [ebp - 0x20]
call fcn.10002430
pop ecx
test eax, eax
je 0x100123e3
push dword [ebp - 0x10]
call fcn.10002430
pop ecx
test eax, eax
je 0x100123e3
push dword [ebp - 0x14]
call fcn.10002430
pop ecx
test eax, eax
je 0x100123e3
push ebx
call fcn.10002430
pop ecx
test eax, eax
je 0x100123e3
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 [0x101f6c80]
fstp dword [ebp + 8]
fld dword [ebp + 8]
mov dword [ebp + 8], eax
fild dword [ebp + 8]
fmul qword [0x101f6ec8]
faddp st(1)
fstp dword [ebp + 8]
fld dword [ebp + 8]
fdivr qword [0x101f6bc0]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [esp]
call fcn.10001b90
call fcn.1003f8e0
fld dword [ebp + 8]
fadd st(0), st(0)
mov dword [esi + 0x334], eax
fmul qword [0x10177db8]
fdiv qword [0x101f6c38]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [esp]
call fcn.10001b90
call fcn.1003f8e0
fild dword [esi + 0x334]
imul eax, eax, 0x64
fadd st(0), st(0)
mov dword [esi + 0x330], eax
call fcn.1003f8e0
push eax
push str.LPDDR4__d
lea eax, [esi + 0x40]
push 0x20
push eax
call fcn.1013b440
add esp, 0x14
test byte [edi + 0x14], 1
push 0xc
pop ebx
je 0x100124cb
push ebx
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
test eax, eax
je 0x100124b0
mov ecx, eax
call fcn.100074e2
jmp 0x100124b2
xor eax, eax
fld dword [0x101f6bbc]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.1000d08f
test byte [edi + 0x14], 2
je 0x1001250a
push ebx
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x100124ef
mov ecx, eax
call fcn.100074e2
jmp 0x100124f1
xor eax, eax
fld dword [0x101f6b8c]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.1000d08f
test byte [edi + 0x14], 4
je 0x10012549
push ebx
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x1001252e
mov ecx, eax
call fcn.100074e2
jmp 0x10012530
xor eax, eax
fld dword [0x101f6b84]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.1000d08f
test byte [edi + 0x14], 8
je 0x10012588
push ebx
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x1001256d
mov ecx, eax
call fcn.100074e2
jmp 0x1001256f
xor eax, eax
fld dword [0x101f6b80]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.1000d08f
test byte [edi + 0x14], 0x10
je 0x100125c7
push ebx
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 4
test eax, eax
je 0x100125ac
mov ecx, eax
call fcn.100074e2
jmp 0x100125ae
xor eax, eax
fld dword [0x101f6b7c]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.1000d08f
test byte [edi + 0x14], 0x20
je 0x10012606
push ebx
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 5
test eax, eax
je 0x100125eb
mov ecx, eax
call fcn.100074e2
jmp 0x100125ed
xor eax, eax
fld dword [0x101f6b78]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.1000d08f
test byte [edi + 0x14], 0x40
je 0x10012645
push ebx
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 6
test eax, eax
je 0x1001262a
mov ecx, eax
call fcn.100074e2
jmp 0x1001262c
xor eax, eax
fld dword [0x101f6b74]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.1000d08f
test byte [edi + 0x14], 0x80
je 0x10012684
push ebx
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 7
test eax, eax
je 0x10012669
mov ecx, eax
call fcn.100074e2
jmp 0x1001266b
xor eax, eax
fld dword [0x101f6b6c]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.1000d08f
mov al, byte [edi + 0x15]
test al, al
je 0x10012881
test al, 1
je 0x100126cc
push ebx
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 8
test eax, eax
je 0x100126b1
mov ecx, eax
call fcn.100074e2
jmp 0x100126b3
xor eax, eax
fld dword [0x101f6b64]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.1000d08f
test byte [edi + 0x15], 2
je 0x1001270b
push ebx
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 9
test eax, eax
je 0x100126f0
mov ecx, eax
call fcn.100074e2
jmp 0x100126f2
xor eax, eax
fld dword [0x101f6b5c]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.1000d08f
test byte [edi + 0x15], 4
je 0x1001274a
push ebx
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xa
test eax, eax
je 0x1001272f
mov ecx, eax
call fcn.100074e2
jmp 0x10012731
xor eax, eax
fld dword [0x101f6b54]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.1000d08f
test byte [edi + 0x15], 8
je 0x10012789
push ebx
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xb
test eax, eax
je 0x1001276e
mov ecx, eax
call fcn.100074e2
jmp 0x10012770
xor eax, eax
fld dword [0x101f6b4c]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.1000d08f
test byte [edi + 0x15], 0x10
je 0x100127c4
push ebx
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x100127a9
mov ecx, eax
call fcn.100074e2
jmp 0x100127ab
xor eax, eax
fld dword [0x101f6b44]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.1000d08f
test byte [edi + 0x15], 0x20
je 0x10012803
push ebx
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xd
test eax, eax
je 0x100127e8
mov ecx, eax
call fcn.100074e2
jmp 0x100127ea
xor eax, eax
fld dword [0x101f7138]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.1000d08f
test byte [edi + 0x15], 0x40
je 0x10012842
push ebx
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xe
test eax, eax
je 0x10012827
mov ecx, eax
call fcn.100074e2
jmp 0x10012829
xor eax, eax
fld dword [0x10177e74]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.1000d08f
test byte [edi + 0x15], 0x80
je 0x10012881
push ebx
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xf
test eax, eax
je 0x10012866
mov ecx, eax
call fcn.100074e2
jmp 0x10012868
xor eax, eax
fld dword [0x101f7028]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.1000d08f
mov al, byte [edi + 0x16]
test al, al
je 0x10012986
test al, 1
je 0x100128c9
push ebx
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0x10
test eax, eax
je 0x100128ae
mov ecx, eax
call fcn.100074e2
jmp 0x100128b0
xor eax, eax
fld dword [0x101f6c30]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.1000d08f
test byte [edi + 0x16], 4
je 0x10012908
push ebx
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0x11
test eax, eax
je 0x100128ed
mov ecx, eax
call fcn.100074e2
jmp 0x100128ef
xor eax, eax
fld dword [0x10177e6c]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.1000d08f
test byte [edi + 0x16], 0x10
je 0x10012947
push ebx
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0x12
test eax, eax
je 0x1001292c
mov ecx, eax
call fcn.100074e2
jmp 0x1001292e
xor eax, eax
fld dword [0x101f6edc]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.1000d08f
test byte [edi + 0x16], 0x40
je 0x10012986
push ebx
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0x13
test eax, eax
je 0x1001296b
mov ecx, eax
call fcn.100074e2
jmp 0x1001296d
xor eax, eax
fld dword [0x10177e64]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.1000d08f
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 [0x101f6c80]
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 [0x101f6ec8]
faddp st(1)
fstp dword [ebp - 0x1c]
call fcn.100079d8
jmp 0x10012a15
fldz
fcomp dword [ecx + 4]
fnstsw ax
test ah, 5
jp 0x10012a0d
fld dword [ebp - 0x1c]
fdiv dword [ecx + 4]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fdivr qword [0x101f6bc0]
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 0x10012a0d
fld dword [ebp - 0x20]
fstp dword [ecx + 8]
lea ecx, [ebp - 0x18]
call fcn.100178a9
mov ecx, eax
test ecx, ecx
jne 0x100129c8
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 [0x101f6c80]
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 [0x101f6ec8]
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 0x10012bc9
movzx ebx, byte [edi + 0x140]
and ebx, 0x7f
cmp ebx, 0xf
jle 0x10012aa4
push 0xf
pop ebx
xor eax, eax
test ebx, ebx
jle 0x10012abb
push ebx
lea eax, [esi + 0x60]
push 0x7f
push eax
call fcn.1003f7d0
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.1000a899
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 0x101765c0
mov dword [esi + 0x2e4], eax
lea eax, [esi + 0x2c0]
push 0x20
push eax
call fcn.1013b440
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 0x10012b62
mov byte [esi + 0x2b4], 0
movzx ebx, byte [edi + 0x15e]
and ebx, 0x7f
cmp ebx, 0xf
jle 0x10012b90
push 0xf
pop ebx
xor eax, eax
test ebx, ebx
jle 0x10012baa
push ebx
lea eax, [esi + 0x80]
push 0x7f
push eax
call fcn.1003f7d0
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.1000a899
pop ecx
pop ecx
call fcn.1003f7aa
ret 4