Function at 0x437dda
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 0x10
mov eax, 0x5842bf
call fcn.00565102
mov esi, dword [ebp + 8]
mov edi, dword [esi + 0xc]
push 0x58fcc8
push 0x20
pop ebx
lea eax, [esi + 0x1c]
push ebx
push eax
call fcn.00564635
fld dword [0x58fcc4]
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.0x437e25.7
jmp dword [eax*4 + 0x43891e]
push 0x58fbf8
lea eax, [esi + 0x2e4]
push ebx
push eax
call fcn.00460090
fld dword [0x58fcc0]
mov dword [esi + 0x304], 0x20001
jmp 0x437f24
push str.UDIMM
lea eax, [esi + 0x2e4]
push ebx
push eax
call fcn.00460090
fld dword [0x58fcc0]
mov dword [esi + 0x304], 0x20002
jmp 0x437f24
push str.SO_DIMM
jmp 0x437f07
push str.LRDIMM
lea eax, [esi + 0x2e4]
push ebx
push eax
call fcn.00460090
fld dword [0x58fcc0]
mov dword [esi + 0x304], 0x20004
jmp 0x437f24
push str.Mini_RDIMM
lea eax, [esi + 0x2e4]
push ebx
push eax
call fcn.00460090
mov dword [esi + 0x304], 0x20001
jmp 0x437f2a
push str.Mini_UDIMM
lea eax, [esi + 0x2e4]
push ebx
push eax
call fcn.00460090
fld dword [0x58fab4]
jmp 0x437e6b
push str.72b_SO_RDIMM
lea eax, [esi + 0x2e4]
push ebx
push eax
call fcn.00460090
jmp 0x437f2a
push str.72b_SO_DIMM
jmp 0x437f07
push str.16b_SO_DIMM
jmp 0x437f07
push 0x58fc74
lea eax, [esi + 0x2e4]
push ebx
push eax
call fcn.00460090
fld dword [0x58fc70]
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.0x437f48
jmp dword [eax*4 + 0x438952]
mov dword [ebp + 8], 0x100
jmp case.default.0x437f48
mov dword [ebp + 8], 0x200
jmp case.default.0x437f48
mov dword [ebp + 8], 0x400
jmp case.default.0x437f48
mov dword [ebp + 8], 0x800
jmp case.default.0x437f48
mov dword [ebp + 8], 0x1000
jmp case.default.0x437f48
mov dword [ebp + 8], 0x2000
jmp case.default.0x437f48
mov dword [ebp + 8], 0x4000
jmp case.default.0x437f48
mov dword [ebp + 8], 0x8000
jmp case.default.0x437f48
mov dword [ebp + 8], 0x3000
jmp case.default.0x437f48
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.0x437fb7
jmp dword [eax*4 + 0x43897a]
mov dword [ebp - 0x10], 1
jmp case.default.0x437fb7
mov dword [ebp - 0x10], 2
jmp case.default.0x437fb7
mov dword [ebp - 0x10], 3
jmp case.default.0x437fb7
mov dword [ebp - 0x10], 4
jmp case.default.0x437fb7
mov dword [ebp - 0x10], 5
jmp case.default.0x437fb7
mov dword [ebp - 0x10], 6
jmp case.default.0x437fb7
mov dword [ebp - 0x10], edx
jmp case.default.0x437fb7
mov dword [ebp - 0x10], 8
movzx ecx, byte [edi + 0xc]
mov eax, ecx
and eax, edx
sub eax, 0
je 0x43802d
dec eax
je 0x438024
dec eax
je 0x43801b
dec eax
jne 0x438034
mov dword [ebp - 0x1c], ebx
jmp 0x438034
mov dword [ebp - 0x1c], 0x10
jmp 0x438034
mov dword [ebp - 0x1c], 8
jmp 0x438034
mov dword [ebp - 0x1c], 4
shr ecx, 3
and ecx, edx
cmp ecx, edx
ja case.default.0x43803d
jmp dword [ecx*4 + 0x43899a]
mov dword [esi + 0x320], 1
jmp case.default.0x43803d
mov dword [esi + 0x320], 2
jmp case.default.0x43803d
mov dword [esi + 0x320], 3
jmp case.default.0x43803d
mov dword [esi + 0x320], 4
jmp case.default.0x43803d
mov dword [esi + 0x320], 5
jmp case.default.0x43803d
mov dword [esi + 0x320], 6
jmp case.default.0x43803d
mov dword [esi + 0x320], edx
jmp case.default.0x43803d
mov dword [esi + 0x320], 8
mov ebx, dword [esi + 0x320]
push ebx
call fcn.0040448b
pop ecx
test eax, eax
je 0x4380cf
push dword [ebp - 0x10]
call fcn.0040448b
pop ecx
test eax, eax
je 0x4380cf
mov al, byte [edi + 6]
and al, 3
cmp al, 2
jne 0x4380cf
imul ebx, dword [ebp - 0x10]
mov dword [esi + 0x320], ebx
movzx eax, byte [edi + 0xd]
and eax, 7
sub eax, 0
je 0x4380ff
dec eax
je 0x4380f6
dec eax
je 0x4380ed
dec eax
jne 0x438106
mov dword [ebp - 0x18], 0x40
jmp 0x438106
mov dword [ebp - 0x18], 0x20
jmp 0x438106
mov dword [ebp - 0x18], 0x10
jmp 0x438106
mov dword [ebp - 0x18], 8
push dword [ebp + 8]
call fcn.0040448b
pop ecx
test eax, eax
je 0x43815f
push dword [ebp - 0x18]
call fcn.0040448b
pop ecx
test eax, eax
je 0x43815f
push dword [ebp - 0x1c]
call fcn.0040448b
pop ecx
test eax, eax
je 0x43815f
mov ebx, dword [esi + 0x320]
push ebx
call fcn.0040448b
pop ecx
test eax, eax
je 0x43815f
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 [0x58f9e8]
fstp dword [ebp + 8]
fld dword [ebp + 8]
mov dword [ebp + 8], eax
fild dword [ebp + 8]
fmul qword [0x58fc68]
faddp st(1)
fstp dword [ebp + 8]
fld dword [ebp + 8]
fdivr qword [0x58fc60]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fdiv qword [0x5cae88]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [esp]
call fcn.0045dda0
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 0x58fa98
lea eax, [esi + 0x3c]
push 0x20
push eax
call fcn.00460090
add esp, 0x14
test byte [edi + 0x14], 1
je 0x43823b
push 0xc
call fcn.00551d80
pop ecx
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
test eax, eax
je 0x438220
mov ecx, eax
call fcn.0042d0f0
jmp 0x438222
xor eax, eax
fld dword [0x58fa58]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.004339c2
test byte [edi + 0x14], 2
je 0x43827b
push 0xc
call fcn.00551d80
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x438260
mov ecx, eax
call fcn.0042d0f0
jmp 0x438262
xor eax, eax
fld dword [0x58d884]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.004339c2
test byte [edi + 0x14], 4
je 0x4382bb
push 0xc
call fcn.00551d80
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x4382a0
mov ecx, eax
call fcn.0042d0f0
jmp 0x4382a2
xor eax, eax
fld dword [0x58fa54]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.004339c2
test byte [edi + 0x14], 8
je 0x4382f7
push 0xc
call fcn.00551d80
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x4382dc
mov ecx, eax
call fcn.0042d0f0
jmp 0x4382de
xor eax, eax
fld dword [0x58fa50]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.004339c2
test byte [edi + 0x14], 0x10
je 0x438337
push 0xc
call fcn.00551d80
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 4
test eax, eax
je 0x43831c
mov ecx, eax
call fcn.0042d0f0
jmp 0x43831e
xor eax, eax
fld dword [0x58fa4c]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.004339c2
test byte [edi + 0x14], 0x20
je 0x438377
push 0xc
call fcn.00551d80
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 5
test eax, eax
je 0x43835c
mov ecx, eax
call fcn.0042d0f0
jmp 0x43835e
xor eax, eax
fld dword [0x58fa48]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.004339c2
test byte [edi + 0x14], 0x40
je 0x4383b7
push 0xc
call fcn.00551d80
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 6
test eax, eax
je 0x43839c
mov ecx, eax
call fcn.0042d0f0
jmp 0x43839e
xor eax, eax
fld dword [0x58fa44]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.004339c2
test byte [edi + 0x14], 0x80
je 0x4383f7
push 0xc
call fcn.00551d80
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 7
test eax, eax
je 0x4383dc
mov ecx, eax
call fcn.0042d0f0
jmp 0x4383de
xor eax, eax
fld dword [0x58fa40]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.004339c2
mov al, byte [edi + 0x15]
test al, al
je 0x4385fe
test al, 1
je 0x438440
push 0xc
call fcn.00551d80
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 8
test eax, eax
je 0x438425
mov ecx, eax
call fcn.0042d0f0
jmp 0x438427
xor eax, eax
fld dword [0x58fa3c]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.004339c2
test byte [edi + 0x15], 2
je 0x438480
push 0xc
call fcn.00551d80
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 9
test eax, eax
je 0x438465
mov ecx, eax
call fcn.0042d0f0
jmp 0x438467
xor eax, eax
fld dword [0x58fa38]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.004339c2
test byte [edi + 0x15], 4
je 0x4384c0
push 0xc
call fcn.00551d80
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xa
test eax, eax
je 0x4384a5
mov ecx, eax
call fcn.0042d0f0
jmp 0x4384a7
xor eax, eax
fld dword [0x58fa34]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.004339c2
test byte [edi + 0x15], 8
je 0x438500
push 0xc
call fcn.00551d80
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xb
test eax, eax
je 0x4384e5
mov ecx, eax
call fcn.0042d0f0
jmp 0x4384e7
xor eax, eax
fld dword [0x58fa30]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.004339c2
test byte [edi + 0x15], 0x10
je 0x43853e
push 0xc
pop ebx
push ebx
call fcn.00551d80
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x438523
mov ecx, eax
call fcn.0042d0f0
jmp 0x438525
xor eax, eax
fld dword [0x58fa94]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.004339c2
test byte [edi + 0x15], 0x20
je 0x43857e
push 0xc
call fcn.00551d80
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xd
test eax, eax
je 0x438563
mov ecx, eax
call fcn.0042d0f0
jmp 0x438565
xor eax, eax
fld dword [0x58fa90]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.004339c2
test byte [edi + 0x15], 0x40
je 0x4385be
push 0xc
call fcn.00551d80
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xe
test eax, eax
je 0x4385a3
mov ecx, eax
call fcn.0042d0f0
jmp 0x4385a5
xor eax, eax
fld dword [0x58fa8c]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.004339c2
test byte [edi + 0x15], 0x80
je 0x4385fe
push 0xc
call fcn.00551d80
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0xf
test eax, eax
je 0x4385e3
mov ecx, eax
call fcn.0042d0f0
jmp 0x4385e5
xor eax, eax
fld dword [0x58fa88]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.004339c2
mov al, byte [edi + 0x16]
test al, al
je 0x438683
test al, 1
je 0x438643
push 0xc
call fcn.00551d80
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0x10
test eax, eax
je 0x438628
mov ecx, eax
call fcn.0042d0f0
jmp 0x43862a
xor eax, eax
fld dword [0x58fa84]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.004339c2
test byte [edi + 0x16], 2
je 0x438683
push 0xc
call fcn.00551d80
pop ecx
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0x11
test eax, eax
je 0x438668
mov ecx, eax
call fcn.0042d0f0
jmp 0x43866a
xor eax, eax
fld dword [0x58fa80]
or dword [ebp - 4], 0xffffffff
fstp dword [eax + 4]
mov ecx, dword [esi + 0x338]
push eax
call fcn.004339c2
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 [0x58f9e8]
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 [0x58fc68]
faddp st(1)
fstp dword [ebp - 0x18]
call fcn.0042d792
jmp 0x43872e
fldz
fcomp dword [ebx + 4]
fnstsw ax
test ah, 5
jp 0x438726
fld dword [ebx + 4]
push ecx
fmul qword [0x58fc58]
fdiv dword [ebp - 0x18]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fstp dword [esp]
call fcn.0045dda0
mov dword [ebp + 8], eax
fild dword [ebp + 8]
pop ecx
fmul qword [0x5cae88]
fdiv qword [0x58fbd8]
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 0x438726
fld dword [ebp - 0x1c]
fstp dword [ebx + 8]
lea ecx, [ebp - 0x14]
call fcn.0042d7a9
mov ebx, eax
test ebx, ebx
jne 0x4386c5
movsx eax, byte [edi + 0x7a]
mov dword [ebp + 8], eax
lea eax, [esi + 0x33c]
fild dword [ebp + 8]
fld qword [0x58f9e8]
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 [0x58fc68]
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 0x438916
movzx ebx, byte [edi + 0x140]
and ebx, 0x7f
cmp ebx, 0xf
jle 0x4387f7
push 0xf
pop ebx
xor eax, eax
test ebx, ebx
jle 0x43880e
push ebx
lea eax, [esi + 0x5c]
push 0x7f
push eax
call fcn.005635a0
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.004312f4
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 0x58dbd8
mov dword [esi + 0x2e0], eax
lea eax, [esi + 0x2bc]
push 0x20
push eax
call fcn.00460090
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 0x4388b5
mov byte [esi + 0x2b0], 0
movzx ebx, byte [edi + 0x15e]
and ebx, 0x7f
cmp ebx, 0xf
jle 0x4388e3
push 0xf
pop ebx
xor eax, eax
test ebx, ebx
jle 0x4388fa
push ebx
lea eax, [esi + 0x7c]
push 0x7f
push eax
call fcn.005635a0
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.004312f4
pop ecx
pop ecx
call fcn.005651da
ret 4