Function at 0x437dd6
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 0x14
mov eax, 0x57c007
call fcn.0055ccd2
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0xc]
movzx eax, byte [edi + 2]
sub eax, 0x10
push 0x20
pop ebx
je 0x437dfe
dec eax
jne 0x437e10
push str.LPDDR4X
jmp 0x437e03
push 0x586cd8
lea eax, [esi + 0x1c]
push ebx
push eax
call fcn.0055c215
add esp, 0xc
mov dword [esi + 0x18], 0xa
movzx eax, byte [edi + 3]
and eax, 0xf
cmp eax, 7
je 0x437e2f
cmp eax, 0xe
jne 0x437e44
push str.Soldered
jmp 0x437e34
push str.LP_DIMM
lea eax, [esi + 0x2e4]
push ebx
push eax
call fcn.0045ea70
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.0x437e62
jmp dword [eax*4 + 0x4388c6]
mov dword [ebp + 8], 0x100
jmp case.default.0x437e62
mov dword [ebp + 8], 0x200
jmp case.default.0x437e62
mov dword [ebp + 8], 0x400
jmp case.default.0x437e62
mov dword [ebp + 8], 0x800
jmp case.default.0x437e62
mov dword [ebp + 8], 0x1000
jmp case.default.0x437e62
mov dword [ebp + 8], 0x2000
jmp case.default.0x437e62
mov dword [ebp + 8], 0x4000
jmp case.default.0x437e62
mov dword [ebp + 8], 0x8000
jmp case.default.0x437e62
mov dword [ebp + 8], 0x3000
jmp case.default.0x437e62
mov dword [ebp + 8], 0x6000
jmp case.default.0x437e62
mov dword [ebp + 8], 0xc00
jmp case.default.0x437e62
mov dword [ebp + 8], 0x1800
jmp case.default.0x437e62
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.0x437eee
jmp dword [eax*4 + 0x4388fa]
mov dword [ebp - 0x10], 1
jmp case.default.0x437eee
mov dword [ebp - 0x10], 2
jmp case.default.0x437eee
mov dword [ebp - 0x10], 3
jmp case.default.0x437eee
mov dword [ebp - 0x10], 4
jmp case.default.0x437eee
mov dword [ebp - 0x10], 5
jmp case.default.0x437eee
mov dword [ebp - 0x10], 6
jmp case.default.0x437eee
mov dword [ebp - 0x10], edx
jmp case.default.0x437eee
mov dword [ebp - 0x10], 8
shr ecx, 2
and ecx, 3
sub ecx, 0
je 0x437f51
dec ecx
je 0x437f4c
dec ecx
jne 0x437f54
push 4
jmp 0x437f4e
push 2
pop ebx
jmp 0x437f54
xor ebx, ebx
inc ebx
movzx ecx, byte [edi + 0xc]
mov eax, ecx
and eax, edx
sub eax, 0
je 0x437f85
dec eax
je 0x437f7c
dec eax
je 0x437f73
dec eax
jne 0x437f8c
mov dword [ebp - 0x20], 0x20
jmp 0x437f8c
mov dword [ebp - 0x20], 0x10
jmp 0x437f8c
mov dword [ebp - 0x20], 8
jmp 0x437f8c
mov dword [ebp - 0x20], 4
shr ecx, 3
and ecx, edx
cmp ecx, edx
ja case.default.0x437f95
jmp dword [ecx*4 + 0x43891a]
mov dword [esi + 0x320], 1
jmp case.default.0x437f95
mov dword [esi + 0x320], 2
jmp case.default.0x437f95
mov dword [esi + 0x320], 3
jmp case.default.0x437f95
mov dword [esi + 0x320], 4
jmp case.default.0x437f95
mov dword [esi + 0x320], 5
jmp case.default.0x437f95
mov dword [esi + 0x320], 6
jmp case.default.0x437f95
mov dword [esi + 0x320], edx
jmp case.default.0x437f95
mov dword [esi + 0x320], 8
movzx ecx, byte [edi + 0xd]
mov eax, ecx
and eax, edx
sub eax, 0
je 0x438027
dec eax
je 0x43801e
dec eax
je 0x438015
dec eax
jne 0x43802e
mov dword [ebp - 0x1c], 0x40
jmp 0x43802e
mov dword [ebp - 0x1c], 0x20
jmp 0x43802e
mov dword [ebp - 0x1c], 0x10
jmp 0x43802e
mov dword [ebp - 0x1c], 8
shr ecx, 5
sub ecx, 0
je 0x438066
dec ecx
je 0x43805d
dec ecx
je 0x438054
dec ecx
je 0x43804b
dec ecx
jne 0x43806d
mov dword [ebp - 0x14], 8
jmp 0x43806d
mov dword [ebp - 0x14], 4
jmp 0x43806d
mov dword [ebp - 0x14], 3
jmp 0x43806d
mov dword [ebp - 0x14], 2
jmp 0x43806d
mov dword [ebp - 0x14], 1
push dword [ebp + 8]
call fcn.004169aa
pop ecx
test eax, eax
je 0x4380de
push dword [ebp - 0x1c]
call fcn.004169aa
pop ecx
test eax, eax
je 0x4380de
push dword [ebp - 0x20]
call fcn.004169aa
pop ecx
test eax, eax
je 0x4380de
push dword [ebp - 0x10]
call fcn.004169aa
pop ecx
test eax, eax
je 0x4380de
push dword [ebp - 0x14]
call fcn.004169aa
pop ecx
test eax, eax
je 0x4380de
push ebx
call fcn.004169aa
pop ecx
test eax, eax
je 0x4380de
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 [0x5869d0]
fstp dword [ebp + 8]
fld dword [ebp + 8]
mov dword [ebp + 8], eax
fild dword [ebp + 8]
fmul qword [0x586c50]
faddp st(1)
fstp dword [ebp + 8]
fld dword [ebp + 8]
fdivr qword [0x5c1168]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [esp]
call fcn.00416a5f
call fcn.0055ce70
fld dword [ebp + 8]
fadd st(0), st(0)
mov dword [esi + 0x330], eax
fmul qword [0x5c11a8]
fdiv qword [0x5c1180]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [esp]
call fcn.00416a5f
call fcn.0055ce70
fild dword [esi + 0x330]
imul eax, eax, 0x64
fadd st(0), st(0)
mov dword [esi + 0x32c], eax
call fcn.0055ce70
push eax
push str.LPDDR4__d
lea eax, [esi + 0x3c]
push 0x20
push eax
call fcn.0045ea70
add esp, 0x14
test byte [edi + 0x14], 1
push 0xc
pop ebx
je 0x4381c6
push ebx
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
test eax, eax
je 0x4381ab
mov ecx, eax
call fcn.0042c580
jmp 0x4381ad
xor eax, eax
fld dword [0x586b54]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.00432dde
test byte [edi + 0x14], 2
je 0x438205
push ebx
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x4381ea
mov ecx, eax
call fcn.0042c580
jmp 0x4381ec
xor eax, eax
fld dword [0x586a44]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.00432dde
test byte [edi + 0x14], 4
je 0x438244
push ebx
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x438229
mov ecx, eax
call fcn.0042c580
jmp 0x43822b
xor eax, eax
fld dword [0x5848c4]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.00432dde
test byte [edi + 0x14], 8
je 0x438283
push ebx
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x438268
mov ecx, eax
call fcn.0042c580
jmp 0x43826a
xor eax, eax
fld dword [0x586a3c]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.00432dde
test byte [edi + 0x14], 0x10
je 0x4382c2
push ebx
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 4
test eax, eax
je 0x4382a7
mov ecx, eax
call fcn.0042c580
jmp 0x4382a9
xor eax, eax
fld dword [0x586a38]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.00432dde
test byte [edi + 0x14], 0x20
je 0x438301
push ebx
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 5
test eax, eax
je 0x4382e6
mov ecx, eax
call fcn.0042c580
jmp 0x4382e8
xor eax, eax
fld dword [0x586a34]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.00432dde
test byte [edi + 0x14], 0x40
je 0x438340
push ebx
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 6
test eax, eax
je 0x438325
mov ecx, eax
call fcn.0042c580
jmp 0x438327
xor eax, eax
fld dword [0x586a30]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.00432dde
test byte [edi + 0x14], 0x80
je 0x43837f
push ebx
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 7
test eax, eax
je 0x438364
mov ecx, eax
call fcn.0042c580
jmp 0x438366
xor eax, eax
fld dword [0x586a28]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.00432dde
mov al, byte [edi + 0x15]
test al, al
je 0x43857c
test al, 1
je 0x4383c7
push ebx
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 8
test eax, eax
je 0x4383ac
mov ecx, eax
call fcn.0042c580
jmp 0x4383ae
xor eax, eax
fld dword [0x586a20]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.00432dde
test byte [edi + 0x15], 2
je 0x438406
push ebx
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 9
test eax, eax
je 0x4383eb
mov ecx, eax
call fcn.0042c580
jmp 0x4383ed
xor eax, eax
fld dword [0x586a18]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.00432dde
test byte [edi + 0x15], 4
je 0x438445
push ebx
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xa
test eax, eax
je 0x43842a
mov ecx, eax
call fcn.0042c580
jmp 0x43842c
xor eax, eax
fld dword [0x586a78]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.00432dde
test byte [edi + 0x15], 8
je 0x438484
push ebx
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xb
test eax, eax
je 0x438469
mov ecx, eax
call fcn.0042c580
jmp 0x43846b
xor eax, eax
fld dword [0x586a70]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.00432dde
test byte [edi + 0x15], 0x10
je 0x4384bf
push ebx
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x4384a4
mov ecx, eax
call fcn.0042c580
jmp 0x4384a6
xor eax, eax
fld dword [0x586a68]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.00432dde
test byte [edi + 0x15], 0x20
je 0x4384fe
push ebx
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xd
test eax, eax
je 0x4384e3
mov ecx, eax
call fcn.0042c580
jmp 0x4384e5
xor eax, eax
fld dword [0x586b08]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.00432dde
test byte [edi + 0x15], 0x40
je 0x43853d
push ebx
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xe
test eax, eax
je 0x438522
mov ecx, eax
call fcn.0042c580
jmp 0x438524
xor eax, eax
fld dword [0x586b04]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.00432dde
test byte [edi + 0x15], 0x80
je 0x43857c
push ebx
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xf
test eax, eax
je 0x438561
mov ecx, eax
call fcn.0042c580
jmp 0x438563
xor eax, eax
fld dword [0x586b00]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.00432dde
mov al, byte [edi + 0x16]
test al, al
je 0x438681
test al, 1
je 0x4385c4
push ebx
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0x10
test eax, eax
je 0x4385a9
mov ecx, eax
call fcn.0042c580
jmp 0x4385ab
xor eax, eax
fld dword [0x586afc]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.00432dde
test byte [edi + 0x16], 4
je 0x438603
push ebx
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0x11
test eax, eax
je 0x4385e8
mov ecx, eax
call fcn.0042c580
jmp 0x4385ea
xor eax, eax
fld dword [0x586af4]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.00432dde
test byte [edi + 0x16], 0x10
je 0x438642
push ebx
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0x12
test eax, eax
je 0x438627
mov ecx, eax
call fcn.0042c580
jmp 0x438629
xor eax, eax
fld dword [0x586aec]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.00432dde
test byte [edi + 0x16], 0x40
je 0x438681
push ebx
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0x13
test eax, eax
je 0x438666
mov ecx, eax
call fcn.0042c580
jmp 0x438668
xor eax, eax
fld dword [0x586ae4]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.00432dde
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 [0x5869d0]
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 [0x586c50]
faddp st(1)
fstp dword [ebp - 0x1c]
call fcn.0042cc22
jmp 0x438710
fldz
fcomp dword [ecx + 4]
fnstsw ax
test ah, 5
jp 0x438708
fld dword [ebp - 0x1c]
fdiv dword [ecx + 4]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fdivr qword [0x5c1168]
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 0x438708
fld dword [ebp - 0x20]
fstp dword [ecx + 8]
lea ecx, [ebp - 0x18]
call fcn.0042cc39
mov ecx, eax
test ecx, ecx
jne 0x4386c3
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 [0x5869d0]
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 [0x586c50]
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 0x4388be
movzx ebx, byte [edi + 0x140]
and ebx, 0x7f
cmp ebx, 0xf
jle 0x43879f
push 0xf
pop ebx
xor eax, eax
test ebx, ebx
jle 0x4387b6
push ebx
lea eax, [esi + 0x5c]
push 0x7f
push eax
call fcn.0055b160
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.004307a4
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 0x584c18
mov dword [esi + 0x2e0], eax
lea eax, [esi + 0x2bc]
push 0x20
push eax
call fcn.0045ea70
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 0x43885d
mov byte [esi + 0x2b0], 0
movzx ebx, byte [edi + 0x15e]
and ebx, 0x7f
cmp ebx, 0xf
jle 0x43888b
push 0xf
pop ebx
xor eax, eax
test ebx, ebx
jle 0x4388a2
push ebx
lea eax, [esi + 0x7c]
push 0x7f
push eax
call fcn.0055b160
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.004307a4
pop ecx
pop ecx
call fcn.0055cdaa
ret 4