Function at 0x55f60c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 0x10
mov eax, 0x59bdcd
call fcn.0057ba6f
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0xc]
push 0x59ff38
push 0x20
pop ebx
lea eax, [esi + 0x1c]
push ebx
push eax
call fcn.0057a7c3
fld dword [0x5a36f4]
fstp dword [esi + 0x368]
mov dword [esi + 0x18], 0xa
movzx eax, byte [edi + 3]
and eax, 0xf
add esp, 0xc
dec eax
cmp eax, 0xc
ja case.0x55f657.7
jmp dword [eax*4 + 0x560150]
push str.RDIMM
lea eax, [esi + 0x2e4]
push ebx
push eax
call fcn.00439b20
fld dword [0x5c3a30]
mov dword [esi + 0x304], 0x20001
jmp 0x55f756
push str.UDIMM
lea eax, [esi + 0x2e4]
push ebx
push eax
call fcn.00439b20
fld dword [0x5c3a30]
mov dword [esi + 0x304], 0x20002
jmp 0x55f756
push str.SO_DIMM
jmp 0x55f739
push str.LRDIMM
lea eax, [esi + 0x2e4]
push ebx
push eax
call fcn.00439b20
fld dword [0x5c3a30]
mov dword [esi + 0x304], 0x20004
jmp 0x55f756
push str.Mini_RDIMM
lea eax, [esi + 0x2e4]
push ebx
push eax
call fcn.00439b20
mov dword [esi + 0x304], 0x20001
jmp 0x55f75c
push str.Mini_UDIMM
lea eax, [esi + 0x2e4]
push ebx
push eax
call fcn.00439b20
fld dword [0x5a7214]
jmp 0x55f69d
push str.72b_SO_RDIMM
lea eax, [esi + 0x2e4]
push ebx
push eax
call fcn.00439b20
jmp 0x55f75c
push str.72b_SO_DIMM
jmp 0x55f739
push str.16b_SO_DIMM
jmp 0x55f739
push 0x5c39e4
lea eax, [esi + 0x2e4]
push ebx
push eax
call fcn.00439b20
fld dword [0x5c39e0]
mov dword [esi + 0x304], 0x20003
fstp dword [esi + 0x308]
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.0x55f77a
jmp dword [eax*4 + 0x560184]
mov dword [ebp + 8], 0x100
jmp case.default.0x55f77a
mov dword [ebp + 8], 0x200
jmp case.default.0x55f77a
mov dword [ebp + 8], 0x400
jmp case.default.0x55f77a
mov dword [ebp + 8], 0x800
jmp case.default.0x55f77a
mov dword [ebp + 8], 0x1000
jmp case.default.0x55f77a
mov dword [ebp + 8], 0x2000
jmp case.default.0x55f77a
mov dword [ebp + 8], 0x4000
jmp case.default.0x55f77a
mov dword [ebp + 8], 0x8000
jmp case.default.0x55f77a
mov dword [ebp + 8], 0x3000
jmp case.default.0x55f77a
mov dword [ebp + 8], 0x6000
movzx eax, byte [edi + 6]
push 7
shr eax, 4
pop edx
and eax, edx
cmp eax, edx
ja case.default.0x55f7e9
jmp dword [eax*4 + 0x5601ac]
mov dword [ebp - 0x10], 1
jmp case.default.0x55f7e9
mov dword [ebp - 0x10], 2
jmp case.default.0x55f7e9
mov dword [ebp - 0x10], 3
jmp case.default.0x55f7e9
mov dword [ebp - 0x10], 4
jmp case.default.0x55f7e9
mov dword [ebp - 0x10], 5
jmp case.default.0x55f7e9
mov dword [ebp - 0x10], 6
jmp case.default.0x55f7e9
mov dword [ebp - 0x10], edx
jmp case.default.0x55f7e9
mov dword [ebp - 0x10], 8
movzx ecx, byte [edi + 0xc]
mov eax, ecx
and eax, edx
sub eax, 0
je 0x55f85f
dec eax
je 0x55f856
dec eax
je 0x55f84d
dec eax
jne 0x55f866
mov dword [ebp - 0x1c], ebx
jmp 0x55f866
mov dword [ebp - 0x1c], 0x10
jmp 0x55f866
mov dword [ebp - 0x1c], 8
jmp 0x55f866
mov dword [ebp - 0x1c], 4
shr ecx, 3
and ecx, edx
cmp ecx, edx
ja case.default.0x55f86f
jmp dword [ecx*4 + 0x5601cc]
mov dword [esi + 0x320], 1
jmp case.default.0x55f86f
mov dword [esi + 0x320], 2
jmp case.default.0x55f86f
mov dword [esi + 0x320], 3
jmp case.default.0x55f86f
mov dword [esi + 0x320], 4
jmp case.default.0x55f86f
mov dword [esi + 0x320], 5
jmp case.default.0x55f86f
mov dword [esi + 0x320], 6
jmp case.default.0x55f86f
mov dword [esi + 0x320], edx
jmp case.default.0x55f86f
mov dword [esi + 0x320], 8
mov ebx, dword [esi + 0x320]
push ebx
call fcn.0041c390
pop ecx
test eax, eax
je 0x55f901
push dword [ebp - 0x10]
call fcn.0041c390
pop ecx
test eax, eax
je 0x55f901
mov al, byte [edi + 6]
and al, 3
cmp al, 2
jne 0x55f901
imul ebx, dword [ebp - 0x10]
mov dword [esi + 0x320], ebx
movzx eax, byte [edi + 0xd]
and eax, 7
sub eax, 0
je 0x55f931
dec eax
je 0x55f928
dec eax
je 0x55f91f
dec eax
jne 0x55f938
mov dword [ebp - 0x18], 0x40
jmp 0x55f938
mov dword [ebp - 0x18], 0x20
jmp 0x55f938
mov dword [ebp - 0x18], 0x10
jmp 0x55f938
mov dword [ebp - 0x18], 8
push dword [ebp + 8]
call fcn.0041c390
pop ecx
test eax, eax
je 0x55f991
push dword [ebp - 0x18]
call fcn.0041c390
pop ecx
test eax, eax
je 0x55f991
push dword [ebp - 0x1c]
call fcn.0041c390
pop ecx
test eax, eax
je 0x55f991
mov ebx, dword [esi + 0x320]
push ebx
call fcn.0041c390
pop ecx
test eax, eax
je 0x55f991
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 + 0x2dc], ecx
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 [0x5c39d8]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fdiv qword [0x5dd010]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [esp]
call fcn.004376a0
mov ecx, eax
imul eax, eax, 0x64
cdq
push 3
pop ebx
idiv ebx
mov dword [esi + 0x330], eax
mov eax, ecx
imul eax, eax, 0x640
cdq
idiv ebx
mov dword [esi + 0x32c], eax
mov eax, ecx
imul eax, eax, 0xc8
cdq
mov ecx, ebx
idiv ecx
push eax
push 0x5c387c
lea eax, [esi + 0x3c]
push 0x20
push eax
call fcn.00439b20
add esp, 0x14
test byte [edi + 0x14], 1
je 0x55fa6d
push 0xc
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
test eax, eax
je 0x55fa52
mov ecx, eax
call fcn.00554347
jmp 0x55fa54
xor eax, eax
fld dword [0x5a36a8]
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 0x55faad
push 0xc
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x55fa92
mov ecx, eax
call fcn.00554347
jmp 0x55fa94
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], 4
je 0x55faed
push 0xc
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x55fad2
mov ecx, eax
call fcn.00554347
jmp 0x55fad4
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], 8
je 0x55fb29
push 0xc
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x55fb0e
mov ecx, eax
call fcn.00554347
jmp 0x55fb10
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], 0x10
je 0x55fb69
push 0xc
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 4
test eax, eax
je 0x55fb4e
mov ecx, eax
call fcn.00554347
jmp 0x55fb50
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], 0x20
je 0x55fba9
push 0xc
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 5
test eax, eax
je 0x55fb8e
mov ecx, eax
call fcn.00554347
jmp 0x55fb90
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], 0x40
je 0x55fbe9
push 0xc
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 6
test eax, eax
je 0x55fbce
mov ecx, eax
call fcn.00554347
jmp 0x55fbd0
xor eax, eax
fld dword [0x5a367c]
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 0x55fc29
push 0xc
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 7
test eax, eax
je 0x55fc0e
mov ecx, eax
call fcn.00554347
jmp 0x55fc10
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 0x55fe30
test al, 1
je 0x55fc72
push 0xc
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 8
test eax, eax
je 0x55fc57
mov ecx, eax
call fcn.00554347
jmp 0x55fc59
xor eax, eax
fld dword [0x5a366c]
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 0x55fcb2
push 0xc
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 9
test eax, eax
je 0x55fc97
mov ecx, eax
call fcn.00554347
jmp 0x55fc99
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], 4
je 0x55fcf2
push 0xc
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xa
test eax, eax
je 0x55fcd7
mov ecx, eax
call fcn.00554347
jmp 0x55fcd9
xor eax, eax
fld dword [0x5a365c]
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 0x55fd32
push 0xc
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xb
test eax, eax
je 0x55fd17
mov ecx, eax
call fcn.00554347
jmp 0x55fd19
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], 0x10
je 0x55fd70
push 0xc
pop ebx
push ebx
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x55fd55
mov ecx, eax
call fcn.00554347
jmp 0x55fd57
xor eax, eax
fld dword [0x5a3688]
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 0x55fdb0
push 0xc
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xd
test eax, eax
je 0x55fd95
mov ecx, eax
call fcn.00554347
jmp 0x55fd97
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], 0x40
je 0x55fdf0
push 0xc
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xe
test eax, eax
je 0x55fdd5
mov ecx, eax
call fcn.00554347
jmp 0x55fdd7
xor eax, eax
fld dword [0x5a3670]
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 0x55fe30
push 0xc
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xf
test eax, eax
je 0x55fe15
mov ecx, eax
call fcn.00554347
jmp 0x55fe17
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
mov al, byte [edi + 0x16]
test al, al
je 0x55feb5
test al, 1
je 0x55fe75
push 0xc
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0x10
test eax, eax
je 0x55fe5a
mov ecx, eax
call fcn.00554347
jmp 0x55fe5c
xor eax, eax
fld dword [0x5a3654]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.0055b1f4
test byte [edi + 0x16], 2
je 0x55feb5
push 0xc
call fcn.00568473
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0x11
test eax, eax
je 0x55fe9a
mov ecx, eax
call fcn.00554347
jmp 0x55fe9c
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
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 [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 - 0x14], eax
fmul qword [0x5aa170]
faddp st(1)
fstp dword [ebp - 0x18]
call fcn.005549ff
jmp 0x55ff60
fldz
fcomp dword [ebx + 4]
fnstsw ax
test ah, 5
jp 0x55ff58
fld dword [ebx + 4]
push ecx
fmul qword [0x5c39d0]
fdiv dword [ebp - 0x18]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [esp]
call fcn.004376a0
mov dword [ebp + 8], eax
fild dword [ebp + 8]
pop ecx
fmul qword [0x5dd010]
fdiv qword [0x5ae328]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [ebx + 8]
fild dword [esi + 0x330]
fstp dword [ebp - 0x1c]
fld dword [ebp + 8]
fld dword [ebp - 0x1c]
fcompp
fnstsw ax
test ah, 5
jp 0x55ff58
fld dword [ebp - 0x1c]
fstp dword [ebx + 8]
lea ecx, [ebp - 0x14]
call fcn.0052ef4d
mov ebx, eax
test ebx, ebx
jne 0x55fef7
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 + 0x19]
mov dword [ebp - 0x1c], ecx
fild dword [ebp - 0x1c]
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 + 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 + 0x348]
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 + 0x34c]
jl 0x560148
movzx ebx, byte [edi + 0x140]
and ebx, 0x7f
cmp ebx, 0xf
jle 0x560029
push 0xf
pop ebx
xor eax, eax
test ebx, ebx
jle 0x560040
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 0x5600e7
mov byte [esi + 0x2b0], 0
movzx ebx, byte [edi + 0x15e]
and ebx, 0x7f
cmp ebx, 0xf
jle 0x560115
push 0xf
pop ebx
xor eax, eax
test ebx, ebx
jle 0x56012c
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