Function at 0x4371f6
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 0x10
mov eax, 0x57bf24
call fcn.0055ccd2
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0xc]
push 0x586cb0
push 0x20
pop ebx
lea eax, [esi + 0x1c]
push ebx
push eax
call fcn.0055c215
fld dword [0x586cac]
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.0x437241.7
jmp dword [eax*4 + 0x437d3a]
push 0x586be0
lea eax, [esi + 0x2e4]
push ebx
push eax
call fcn.0045ea70
fld dword [0x586ca8]
mov dword [esi + 0x304], 0x20001
jmp 0x437340
push str.UDIMM
lea eax, [esi + 0x2e4]
push ebx
push eax
call fcn.0045ea70
fld dword [0x586ca8]
mov dword [esi + 0x304], 0x20002
jmp 0x437340
push str.SO_DIMM
jmp 0x437323
push str.LRDIMM
lea eax, [esi + 0x2e4]
push ebx
push eax
call fcn.0045ea70
fld dword [0x586ca8]
mov dword [esi + 0x304], 0x20004
jmp 0x437340
push str.Mini_RDIMM
lea eax, [esi + 0x2e4]
push ebx
push eax
call fcn.0045ea70
mov dword [esi + 0x304], 0x20001
jmp 0x437346
push str.Mini_UDIMM
lea eax, [esi + 0x2e4]
push ebx
push eax
call fcn.0045ea70
fld dword [0x586a9c]
jmp 0x437287
push str.72b_SO_RDIMM
lea eax, [esi + 0x2e4]
push ebx
push eax
call fcn.0045ea70
jmp 0x437346
push str.72b_SO_DIMM
jmp 0x437323
push str.16b_SO_DIMM
jmp 0x437323
push 0x586c5c
lea eax, [esi + 0x2e4]
push ebx
push eax
call fcn.0045ea70
fld dword [0x586c58]
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.0x437364
jmp dword [eax*4 + 0x437d6e]
mov dword [ebp + 8], 0x100
jmp case.default.0x437364
mov dword [ebp + 8], 0x200
jmp case.default.0x437364
mov dword [ebp + 8], 0x400
jmp case.default.0x437364
mov dword [ebp + 8], 0x800
jmp case.default.0x437364
mov dword [ebp + 8], 0x1000
jmp case.default.0x437364
mov dword [ebp + 8], 0x2000
jmp case.default.0x437364
mov dword [ebp + 8], 0x4000
jmp case.default.0x437364
mov dword [ebp + 8], 0x8000
jmp case.default.0x437364
mov dword [ebp + 8], 0x3000
jmp case.default.0x437364
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.0x4373d3
jmp dword [eax*4 + 0x437d96]
mov dword [ebp - 0x10], 1
jmp case.default.0x4373d3
mov dword [ebp - 0x10], 2
jmp case.default.0x4373d3
mov dword [ebp - 0x10], 3
jmp case.default.0x4373d3
mov dword [ebp - 0x10], 4
jmp case.default.0x4373d3
mov dword [ebp - 0x10], 5
jmp case.default.0x4373d3
mov dword [ebp - 0x10], 6
jmp case.default.0x4373d3
mov dword [ebp - 0x10], edx
jmp case.default.0x4373d3
mov dword [ebp - 0x10], 8
movzx ecx, byte [edi + 0xc]
mov eax, ecx
and eax, edx
sub eax, 0
je 0x437449
dec eax
je 0x437440
dec eax
je 0x437437
dec eax
jne 0x437450
mov dword [ebp - 0x1c], ebx
jmp 0x437450
mov dword [ebp - 0x1c], 0x10
jmp 0x437450
mov dword [ebp - 0x1c], 8
jmp 0x437450
mov dword [ebp - 0x1c], 4
shr ecx, 3
and ecx, edx
cmp ecx, edx
ja case.default.0x437459
jmp dword [ecx*4 + 0x437db6]
mov dword [esi + 0x320], 1
jmp case.default.0x437459
mov dword [esi + 0x320], 2
jmp case.default.0x437459
mov dword [esi + 0x320], 3
jmp case.default.0x437459
mov dword [esi + 0x320], 4
jmp case.default.0x437459
mov dword [esi + 0x320], 5
jmp case.default.0x437459
mov dword [esi + 0x320], 6
jmp case.default.0x437459
mov dword [esi + 0x320], edx
jmp case.default.0x437459
mov dword [esi + 0x320], 8
mov ebx, dword [esi + 0x320]
push ebx
call fcn.004169aa
pop ecx
test eax, eax
je 0x4374eb
push dword [ebp - 0x10]
call fcn.004169aa
pop ecx
test eax, eax
je 0x4374eb
mov al, byte [edi + 6]
and al, 3
cmp al, 2
jne 0x4374eb
imul ebx, dword [ebp - 0x10]
mov dword [esi + 0x320], ebx
movzx eax, byte [edi + 0xd]
and eax, 7
sub eax, 0
je 0x43751b
dec eax
je 0x437512
dec eax
je 0x437509
dec eax
jne 0x437522
mov dword [ebp - 0x18], 0x40
jmp 0x437522
mov dword [ebp - 0x18], 0x20
jmp 0x437522
mov dword [ebp - 0x18], 0x10
jmp 0x437522
mov dword [ebp - 0x18], 8
push dword [ebp + 8]
call fcn.004169aa
pop ecx
test eax, eax
je 0x43757b
push dword [ebp - 0x18]
call fcn.004169aa
pop ecx
test eax, eax
je 0x43757b
push dword [ebp - 0x1c]
call fcn.004169aa
pop ecx
test eax, eax
je 0x43757b
mov ebx, dword [esi + 0x320]
push ebx
call fcn.004169aa
pop ecx
test eax, eax
je 0x43757b
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 [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 [0x586c48]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fdiv qword [0x5c1180]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [esp]
call fcn.0045c970
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 0x586a80
lea eax, [esi + 0x3c]
push 0x20
push eax
call fcn.0045ea70
add esp, 0x14
test byte [edi + 0x14], 1
je 0x437657
push 0xc
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
test eax, eax
je 0x43763c
mov ecx, eax
call fcn.0042c580
jmp 0x43763e
xor eax, eax
fld dword [0x586a40]
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 0x437697
push 0xc
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x43767c
mov ecx, eax
call fcn.0042c580
jmp 0x43767e
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], 4
je 0x4376d7
push 0xc
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x4376bc
mov ecx, eax
call fcn.0042c580
jmp 0x4376be
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], 8
je 0x437713
push 0xc
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x4376f8
mov ecx, eax
call fcn.0042c580
jmp 0x4376fa
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], 0x10
je 0x437753
push 0xc
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 4
test eax, eax
je 0x437738
mov ecx, eax
call fcn.0042c580
jmp 0x43773a
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], 0x20
je 0x437793
push 0xc
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 5
test eax, eax
je 0x437778
mov ecx, eax
call fcn.0042c580
jmp 0x43777a
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], 0x40
je 0x4377d3
push 0xc
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 6
test eax, eax
je 0x4377b8
mov ecx, eax
call fcn.0042c580
jmp 0x4377ba
xor eax, eax
fld dword [0x586a2c]
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 0x437813
push 0xc
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 7
test eax, eax
je 0x4377f8
mov ecx, eax
call fcn.0042c580
jmp 0x4377fa
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 0x437a1a
test al, 1
je 0x43785c
push 0xc
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 8
test eax, eax
je 0x437841
mov ecx, eax
call fcn.0042c580
jmp 0x437843
xor eax, eax
fld dword [0x586a24]
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 0x43789c
push 0xc
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 9
test eax, eax
je 0x437881
mov ecx, eax
call fcn.0042c580
jmp 0x437883
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], 4
je 0x4378dc
push 0xc
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xa
test eax, eax
je 0x4378c1
mov ecx, eax
call fcn.0042c580
jmp 0x4378c3
xor eax, eax
fld dword [0x586a1c]
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 0x43791c
push 0xc
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xb
test eax, eax
je 0x437901
mov ecx, eax
call fcn.0042c580
jmp 0x437903
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], 0x10
je 0x43795a
push 0xc
pop ebx
push ebx
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x43793f
mov ecx, eax
call fcn.0042c580
jmp 0x437941
xor eax, eax
fld dword [0x586a7c]
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 0x43799a
push 0xc
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xd
test eax, eax
je 0x43797f
mov ecx, eax
call fcn.0042c580
jmp 0x437981
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], 0x40
je 0x4379da
push 0xc
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xe
test eax, eax
je 0x4379bf
mov ecx, eax
call fcn.0042c580
jmp 0x4379c1
xor eax, eax
fld dword [0x586a74]
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 0x437a1a
push 0xc
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xf
test eax, eax
je 0x4379ff
mov ecx, eax
call fcn.0042c580
jmp 0x437a01
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
mov al, byte [edi + 0x16]
test al, al
je 0x437a9f
test al, 1
je 0x437a5f
push 0xc
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0x10
test eax, eax
je 0x437a44
mov ecx, eax
call fcn.0042c580
jmp 0x437a46
xor eax, eax
fld dword [0x586a6c]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.00432dde
test byte [edi + 0x16], 2
je 0x437a9f
push 0xc
call fcn.0054993e
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0x11
test eax, eax
je 0x437a84
mov ecx, eax
call fcn.0042c580
jmp 0x437a86
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
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 [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 - 0x14], eax
fmul qword [0x586c50]
faddp st(1)
fstp dword [ebp - 0x18]
call fcn.0042cc22
jmp 0x437b4a
fldz
fcomp dword [ebx + 4]
fnstsw ax
test ah, 5
jp 0x437b42
fld dword [ebx + 4]
push ecx
fmul qword [0x586c40]
fdiv dword [ebp - 0x18]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [esp]
call fcn.0045c970
mov dword [ebp + 8], eax
fild dword [ebp + 8]
pop ecx
fmul qword [0x5c1180]
fdiv qword [0x586bc0]
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 0x437b42
fld dword [ebp - 0x1c]
fstp dword [ebx + 8]
lea ecx, [ebp - 0x14]
call fcn.0042cc39
mov ebx, eax
test ebx, ebx
jne 0x437ae1
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 + 0x19]
mov dword [ebp - 0x1c], ecx
fild dword [ebp - 0x1c]
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 + 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 0x437d32
movzx ebx, byte [edi + 0x140]
and ebx, 0x7f
cmp ebx, 0xf
jle 0x437c13
push 0xf
pop ebx
xor eax, eax
test ebx, ebx
jle 0x437c2a
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 0x437cd1
mov byte [esi + 0x2b0], 0
movzx ebx, byte [edi + 0x15e]
and ebx, 0x7f
cmp ebx, 0xf
jle 0x437cff
push 0xf
pop ebx
xor eax, eax
test ebx, ebx
jle 0x437d16
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