Function at 0x100114d3
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 0x10
mov eax, 0x10172514
call fcn.1003f70b
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 0x1001150c
push str.LPDDR4
push 0x20
pop ebx
push ebx
push eax
call fcn.1003dc98
add esp, 0xc
mov dword [esi + 0x1c], 1
jmp 0x1001151f
push 0x10177ff4
push 0x20
push eax
call fcn.1003dc98
add esp, 0xc
push 0x20
pop ebx
fld dword [0x101f6ab0]
mov dword [esi + 0x18], 0xa
fstp dword [esi + 0x36c]
movzx eax, byte [edi + 3]
and eax, 0xf
dec eax
cmp eax, 0xc
ja case.0x10011543.7
jmp dword [eax*4 + 0x1001203f]
push str.RDIMM
lea eax, [esi + 0x2e8]
push ebx
push eax
call fcn.1013b440
fld dword [0x10177ff0]
mov dword [esi + 0x308], 0x20001
jmp 0x10011642
push str.UDIMM
lea eax, [esi + 0x2e8]
push ebx
push eax
call fcn.1013b440
fld dword [0x10177ff0]
mov dword [esi + 0x308], 0x20002
jmp 0x10011642
push str.SO_DIMM
jmp 0x10011625
push str.LRDIMM
lea eax, [esi + 0x2e8]
push ebx
push eax
call fcn.1013b440
fld dword [0x10177ff0]
mov dword [esi + 0x308], 0x20004
jmp 0x10011642
push str.Mini_RDIMM
lea eax, [esi + 0x2e8]
push ebx
push eax
call fcn.1013b440
mov dword [esi + 0x308], 0x20001
jmp 0x10011648
push str.Mini_UDIMM
lea eax, [esi + 0x2e8]
push ebx
push eax
call fcn.1013b440
fld dword [0x101f6c04]
jmp 0x10011589
push str.72b_SO_RDIMM
lea eax, [esi + 0x2e8]
push ebx
push eax
call fcn.1013b440
jmp 0x10011648
push str.72b_SO_DIMM
jmp 0x10011625
push str.16b_SO_DIMM
jmp 0x10011625
push 0x10177fa4
lea eax, [esi + 0x2e8]
push ebx
push eax
call fcn.1013b440
fld dword [0x10177fa0]
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.0x10011666
jmp dword [eax*4 + 0x10012073]
mov dword [ebp + 8], 0x100
jmp case.default.0x10011666
mov dword [ebp + 8], 0x200
jmp case.default.0x10011666
mov dword [ebp + 8], 0x400
jmp case.default.0x10011666
mov dword [ebp + 8], 0x800
jmp case.default.0x10011666
mov dword [ebp + 8], 0x1000
jmp case.default.0x10011666
mov dword [ebp + 8], 0x2000
jmp case.default.0x10011666
mov dword [ebp + 8], 0x4000
jmp case.default.0x10011666
mov dword [ebp + 8], 0x8000
jmp case.default.0x10011666
mov dword [ebp + 8], 0x3000
jmp case.default.0x10011666
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.0x100116d8
jmp dword [eax*4 + 0x1001209b]
mov dword [ebp - 0x10], 1
jmp case.default.0x100116d8
mov dword [ebp - 0x10], 2
jmp case.default.0x100116d8
mov dword [ebp - 0x10], 3
jmp case.default.0x100116d8
mov dword [ebp - 0x10], 4
jmp case.default.0x100116d8
mov dword [ebp - 0x10], 5
jmp case.default.0x100116d8
mov dword [ebp - 0x10], 6
jmp case.default.0x100116d8
mov dword [ebp - 0x10], edx
jmp case.default.0x100116d8
mov dword [ebp - 0x10], ebx
movzx ecx, byte [edi + 0xc]
mov eax, ecx
and eax, edx
sub eax, 0
je 0x1001174a
dec eax
je 0x10011745
dec eax
je 0x1001173c
dec eax
jne 0x10011751
mov dword [ebp - 0x1c], 0x20
jmp 0x10011751
mov dword [ebp - 0x1c], 0x10
jmp 0x10011751
mov dword [ebp - 0x1c], ebx
jmp 0x10011751
mov dword [ebp - 0x1c], 4
shr ecx, 3
and ecx, edx
cmp ecx, edx
ja case.default.0x1001175a
jmp dword [ecx*4 + 0x100120bb]
mov dword [esi + 0x324], 1
jmp case.default.0x1001175a
mov dword [esi + 0x324], 2
jmp case.default.0x1001175a
mov dword [esi + 0x324], 3
jmp case.default.0x1001175a
mov dword [esi + 0x324], 4
jmp case.default.0x1001175a
mov dword [esi + 0x324], 5
jmp case.default.0x1001175a
mov dword [esi + 0x324], 6
jmp case.default.0x1001175a
mov dword [esi + 0x324], edx
jmp case.default.0x1001175a
mov dword [esi + 0x324], ebx
mov ebx, dword [esi + 0x324]
push ebx
call fcn.10002430
pop ecx
test eax, eax
je 0x100117e8
push dword [ebp - 0x10]
call fcn.10002430
pop ecx
test eax, eax
je 0x100117e8
mov al, byte [edi + 6]
and al, 3
cmp al, 2
jne 0x100117e8
imul ebx, dword [ebp - 0x10]
mov dword [esi + 0x324], ebx
movzx eax, byte [edi + 0xd]
and eax, 7
sub eax, 0
je 0x10011818
dec eax
je 0x1001180f
dec eax
je 0x10011806
dec eax
jne 0x1001181f
mov dword [ebp - 0x18], 0x40
jmp 0x1001181f
mov dword [ebp - 0x18], 0x20
jmp 0x1001181f
mov dword [ebp - 0x18], 0x10
jmp 0x1001181f
mov dword [ebp - 0x18], 8
push dword [ebp + 8]
call fcn.10002430
pop ecx
test eax, eax
je 0x10011878
push dword [ebp - 0x18]
call fcn.10002430
pop ecx
test eax, eax
je 0x10011878
push dword [ebp - 0x1c]
call fcn.10002430
pop ecx
test eax, eax
je 0x10011878
mov ebx, dword [esi + 0x324]
push ebx
call fcn.10002430
pop ecx
test eax, eax
je 0x10011878
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 [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 [0x10177f98]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fdiv qword [0x101f6c38]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [esp]
call fcn.1013b380
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 0x10177e18
lea eax, [esi + 0x40]
push 0x20
push eax
call fcn.1013b440
add esp, 0x14
test byte [edi + 0x14], 1
je 0x10011954
push 0xc
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
test eax, eax
je 0x10011939
mov ecx, eax
call fcn.100074e2
jmp 0x1001193b
xor eax, eax
fld dword [0x101f6b88]
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 0x10011994
push 0xc
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x10011979
mov ecx, eax
call fcn.100074e2
jmp 0x1001197b
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], 4
je 0x100119d4
push 0xc
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x100119b9
mov ecx, eax
call fcn.100074e2
jmp 0x100119bb
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], 8
je 0x10011a10
push 0xc
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x100119f5
mov ecx, eax
call fcn.100074e2
jmp 0x100119f7
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], 0x10
je 0x10011a50
push 0xc
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 4
test eax, eax
je 0x10011a35
mov ecx, eax
call fcn.100074e2
jmp 0x10011a37
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], 0x20
je 0x10011a90
push 0xc
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 5
test eax, eax
je 0x10011a75
mov ecx, eax
call fcn.100074e2
jmp 0x10011a77
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], 0x40
je 0x10011ad0
push 0xc
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 6
test eax, eax
je 0x10011ab5
mov ecx, eax
call fcn.100074e2
jmp 0x10011ab7
xor eax, eax
fld dword [0x101f6b70]
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 0x10011b10
push 0xc
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 7
test eax, eax
je 0x10011af5
mov ecx, eax
call fcn.100074e2
jmp 0x10011af7
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 0x10011d17
test al, 1
je 0x10011b59
push 0xc
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 8
test eax, eax
je 0x10011b3e
mov ecx, eax
call fcn.100074e2
jmp 0x10011b40
xor eax, eax
fld dword [0x101f6b68]
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 0x10011b99
push 0xc
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 9
test eax, eax
je 0x10011b7e
mov ecx, eax
call fcn.100074e2
jmp 0x10011b80
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], 4
je 0x10011bd9
push 0xc
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xa
test eax, eax
je 0x10011bbe
mov ecx, eax
call fcn.100074e2
jmp 0x10011bc0
xor eax, eax
fld dword [0x101f6b60]
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 0x10011c19
push 0xc
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xb
test eax, eax
je 0x10011bfe
mov ecx, eax
call fcn.100074e2
jmp 0x10011c00
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], 0x10
je 0x10011c57
push 0xc
pop ebx
push ebx
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x10011c3c
mov ecx, eax
call fcn.100074e2
jmp 0x10011c3e
xor eax, eax
fld dword [0x101f6b58]
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 0x10011c97
push 0xc
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xd
test eax, eax
je 0x10011c7c
mov ecx, eax
call fcn.100074e2
jmp 0x10011c7e
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], 0x40
je 0x10011cd7
push 0xc
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xe
test eax, eax
je 0x10011cbc
mov ecx, eax
call fcn.100074e2
jmp 0x10011cbe
xor eax, eax
fld dword [0x101f6b50]
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 0x10011d17
push 0xc
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xf
test eax, eax
je 0x10011cfc
mov ecx, eax
call fcn.100074e2
jmp 0x10011cfe
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
mov al, byte [edi + 0x16]
test al, al
je 0x10011d9c
test al, 1
je 0x10011d5c
push 0xc
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0x10
test eax, eax
je 0x10011d41
mov ecx, eax
call fcn.100074e2
jmp 0x10011d43
xor eax, eax
fld dword [0x101f6b48]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x33c]
push eax
call fcn.1000d08f
test byte [edi + 0x16], 2
je 0x10011d9c
push 0xc
call fcn.1003ddbb
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0x11
test eax, eax
je 0x10011d81
mov ecx, eax
call fcn.100074e2
jmp 0x10011d83
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
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 [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 - 0x14], eax
fmul qword [0x101f6ec8]
faddp st(1)
fstp dword [ebp - 0x18]
call fcn.100079d8
jmp 0x10011e47
fldz
fcomp dword [ebx + 4]
fnstsw ax
test ah, 5
jp 0x10011e3f
fld dword [ebx + 4]
push ecx
fmul qword [0x10177f90]
fdiv dword [ebp - 0x18]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [esp]
call fcn.1013b380
mov dword [ebp + 8], eax
fild dword [ebp + 8]
pop ecx
fmul qword [0x101f6c38]
fdiv qword [0x10177f10]
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 0x10011e3f
fld dword [ebp - 0x1c]
fstp dword [ebx + 8]
lea ecx, [ebp - 0x14]
call fcn.100178a9
mov ebx, eax
test ebx, ebx
jne 0x10011dde
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 + 0x19]
mov dword [ebp - 0x1c], ecx
fild dword [ebp - 0x1c]
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 + 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 0x10012035
movzx ebx, byte [edi + 0x140]
and ebx, 0x7f
cmp ebx, 0xf
jle 0x10011f10
push 0xf
pop ebx
xor eax, eax
test ebx, ebx
jle 0x10011f27
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 0x10011fce
mov byte [esi + 0x2b4], 0
movzx ebx, byte [edi + 0x15e]
and ebx, 0x7f
cmp ebx, 0xf
jle 0x10011ffc
push 0xf
pop ebx
xor eax, eax
test ebx, ebx
jle 0x10012016
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